Commit Graph

47225 Commits

Author SHA1 Message Date
Nicholas Nethercote
165270a482 Bug 1207944 (part 5) - Use SetColor(const Color&) when setting from a constructed gfxRGBA. r=jwatt.
In various places SetColor() gets passed a gfxRBGA that is constructed at the
call site. This patch changes these to construct a gfx::Color directly,
avoiding the subsequent conversion.

--HG--
extra : rebase_source : e2882f4af319c9541891da34da4202baee5470b0
2015-09-23 23:42:58 -07:00
Nicholas Nethercote
a37228e1fe Bug 1207944 (part 4) - Use SetColor(const Color&) when setting from an nscolor. r=jwatt.
In various places SetColor() gets passed an nscolor. These are converted
(either implicitly or explicitly) to a gfxRBGA, and then to a gfx::Color.

This patch changes all these cases to avoid the middle step, by (a)
constructing a gfx::Color directly instead of an nscolor, or (b) by converting
an nscolor with Color::FromABGR().

--HG--
extra : rebase_source : ae423a422b37ada8ca0cb6f130350b4a71d58fc4
2015-09-23 23:41:30 -07:00
Daniel Holbert
0fa3772aff Bug 1169974 part 2: Tell clang to ignore inconsistent-missing-override warnings for MOCK_METHOD2 macro from gtests. r=njn 2015-09-24 16:16:14 -07:00
Nicholas Nethercote
842dd1cf5a Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.

--HG--
extra : rebase_source : 67fd15f87222b16defa70ef795c6d77dfacf1c36
2015-09-23 11:49:05 -07:00
Mason Chang
91a913a490 Bug 1188075 - Speed up inner box-shadow drawing by using a border-image style approach. r=mstange 2015-09-24 09:50:29 -07:00
Bobby Holley
110f12e7ca Bug 1072150 - Use the opt-out for various sloppy consumers. r=bz 2015-09-24 14:02:41 -07:00
Jonathan Kew
e4f20b47ff Bug 1193519 followup - annotate test for antialiasing fuzz on OS X. 2015-09-24 12:30:24 +01:00
Markus Stange
1c51b30d9d Bug 1144534 - If we have tiling, don't reduce layer resolution for large transforms. r=mattwoodrow
--HG--
extra : commitid : JJNzvl0j5W9
extra : histedit_source : 1269e93524a668636fbe79662e87e43a2e4d0402
2015-09-21 11:56:52 +02:00
Carsten "Tomcat" Book
be2a184fb0 Merge mozilla-central to mozilla-inbound 2015-09-24 12:06:06 +02:00
Carsten "Tomcat" Book
2376775adf merge mozilla-inbound to mozilla-central a=merge 2015-09-24 12:03:40 +02:00
Jonathan Kew
96e8eac81f Bug 1193519 pt 11 - Reftest for sideways-lr writing mode with text-decoration. r=dholbert 2015-09-24 10:23:35 +01:00
Jonathan Kew
294b0fb112 Bug 1193519 pt 10 - Clean up remaining mentions of 'sideways-left' in code comments. r=dholbert 2015-09-24 10:23:35 +01:00
Jonathan Kew
81bf9c5630 Bug 1193519 pt 9 - Reftests with floats in writing-mode: sideways-lr. r=dholbert
--HG--
rename : layout/reftests/floats/float-in-rtl-vlr-1-ref.html => layout/reftests/floats/float-in-rtl-slr-1-ref.html
rename : layout/reftests/floats/float-in-rtl-vlr-1a.html => layout/reftests/floats/float-in-rtl-slr-1a.html
rename : layout/reftests/floats/float-in-rtl-vlr-1b.html => layout/reftests/floats/float-in-rtl-slr-1b.html
rename : layout/reftests/floats/float-in-rtl-vlr-1c.html => layout/reftests/floats/float-in-rtl-slr-1c.html
rename : layout/reftests/floats/float-in-rtl-vlr-1d.html => layout/reftests/floats/float-in-rtl-slr-1d.html
rename : layout/reftests/floats/float-in-rtl-vlr-2-ref.html => layout/reftests/floats/float-in-rtl-slr-2-ref.html
rename : layout/reftests/floats/float-in-rtl-vlr-2a.html => layout/reftests/floats/float-in-rtl-slr-2a.html
rename : layout/reftests/floats/float-in-rtl-vlr-2b.html => layout/reftests/floats/float-in-rtl-slr-2b.html
rename : layout/reftests/floats/float-in-rtl-vlr-2c.html => layout/reftests/floats/float-in-rtl-slr-2c.html
rename : layout/reftests/floats/float-in-rtl-vlr-2d.html => layout/reftests/floats/float-in-rtl-slr-2d.html
rename : layout/reftests/floats/float-in-rtl-vlr-3-ref.html => layout/reftests/floats/float-in-rtl-slr-3-ref.html
rename : layout/reftests/floats/float-in-rtl-vlr-3a.html => layout/reftests/floats/float-in-rtl-slr-3a.html
rename : layout/reftests/floats/float-in-rtl-vlr-3b.html => layout/reftests/floats/float-in-rtl-slr-3b.html
rename : layout/reftests/floats/float-in-rtl-vlr-3c.html => layout/reftests/floats/float-in-rtl-slr-3c.html
rename : layout/reftests/floats/float-in-rtl-vlr-3d.html => layout/reftests/floats/float-in-rtl-slr-3d.html
rename : layout/reftests/floats/float-in-rtl-vlr-4-ref.html => layout/reftests/floats/float-in-rtl-slr-4-ref.html
rename : layout/reftests/floats/float-in-rtl-vlr-4a.html => layout/reftests/floats/float-in-rtl-slr-4a.html
rename : layout/reftests/floats/float-in-rtl-vlr-4b.html => layout/reftests/floats/float-in-rtl-slr-4b.html
rename : layout/reftests/floats/float-in-rtl-vlr-4c.html => layout/reftests/floats/float-in-rtl-slr-4c.html
rename : layout/reftests/floats/float-in-rtl-vlr-4d.html => layout/reftests/floats/float-in-rtl-slr-4d.html
2015-09-24 10:23:35 +01:00
Jonathan Kew
f1081b96cf Bug 1193519 pt 8 - Reftests for table row and cell ordering in sideways-* writing modes. r=dholbert
--HG--
rename : layout/reftests/writing-mode/tables/vertical-rl-row-progression-1-ref.html => layout/reftests/writing-mode/tables/sideways-rl-row-progression-1-ref.html
rename : layout/reftests/writing-mode/tables/vertical-rl-row-progression-1a.html => layout/reftests/writing-mode/tables/sideways-rl-row-progression-1a.html
rename : layout/reftests/writing-mode/tables/vertical-rl-row-progression-1b.html => layout/reftests/writing-mode/tables/sideways-rl-row-progression-1b.html
2015-09-24 10:23:34 +01:00
Jonathan Kew
178a719ebb Bug 1193519 pt 7 - Basic reftests for sideways-lr writing mode. r=dholbert 2015-09-24 10:23:34 +01:00
Jonathan Kew
c9565000fb Bug 1193519 pt 6 - Adjust the position of the caret bidi indicator appropriately for sideways-lr mode. r=dholbert 2015-09-24 10:23:34 +01:00
Jonathan Kew
b20e9ca870 Bug 1193519 pt 5 - Expose the sideways-lr value for writing-mode to CSS. r=dholbert 2015-09-24 10:23:34 +01:00
Jonathan Kew
a58c826891 Bug 1193519 pt 4 - Reverse the direction of text-decoration offsets in sideways-lr mode. r=dholbert 2015-09-24 10:23:34 +01:00
Jonathan Kew
558835b15e Bug 1193519 pt 3 - Handle writing-mode:sideways-lr in nsTextFrame selection and rendering. r=dholbert 2015-09-24 10:23:34 +01:00
Jonathan Kew
3d9826044b Bug 1193519 pt 1 - Update coordinate conversions in WritingModes.h to account for sideways-lr writing mode. r=dholbert
* * *
Bug 1193519 pt 1.1 - Fix error in LogicalRect::LineLeft/Right accessors. r=dholbert
2015-09-24 10:23:34 +01:00
Wes Kocher
268dd97805 Merge m-c to b2ginbound, a=merge CLOSED TREE 2015-09-23 13:25:06 -07:00
Matt Woodrow
2597afb776 Bug 1150944 - Fuzz some reftests with SkiaGL. r=jrmuizel
--HG--
extra : rebase_source : 79e398d4c78f02d14582e1662e312c6c2cece40f
2015-09-23 20:28:23 -04:00
Jonathan Kew
a69598b275 Bug 1193488 - patch 2 - Update the writing-mode representation printed by debugging code such as DumpFrameTree to reflect the new property values. r=dholbert 2015-09-23 22:16:11 +01:00
Jonathan Kew
a091884801 Bug 1193488 - Update values of writing-mode and text-orientation to reflect the CSS WG decision to revise them in the Writing Modes spec. r=dholbert 2015-09-23 22:16:01 +01:00
Ting-Yu Lin
95b225eccd Bug 1196176 - Do not fire extra CaretStateChanged event when typing. r=mtseng
After HideCaret() is called via keyboard event,
OnScrollPositionChanged() still fire another CaretStateChanged event
even if the caret is hidden. We follow OnReflow() to update carets only
when carets are logically visible.

A test case:
1. Type a string on the rocketbar until the text is long enough to scroll.
2. Copy arbitrary string.
3. Tap on rocketbar to show caret, and move it to the end (within 15
   seconds timeout)
4. Type a character.

The text selection dialog should not show.

--HG--
extra : transplant_source : %CB%AE%D4%3D%9A%E8vp%E9%90%5C%3Cl%0Ar%19%A2E%2B%B8
2015-09-22 17:39:36 +08:00
Ting-Yu Lin
0602eab24b Bug 1196176 - Fix CaretStateChanged not dispatch on empty content. r=mtseng
We should dispatch CaretStateChanged event in OnReflow() in cursor mode
when the first caret's appearance is NormalNotShown. Otherwise the text
selection dialog won't update its position.

--HG--
extra : transplant_source : TP%06%82Q%E9%A2%11C7%10H%B0B%EA%80%1D%21%2A%CF
2015-09-22 17:39:36 +08:00
Ting-Yu Lin
a1ac42a2fb Bug 1196176 - Hide carets for mouse down reason. r=mtseng
SelectionCaret had been hiding carets upon receiving mouse down reason.
In this way, text selection dialog won't show, hide, and show again.

--HG--
extra : transplant_source : %EE%0C%C5%25%E9%00%F4%3D%3C%96%13%D0o%23R%AA%D5x%E5%29
2015-09-22 17:39:36 +08:00
Ting-Yu Lin
c6900ae0fa Bug 1196176 - No need to test mLastUpdateCaretMode. r=mtseng
I now think that mLastUpdateCaretMode is an implementation detail. Test
it will make test and implementation coupled.

It's better to call EXPECT_EQ directly in test functions so that the
line number in test result will be accurate when things go wrong.

--HG--
extra : transplant_source : %1C%CF%CF%9B%06%92x%0E%19%F6%B7%82%B1%B7%B3uS%5CA%DF
2015-09-22 17:39:35 +08:00
Kartikaya Gupta
d058a7e7fe Bug 1195431 - Small refactoring to use conditionals consistently. r=tn
--HG--
extra : commitid : 70zviYNmOkz
2015-09-23 09:34:42 -04:00
Kartikaya Gupta
9a349f8ba7 Bug 1195431 - Ensure that IsScrollingActive returns true even when called before mShouldBuildScrollableLayer has been set. r=tn
--HG--
extra : commitid : 8BM9220PWYz
2015-09-23 09:34:41 -04:00
Kartikaya Gupta
32169b4218 Bug 1195431 - Extract a helper function to determine if the scrollframe will build a scrollable layer. r=tn
--HG--
extra : commitid : GlTZ55eBsS9
2015-09-23 09:34:41 -04:00
Kartikaya Gupta
d674ba3676 Bug 1195431 - Extract a couple of helper functions. r=tn
--HG--
extra : commitid : FK958utOKA5
2015-09-23 09:34:41 -04:00
Michael Layzell
2aa752dd26 Bug 1199288 - Rename mApplyUserSelectStyle to mUserInitiated, r=smaug 2015-09-23 23:28:36 -04:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Tom Tromey
c3e2a29d05 Bug 1202095 - re-use @imported style sheets from inIDOMUtils.parseStyleSheet. r=heycam 2015-09-18 07:27:00 +02:00
Tom Tromey
f95c3d69ad Bug 1196896 - add CSSLexer.performEOFFixup. r=heycam, r=bz 2015-09-22 13:14:00 +02:00
Tom Klein
d8f2add1c4 Bug 958160 - Compute bounds in transformed space instead of user space in GetCoveredRegion. r=longsonr
--HG--
extra : rebase_source : 021b5fe58b234b83eb792d832296c79fe0160c48
2015-09-22 10:31:00 +02:00
Xidorn Quan
0e69915329 Bug 1203405 - Ignore order of abs/fixed-pos frames in the frame list. r=roc
--HG--
extra : source : add7aa859385d64f677a8b186ac341357b2bb8be
extra : amend_source : 5033c9f432c58faf3a235daf63244df2727bdb3a
2015-09-23 10:38:56 +10:00
Nicholas Nethercote
8e1aab92be Bug 1169974 - Tolerate inconsistent-missing-override warnings for MOCK_METHOD2 macro from gtests. r=fitzgen.
--HG--
extra : rebase_source : 9c8a52369ba2e88ac6b67431c6f20286ff0d59d3
2015-09-22 17:33:02 -07:00
Wes Kocher
d829d8baa4 Merge m-c to inbound, a=merge CLOSED TREE 2015-09-22 17:10:25 -07:00
Wes Kocher
d4897fa1ef Backed out changeset feceb41f1c3c (bug 1185244) for breaking running tests locally CLOSED TREE a=backout 2015-09-22 17:08:37 -07:00
Cameron McCormack
7d52a3fbf3 Bug 1207028 - Add method to get a CSS property's sorted order position based on its IDL name. r=bzbarsky 2015-09-23 08:37:17 +10:00
Markus Stange
283eeaac85 Bug 1195400 - Check ancestor geometry roots when determining scrollability of a layer. r=mattwoodrow
--HG--
extra : commitid : H09nER1OCYh
extra : rebase_source : 020fd54e671dc1bc55aeeb360a27841f4fa8edcc
extra : histedit_source : 692b07c3d0182825da80209a0f14e70779b34db4
2015-09-20 18:28:18 +02:00
Julian Seward
b3bc139b1e Bug 1185244 - Improve mach support for running mochitests on Valgrind. r=jgraham, njn. 2015-09-22 12:00:57 +02:00
Mats Palmgren
fd3361fcbd Bug 1206703 - [css-grid] In an empty grid all lines should be treated as 'auto' for abs.pos. items, i.e. snap to the padding edge. r=dholbert 2015-09-22 23:32:34 +02:00
Wes Kocher
0ceb5b85ae Backed out changeset 19320abf76b1 (bug 1207088) for Werror bustage CLOSED TREE 2015-09-22 12:46:09 -07:00
Cameron McCormack
f62a2c90cc Bug 1206569 - Part 4: Add method to get a CSS property's IDL name. r=bzbarsky 2015-09-22 15:58:20 +10:00
Cameron McCormack
8911daff33 Bug 1206569 - Part 3: Include internal properties in PythonCSSProps.h and annotate each with a type. r=bzbarsky 2015-09-22 15:58:20 +10:00
Cameron McCormack
e8b8ea80b9 Bug 1206569 - Part 2: Note internal CSS properties using a flag. r=bzbarsky 2015-09-22 15:58:20 +10:00
Cameron McCormack
7dfadc52df Bug 1206569 - Part 1: Move for-Python preprocessor-generated CSS property list header to layout/style/. r=bzbarsky
--HG--
rename : dom/webidl/CSS2PropertiesProps.h => layout/style/PythonCSSProps.h
2015-09-22 15:58:20 +10:00