Commit Graph

20504 Commits

Author SHA1 Message Date
Jonathan Watt
8f55e803ea Bug 985470 - Replace the Moz2D Matrix().Translate() calls with Matrix::Translation() for better perf. r=mattwoodrow
--HG--
extra : rebase_source : 7181564bdaa57a970a256e9676857a7195874631
2014-03-22 07:56:11 +08:00
Brian Birtles
43c74c805e Bug 981508 - Fix comment in nsDisplayTransform::ShouldPrerenderTransformedContent; r=roc 2014-03-22 05:59:58 +08:00
Brian Birtles
07bc4e1535 Bug 975261 part 5 - Fix OMTA animations with backwards fill; r=dzbarsky
When we have a backwards fill and we sample at *exactly* the start of the
animation on the next refresh driver tick, when we get to
RestyleManager::ComputeStyleChangeFor (or more specifically
ElementRestyler::CaptureChange) we notice that the style hasn't changed (since
the first frame of the animation produces the same value as the backwards fill)
and end up with an empty change list. As a result we never schedule a view
manager flush and rebuild the layer. Hence, the animation never gets sent to the
compositor thread. On the next tick we're already throttling the main thread.

This patch fixes this by applying the same approach as is used for transitions,
that is, explicitly marking which animations are running on the compositor
thread so we know if we need to trigger a layer transaction or not. This should
not only be more robust than the previous code but also facilitate aligning
animations and transitions code (bug 880596).
2014-03-22 05:59:58 +08:00
Brian Birtles
a47c4d434e Bug 975261 part 4 - Add test for starting OMTA animations with backwards fill; r=dzbarsky
This test reproduces a bug where we don't send an animation to the compositor
thread. The important step is the sample precisely at the start of the animation
interval.
2014-03-22 05:59:58 +08:00
Brian Birtles
bea9d5001b Bug 975261 part 3 - Add test for transforms; r=dzbarsky
Adds a test for transform animations with a delay where there is already
a transform specified on the element.

This test used to fail but bug 828173 fixed it. It is included here as
a regression test.

(Prior to bug 828173 we were able to fix this by triggering
ForceLayerRerendering inside nsAnimationManager::nsFlushAnimations whenever we
detected *different* style rules but canThrottleTick=true)

The issue stemmed from the fact that when an element has a transform property,
LayerIsPrerenderedDataKey would get set on the layer because in
nsDisplayTransform::ShouldPrerenderTransformedContent we would only check for
the *presence* of an animation, not whether it is running. Then in
RestyleManager::DoApplyRenderingChangeToTree we wouldn't do an invalidating
paint because TryUpdateTransformOnly() returns true since it looks at
LayerIsPrerenderedDataKey.

Bug 828173 fixes this, at least in part, by checking if an animation is running.
This bug may resurface if we put animations with a delay on the compositor
thread hence it is worth including here.
2014-03-22 05:59:57 +08:00
Brian Birtles
d0333ac00a Bug 975261 part 2 - Trigger animations with a delay; r=dzbarsky
Animations with a delay are not put on the compositor thread until the end of
the delay phase. However, there is currently nothing that explicitly triggers
this transaction. It may occur due to flushes that arise from UI events but it
is not guaranteed.

This patch detects the end of a delay phase and turns off throttling for that
sample. It re-uses the mLastNotification member which is not ideal but
a subsequent patch in this queue removes this and replaces it with the approach
used for transitions.
2014-03-22 05:59:57 +08:00
Brian Birtles
612ce80109 Bug 975261 part 1 - Add test for OMTA animations that start with a delay; r=dzbarsky 2014-03-22 05:59:57 +08:00
Chadd Williams
1035df8afc Bug 980493 - Transition FrameMetrics::mScrollId to use a getter/setter. r=botond
--HG--
extra : histedit_source : 1c84496d4b61f019e6e6cc24591ee3a10434e4cc
2014-03-21 17:48:08 -04:00
Alessio Placitelli
651681f247 Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-20 20:51:16 +01:00
James Kitchener
f09f97acc4 Bug 518592 - Fix single char <mi> frame type and add a test for dotless i. r=karlt 2014-03-21 08:49:51 -04:00
Edwin Flores
a6d5ef3904 Bug 941298 - FFmpeg PlatformDecoderModule for Linux r=doublec,cpearce 2014-03-21 19:35:15 +13:00
Masatoshi Kimura
6ddc1da58c Bug 980307 - Remove DataContainerEvent dependency from accessibility. r=tbsaunde 2014-03-21 12:59:59 +09:00
Srirakshith Betageri
209a660012 Bug 955860. Implement the CSS.escape API for escaping CSS identifiers from script. r=bzbarsky 2014-03-20 23:19:43 -04:00
Robert O'Callahan
9b6f683504 Bug 918189. Part 2: Add tests for convertPoint/Rect/QuadFromNode. r=mats
--HG--
extra : rebase_source : e50c41da1a3cfc66f37e540b26fb8c9353ab5321
2013-09-20 22:22:11 +12:00
Robert O'Callahan
d30f7006c6 Bug 918189. Part 1.5: Implement GeometryUtils.convertPointFromNode, convertRectFromNode, and convertQuadFromNode. r=jst
--HG--
extra : rebase_source : 2d01b350d84f220add776341a9cbcda5ace2ef01
2014-03-12 09:11:39 +08:00
Robert O'Callahan
84770e7b2f Bug 918189. Part 1: Implement GeometryUtils ConvertQuad/Rect/PointFromNode. r=mats
--HG--
extra : rebase_source : deade5e87ae77b3fe9efdfde9ba2f3254318f387
2014-03-12 09:11:38 +08:00
Robert O'Callahan
04501d7edd Bug 917755. Part 6: Add tests for getBoxQuads. r=matspal
--HG--
extra : rebase_source : 2e49345a3035cdbe5e4d2ee7573f3c30da38da6a
2013-09-20 22:21:42 +12:00
Robert O'Callahan
2a7e21114d Bug 917755. Part 5: Implement GeometryUtils GetBoxQuads. r=matspal
--HG--
extra : rebase_source : 6997773605684ad96e29b22fc10069d31385e63b
2014-03-12 09:11:38 +08:00
Robert O'Callahan
242ffba63c Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal
--HG--
extra : rebase_source : 06e2c83a984d12fce29cd23b93dde54a2e05cf43
2013-09-20 22:21:03 +12:00
Daniel Holbert
1a5334960a Bug 984786 part 1: Add MOZ_FINAL and private destructors to some refcounted classes in layout. r=dbaron 2014-03-21 09:16:20 +08:00
Timothy Nikkel
823df74309 Bug 874950. Fix variable name to fix the build. on a CLOSED TREE 2014-03-20 18:46:30 -05:00
Timothy Nikkel
6eb349ee89 Bug 874950. Don't let fixed position conclude occlude async scrolled content. r=roc
It would be incorrect to occlude async scrolled content.

Instead of doing a lot of extra frame tree walking just use the flags on display items to tell if they are in fixed position subtrees.

Also, don't let the fixed position flag on display items get set if we start building display items inside a subdocument. If didn't do this non-fixed content in a subdocument that is in fixed content in the parent document would be marked as in fixed position, and no occlusion would occur at all. This means that the fix applies to slightly less cases which are less important so that a more important case works the same as before.
2014-03-20 18:23:16 -05:00
Timothy Nikkel
fa25b28ebf Bug 874950. Record on display items if they are inside a fixed position subtree. r=roc 2014-03-20 18:23:16 -05:00
Ryan VanderMeulen
355f83a308 Backed out 8 changesets (bug 917755) for bustage making inbound a CLOSED TREE.
Backed out changeset 98e31d225a5a (bug 917755)
Backed out changeset 43bceca43fb6 (bug 917755)
Backed out changeset 5117e3f594e7 (bug 917755)
Backed out changeset ada41f2f74b8 (bug 917755)
Backed out changeset 5272cfbd63f3 (bug 917755)
Backed out changeset f3bbd98021f7 (bug 917755)
Backed out changeset b049571a7cce (bug 917755)
Backed out changeset 472cb7738e14 (bug 917755)
2014-03-20 16:34:25 -04:00
Ryan VanderMeulen
4b007b082c Backed out changesets 716f942b5798, 48edbd324d0f, 3e6446f6d0e6 (bug 918189) for bustage. 2014-03-20 16:33:54 -04:00
Robert O'Callahan
201b14766b Bug 918189. Part 2: Add tests for convertPoint/Rect/QuadFromNode. r=mats 2013-09-20 22:22:11 +12:00
Robert O'Callahan
0518f069ab Bug 918189. Part 1.5: Implement GeometryUtils.convertPointFromNode, convertRectFromNode, and convertQuadFromNode. r=jst 2014-03-12 09:11:39 +08:00
Robert O'Callahan
f79e645249 Bug 918189. Part 1: Implement GeometryUtils ConvertQuad/Rect/PointFromNode. r=mats 2014-03-12 09:11:38 +08:00
Robert O'Callahan
cb0ca90a5c Bug 917755. Part 6: Add tests for getBoxQuads. r=matspal 2013-09-20 22:21:42 +12:00
Robert O'Callahan
570c9395bc Bug 917755. Part 5: Implement GeometryUtils GetBoxQuads. r=matspal 2014-03-12 09:11:38 +08:00
Robert O'Callahan
e367900d2f Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal 2013-09-20 22:21:03 +12:00
Carsten "Tomcat" Book
2b4e4f7edd merge mozilla-inbound to mozilla-central 2014-03-20 13:56:02 +01:00
Carsten "Tomcat" Book
9fe557e5da Backed out changeset 1d12ab8bf5fe (bug 950526) for android reftest failures on a CLOSED TREE 2014-03-20 10:00:24 +01:00
Carsten "Tomcat" Book
80fc76217f Backed out changeset d5f4ed799fa3 (bug 950526) 2014-03-20 09:58:08 +01:00
Daniel Holbert
128cc39b95 (no bug) Remove whitespace at end of line in FrameLayerBuilder. (whitespace-only, DONTBUILD) 2014-03-20 14:49:27 +08:00
Daniel Holbert
8c8d7274be (no bug) Remove whitespace at end of line in nsCSSFrameConstructor. (whitespace-only, DONTBUILD) 2014-03-20 14:49:26 +08:00
Daniel Holbert
9bd5ed2407 (no bug) Remove whitespace at end of line in nsPresShell, nsIPresShell, and nsPresContext. (whitespace-only, DONTBUILD) 2014-03-20 14:49:25 +08:00
John Daggett
ba7d1fb3a6 Bug 921858 - reftest to test various space-containing lookup scenarios. r=jfkthame 2014-03-20 14:43:31 +08:00
John Daggett
753d90ac34 Bug 950526 - reftest for first-line handling of font styles. r=heycam 2014-03-20 14:43:30 +08:00
John Daggett
8a2f99bfd8 Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron 2014-03-20 14:43:29 +08:00
Cameron McCormack
3aec122f32 Bug 959973 - Followup to actually run the tests. r=dbaron 2014-03-20 15:43:37 +11:00
Markus Stange
178e89ae41 Bug 926292 - Put overlay scrollbars on top of the topmost positioned descendant of the scrolled frame. r=mats 2014-03-20 10:12:46 +08:00
Markus Stange
89c093b68b Bug 926292 - Add a testing pref for stopping overlay scrollbars from fading out. r=roc 2014-03-20 10:12:46 +08:00
Markus Stange
29f041c71a Bug 984761 - Use a typed enum for ColorSpace and AlphaModel. r=bjacob 2014-03-20 10:12:43 +08:00
Wes Kocher
fd0079fbe5 Backed out changeset 8764e9f061d0 (bug 980679) for a smoketest regression 2014-03-19 16:14:42 -07:00
Carsten "Tomcat" Book
1c1cd1a7e6 Backed out changeset 094decae8ff3 (bug 917755) for mochitest-1 bustage on a CLOSED TREE 2014-03-19 09:47:43 +01:00
Carsten "Tomcat" Book
cf4b10ed86 Backed out changeset 4771c2b309ad (bug 917755) 2014-03-19 09:46:04 +01:00
Carsten "Tomcat" Book
e1e727b8cc Backed out changeset 1b7530ddb0af (bug 917755) 2014-03-19 09:46:01 +01:00
Carsten "Tomcat" Book
3ca2210713 Backed out changeset f7e676be8fa0 (bug 918189) 2014-03-19 09:45:58 +01:00
Carsten "Tomcat" Book
174014df63 Backed out changeset e60fe593236d (bug 918189) 2014-03-19 09:45:57 +01:00