Commit Graph

9047 Commits

Author SHA1 Message Date
Botond Ballo
d6362c5062 Bug 1206915 - Avoid reordering of different parts of paint dump output. r=mattwoodrow 2015-09-21 18:37:23 -04:00
Botond Ballo
738bfebec7 Bug 1205630 - Translate a fixed background display item's clip rect correctly when setting it on the layer. r=mstange 2015-09-25 12:55:00 -04:00
Kartikaya Gupta
dd23409f23 Back out the bits of bug 1205087 that cache the AnimatedGeometryRoot on DisplayItem. r=backout
The change breaks some scenarios with APZ scrolling, in particular the code
that layerizes the scroll handoff chain for deeply nested scrollable frames.
2015-09-28 15:17:34 -04:00
Arpad Borsos
95d2535698 Bug 1208985 - Use height for scroll-snap-points-y percentage values; r=kip
The CSS scroll snapping specification defines percentages to be
`relative to same axis of the padding-box of the scroll container`,
which means that y-axis should be based no height, not width.
2015-09-28 14:58:56 +02:00
James Willcox
e3879f24b6 Bug 1201541 - Use SingleTiledContentClient for non-scrollable layers on Android r=mattwoodrow 2015-09-28 09:36:58 -05:00
Carsten "Tomcat" Book
8c22b8e2bc Backed out 1 changesets (bug 1207420) for mulet reftest failures
Backed out changeset 160c4484f0a2 (bug 1207420)
2015-09-28 12:13:25 +02:00
Thinker K.F. Li
670e4d1065 Bug 1207420 - Improve GetBounds() to avoid recomputing every time. r=roc 2015-09-28 00:15:00 +02:00
Nicholas Nethercote
bc492f60dc Bug 1207931 - Remove no-longer-needed SetBackgroundColor IPC message. r=mattwoodrow. 2015-09-24 19:03:33 -07:00
Nicholas Nethercote
873ce50a95 Bug 1208283 (part 4) - Change FrameMetrics::mBackgroundColor from gfxRGBA to gfx::Color. r=jwatt.
This removes some ToColor() calls.
2015-09-24 18:17:45 -07:00
Nicholas Nethercote
53195bab80 Bug 1208283 (part 2) - Change ColorLayer::mColor, ColorLayerProperties::mColor, ReadbackLayer::mBackgroundColor from gfxRBGA to gfx::Color. r=jwatt.
This avoids some gfxRGBA-to-Color conversions.
2015-09-24 18:16:45 -07:00
Brian Birtles
8abbf07f37 Bug 1195180 part 5 - Synchronize refresh driver observing with presshell creation/teardown; r=heycam 2015-09-28 12:38:40 +09:00
Nicholas Nethercote
c472f85396 Bug 1208345 - Remove gfxContext::GraphicsOperator. r=jwatt.
Also...

- Rename various "operator" identifiers as "op" to match |CompositionOp|.

- Rename |nsBackgroundLayerState::mCompositingOp| as |mCompositionOp| to match
  |CompositionOp|.

- Remove some deprecated functions that are no longer needed.
2015-09-24 22:38:58 -07:00
L. David Baron
98ae0a3324 Bug 1175492 followup: remove extra dashes left over from removing -moz- prefixes. r=longsonr 2015-09-27 02:19:13 -07:00
Markus Stange
204fc38d23 Bug 1208438 - Don't allow layers with scrolling clips to occlusion-cull layers behind them. r=mattwoodrow 2015-09-25 15:47:41 +02:00
Wes Kocher
5e334aed46 Backed out 2 changesets (bug 1208457, bug 1208438) for bg-fixed-child-mask.html failures
Backed out changeset 0499228f8fd1 (bug 1208438)
Backed out changeset 803a5e5c74ea (bug 1208457)
2015-09-25 13:01:33 -07:00
Matt Woodrow
490177efef Bug 1205087 - Cache the AnimatedGeometryRoot on DisplayItem. r=roc 2015-09-24 18:26:36 -04:00
Matt Woodrow
c927396f34 Bug 1205087 - Make nsSVGIntegrationUtils paint frame continuations manually since combining them meant that our reference frame wasn't an ancestor of all painted frames. r=roc 2015-09-24 18:26:34 -04:00
Matt Woodrow
d664b26612 Bug 1205087 - Remove LayerManager parameter for ShouldFixToViewport. r=roc 2015-09-24 18:25:08 -04:00
Markus Stange
fa84ee3815 Bug 1208438 - Don't allow layers with scrolling clips to occlusion-cull layers behind them. r=mattwoodrow 2015-09-25 15:47:41 +02:00
Markus Stange
240efba756 Bug 1203190 - Don't intersect with the visible rect for fixed background images. r=mattwoodrow 2015-09-25 14:40:52 +02:00
Nicholas Nethercote
f7c77481c4 Bug 1207944 (part 8) - Change nsDisplayBackgroundColor::mColor from gfxRGBA to gfx::Color. r=jwatt.
This avoids an unnecessary gfxRBGA-to-Color conversion in one SetColor() call.
2015-09-24 00:46:32 -07:00
Nicholas Nethercote
a20b860f96 Bug 1207944 (part 7) - Use gfx::Color instead of gfxRGBA in BlurCache. r=jwatt.
This avoids several gfxRBGA-to-Color conversions.
2015-09-24 00:43:32 -07:00
Nicholas Nethercote
44a8ac4047 Bug 1207944 (part 6) - Use gfx::Color instead of gfxRGBA in ColorStop. r=jwatt. 2015-09-24 00:40:20 -07:00
Nicholas Nethercote
5bead7803b 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.
2015-09-23 23:42:58 -07:00
Nicholas Nethercote
043314a662 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().
2015-09-23 23:41:30 -07:00
Daniel Holbert
5e2d8e2d49 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
19203be089 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.
2015-09-23 11:49:05 -07:00
Mason Chang
ecae29f061 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
Markus Stange
4489bf5af2 Bug 1144534 - If we have tiling, don't reduce layer resolution for large transforms. r=mattwoodrow 2015-09-21 11:56:52 +02:00
Carsten "Tomcat" Book
d236815e19 Merge mozilla-central to mozilla-inbound 2015-09-24 12:06:06 +02:00
Carsten "Tomcat" Book
c0e40dc581 merge mozilla-inbound to mozilla-central a=merge 2015-09-24 12:03:40 +02:00
Jonathan Kew
f566ef1481 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
c76f510235 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
923a107254 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
Wes Kocher
b6c954ec73 Merge m-c to b2ginbound, a=merge CLOSED TREE 2015-09-23 13:25:06 -07:00
Jonathan Kew
f5f271f03d 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
9138fb596e 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.
2015-09-22 17:39:36 +08:00
Ting-Yu Lin
1511df4528 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.
2015-09-22 17:39:36 +08:00
Ting-Yu Lin
75531b80b2 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.
2015-09-22 17:39:36 +08:00
Ting-Yu Lin
617fc51510 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.
2015-09-22 17:39:35 +08:00
Kartikaya Gupta
f356491207 Bug 1195431 - Small refactoring to use conditionals consistently. r=tn 2015-09-23 09:34:42 -04:00
Kartikaya Gupta
7adba436cb Bug 1195431 - Extract a helper function to determine if the scrollframe will build a scrollable layer. r=tn 2015-09-23 09:34:41 -04:00
Kartikaya Gupta
e94ce876d8 Bug 1195431 - Extract a couple of helper functions. r=tn 2015-09-23 09:34:41 -04:00
Michael Layzell
9bf65e9a1b Bug 1199288 - Rename mApplyUserSelectStyle to mUserInitiated, r=smaug 2015-09-23 23:28:36 -04:00
Xidorn Quan
7773be7240 Bug 1203405 - Ignore order of abs/fixed-pos frames in the frame list. r=roc 2015-09-23 10:38:56 +10:00
Nicholas Nethercote
68d4e1a6e5 Bug 1169974 - Tolerate inconsistent-missing-override warnings for MOCK_METHOD2 macro from gtests. r=fitzgen. 2015-09-22 17:33:02 -07:00
Daniel Holbert
0b54e8c9c7 Bug 1206996: Use range-based 'for' syntax to iterate across nsFrameLists in RestyleManager. r=tn 2015-09-22 11:21:44 -07:00
Markus Stange
84649fa33f Bug 1195400 - Check ancestor geometry roots when determining scrollability of a layer. r=mattwoodrow 2015-09-20 18:28:18 +02:00
Mason Chang
6248fc9129 Backout bug 1188075 for graphical artifacts. r=me 2015-09-21 08:14:05 -07:00
Markus Stange
fcb4e1315b Back out changeset 61baabe617c9 (bug 1191539) because of regressions like bug 1205863 and probably bug 1206209. 2015-09-20 01:14:15 +02:00