Commit Graph

20559 Commits

Author SHA1 Message Date
Simon Sapin
4d0c20f01f Bug 984760 part 1: Rename nsCSSValueGridTemplateAreas to css::GridTemplateAreasValue. r=dholbert 2014-03-21 23:06:13 +08:00
Simon Sapin
e83e296f58 Bug 981752 part 3: Add the grid shorthand. r=dholbert 2014-03-21 23:06:12 +08:00
Simon Sapin
48d0651e87 Bug 981752 part 2c: Add the grid-template shorthand. r=dholbert 2014-03-21 23:06:12 +08:00
Simon Sapin
4d9684360b Bug 981752 part 2b: Refactor grid-template-{columns,rows} parsing, preparing for the grid-template shorthand. r=dholbert
... and a bit of grid-auto-flow, for the grid shorthand.

* Avoid using CheckEndProperty() when possible
* Distinguish between "error" and "not a <track-size>"
* Split out parsing of a <track-list>, given its initial [<line-names>?]
2014-03-21 23:06:12 +08:00
Simon Sapin
c27572613c Bug 981752 part 1: Add the grid-column, grid-row and grid-area shorthands. r=dholbert 2014-03-21 23:06:12 +08:00
Jonathan Watt
bffb9388c5 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
9647a9f855 Bug 981508 - Fix comment in nsDisplayTransform::ShouldPrerenderTransformedContent; r=roc 2014-03-22 05:59:58 +08:00
Brian Birtles
880027c0e0 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
11a7708f98 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
d362de8251 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
036a91443e 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
dda03127b6 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
be019a3d12 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
93c7f6ceef Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-20 20:51:16 +01:00
James Kitchener
72e641d516 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
cab563a65a Bug 941298 - FFmpeg PlatformDecoderModule for Linux r=doublec,cpearce 2014-03-21 19:35:15 +13:00
Masatoshi Kimura
6a5ee8cce4 Bug 980307 - Remove DataContainerEvent dependency from accessibility. r=tbsaunde 2014-03-21 12:59:59 +09:00
Srirakshith Betageri
9e99311a3a 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
ae8e640786 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
ae259da2ce 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
70d4bd7582 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
761e486c9d 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
2467158ec9 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
4976399874 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
3363b24a57 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
585af7072e Bug 874950. Fix variable name to fix the build. on a CLOSED TREE 2014-03-20 18:46:30 -05:00
Timothy Nikkel
a11a1c2c36 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
0071bffc0e 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
4f9ba420d3 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
bad51a5892 Backed out changesets 716f942b5798, 48edbd324d0f, 3e6446f6d0e6 (bug 918189) for bustage. 2014-03-20 16:33:54 -04:00
Robert O'Callahan
50315a03b2 Bug 918189. Part 2: Add tests for convertPoint/Rect/QuadFromNode. r=mats 2013-09-20 22:22:11 +12:00
Robert O'Callahan
df3c565901 Bug 918189. Part 1.5: Implement GeometryUtils.convertPointFromNode, convertRectFromNode, and convertQuadFromNode. r=jst 2014-03-12 09:11:39 +08:00
Robert O'Callahan
baddd5ed70 Bug 918189. Part 1: Implement GeometryUtils ConvertQuad/Rect/PointFromNode. r=mats 2014-03-12 09:11:38 +08:00
Robert O'Callahan
d09e9018b9 Bug 917755. Part 6: Add tests for getBoxQuads. r=matspal 2013-09-20 22:21:42 +12:00
Robert O'Callahan
3d246f25f7 Bug 917755. Part 5: Implement GeometryUtils GetBoxQuads. r=matspal 2014-03-12 09:11:38 +08:00
Robert O'Callahan
d6f8c8313e Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal 2013-09-20 22:21:03 +12:00
Carsten "Tomcat" Book
8c46dc13d5 merge mozilla-inbound to mozilla-central 2014-03-20 13:56:02 +01:00
Carsten "Tomcat" Book
94e9995102 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
40ff59b212 Backed out changeset d5f4ed799fa3 (bug 950526) 2014-03-20 09:58:08 +01:00
Daniel Holbert
da3c0749bb (no bug) Remove whitespace at end of line in FrameLayerBuilder. (whitespace-only, DONTBUILD) 2014-03-20 14:49:27 +08:00
Daniel Holbert
ecaa37ce30 (no bug) Remove whitespace at end of line in nsCSSFrameConstructor. (whitespace-only, DONTBUILD) 2014-03-20 14:49:26 +08:00
Daniel Holbert
7b2500574c (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
0c28d8f8e3 Bug 921858 - reftest to test various space-containing lookup scenarios. r=jfkthame 2014-03-20 14:43:31 +08:00
John Daggett
5ce659c9e6 Bug 950526 - reftest for first-line handling of font styles. r=heycam 2014-03-20 14:43:30 +08:00
John Daggett
328447eda5 Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron 2014-03-20 14:43:29 +08:00
Cameron McCormack
2bcbcfbdbd Bug 959973 - Followup to actually run the tests. r=dbaron 2014-03-20 15:43:37 +11:00
Markus Stange
f80b79dc3a 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
3186fd41cb 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
cb1ed17792 Bug 984761 - Use a typed enum for ColorSpace and AlphaModel. r=bjacob 2014-03-20 10:12:43 +08:00
Wes Kocher
c5d81bb33f Backed out changeset 8764e9f061d0 (bug 980679) for a smoketest regression 2014-03-19 16:14:42 -07:00
Carsten "Tomcat" Book
321f30cfc1 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
57311b5dc3 Backed out changeset 4771c2b309ad (bug 917755) 2014-03-19 09:46:04 +01:00
Carsten "Tomcat" Book
69d1105b2f Backed out changeset 1b7530ddb0af (bug 917755) 2014-03-19 09:46:01 +01:00
Carsten "Tomcat" Book
cdec1889e1 Backed out changeset f7e676be8fa0 (bug 918189) 2014-03-19 09:45:58 +01:00
Carsten "Tomcat" Book
a84e36bcf6 Backed out changeset e60fe593236d (bug 918189) 2014-03-19 09:45:57 +01:00
Carsten "Tomcat" Book
d506cf1b2f Backed out changeset 2f3187619c9e (bug 918189) 2014-03-19 09:45:48 +01:00
James Kitchener
b4e54794ec Bug 522393 - Remove invisible operators special case in reflow. r=fredw, r=roc 2014-03-19 13:05:02 -04:00
Ryan VanderMeulen
a902b4a4c8 Backed out changesets a17ee88f1fe7, 6e3aee4a9650, 07e5ed676919 (bug 950076) for Werror bustage. 2014-03-19 14:00:10 -04:00
Ryan VanderMeulen
bffedb9aee Backed out changeset 76f6f3d6d8e3 (bug 522393) for Werror bustage. 2014-03-19 13:32:30 -04:00
Alessio Placitelli
a0352e2e61 Bug 950076 - Use the return value of GetNodeTextContent for OOM checks. r=jst 2014-03-19 13:05:03 -04:00
James Kitchener
750f59e1e8 Bug 522393 - Remove invisible operators special case in reflow. r=fredw, r=roc 2014-03-19 13:05:02 -04:00
Neil Deakin
ee0ba43827 Bug 972566, when a window is resized, panels should be repositioned after the view reflow rather than within the webshell listener, r=tn 2014-03-19 12:48:08 -04:00
Neil Deakin
5bca1a23ba Bug 982734, make nsIWidget::GetWindowType and nsIWidget::GetZIndex return their values, remove some unused colour-related widget methods, r=tn 2014-03-19 12:48:08 -04:00
L. David Baron
eb53116cab Rename tests to match normal convention (abspos rather than abpos) and to match their internal rel=match. No bug.
This is importing a changeset from the CSS WG test repository by
Peter Linss <peter.linss@hp.com>.

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-abpos-child-1-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-abspos-child-1-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-abpos-child-1a.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-abspos-child-1a.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-abpos-child-1b.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-abspos-child-1b.html
2014-03-20 00:43:41 +08:00
Bobby Holley
62f0bc43ce Bug 825392 - Fix up a test to use transitive wrapping rather than getPrivilegedProps. r=bz 2014-03-19 13:35:44 -03:00
Ryan VanderMeulen
1dcb384735 Backed out changeset 1028c462d120 (bug 518592) for Werror bustage on a CLOSED TREE. 2014-03-19 11:16:36 -04:00
Xidorn Quan
ecd3f787a3 Bug 985186 - Unwanted white space for multiple of 10,000 in Korean counter styles. r=jfkthame 2014-03-19 10:36:28 -04:00
James Kitchener
943a186409 Bug 518592 - Fix single char <mi> frame type and add a test for dotless i. r=karlt 2014-03-19 10:36:27 -04:00
Robert O'Callahan
5e6e45418c Bug 918189. Part 2: Add tests for convertPoint/Rect/QuadFromNode. r=mats 2013-09-20 22:22:11 +12:00
Robert O'Callahan
585863becb Bug 918189. Part 1.5: Implement GeometryUtils.convertPointFromNode, convertRectFromNode, and convertQuadFromNode. r=jst 2014-03-12 09:11:39 +08:00
Robert O'Callahan
ec7c06ab7f Bug 918189. Part 1: Implement GeometryUtils ConvertQuad/Rect/PointFromNode. r=mats 2014-03-12 09:11:38 +08:00
Robert O'Callahan
40d7d012db Bug 917755. Part 6: Add tests for getBoxQuads. r=matspal 2013-09-20 22:21:42 +12:00
Robert O'Callahan
e2ce1b6ff0 Bug 917755. Part 5: Implement GeometryUtils GetBoxQuads. r=matspal 2014-03-12 09:11:38 +08:00
Robert O'Callahan
bcd57eef3c Bug 917755. Part 1: Add nsLayoutUtils::TransformCSSPoints and nsLayoutUtils::GetFirstNonAnonymousFrame. r=matspal 2013-09-20 22:21:03 +12:00
Seth Fowler
79b0c0510f Bug 63895 (Part 5) - Add more tests for positioned internal table objects serving as absolute containing blocks. r=dbaron
--HG--
rename : layout/reftests/abs-pos/table-internal-1-ref.html => layout/reftests/abs-pos/table-internal-5-ref.html
rename : layout/reftests/abs-pos/table-internal-3-ref.html => layout/reftests/abs-pos/table-internal-6-ref.html
rename : layout/reftests/abs-pos/table-internal-4-ref.html => layout/reftests/abs-pos/table-internal-7-ref.html
2014-03-19 11:04:26 +08:00
Seth Fowler
764425dac6 Bug 63895 (Part 4) - Propagate overflow of relatively positioned table parts to the table frame. r=dbaron 2014-03-19 11:04:23 +08:00
Jonathan Watt
c47047aab1 Bug 984280 - Convert DOMSVGPoint from Thebes to Moz2d. r=heycam 2014-03-19 09:13:18 +08:00
Daniel Holbert
1fcb3cb649 Bug 981640: Mark reftest svg/smil/transform/paced-1.svg as fuzzy on Windows. 2014-03-19 08:46:34 +08:00
Anuj Agarwal
4ae443db15 Bug 975747 - Reftest for MathML operator dictionary. r=fred.wang 2014-03-18 14:25:40 -07:00
Anuj Agarwal
5bed7c0dd5 Bug 975747 - Convert gOperatorTable to nsDataHashtable. r=karlt 2014-03-18 14:25:40 -07:00
Simon Sapin
5fa7f76138 Bug 984241: Refactor/optimize grid-template-areas, store number of columns. r=dholbert
In the parsing code for grid-template-areas:

* Move some of the processing into the helper function,
  so that the grid-template will not have to duplicate it.

* Store the number of parsed columns (and rows),
  as they will affect the size of the "explicit grid".

* Use a hash table instead of a linear scan to avoid O(n²)-ish complexity.
2014-03-18 22:05:49 +08:00
Cameron McCormack
d36b03a216 Bug 950436 - Store ImageValues that resulted from re-parsing a nsCSSValueTokenStream on that object. r=dbaron 2014-03-18 20:11:14 +11:00
Chris Lord
06cb2f45ab Bug 874950 - Don't let fixed position content occlude displayports. r=tn
Don't let opaque fixed position items occlude display items that are in
display ports and thus may be asynchronously scrolled.
2014-03-17 23:39:59 +00:00
Makoto Kato
7de91d240c Bug 982298 - crash in mozilla::ScrollFrameHelper::ScrollToImpl by findAgain. r=roc 2014-03-18 16:35:28 +09:00
Botond Ballo
85f9092aef Bug 983208 - Workaround for composition bounds being wrong on android. r=tnikkel
Go back to using widget bounds. The root content document on android is a child document but it's treated like a root document in many ways. Do this until we can do what would technically be correct.
2014-03-17 12:16:05 -04:00
Cameron McCormack
e91094a2d6 Bug 984739 - Make nsCSSValue::StartImageLoad assume |new ImageValue| is infallible. r=dbaron 2014-03-18 16:49:51 +11:00
Masayuki Nakano
064ad73796 Bug 983049 part.6 Move remaining stuff in EventDispatcher.cpp into mozilla namespace r=smaug 2014-03-18 13:48:22 +09:00
Masayuki Nakano
b7a8d4a392 Bug 983049 part.5 Rename nsEventDispatcher to mozilla::EventDispatcher r=smaug
--HG--
rename : dom/events/nsEventDispatcher.cpp => dom/events/EventDispatcher.cpp
rename : dom/events/nsEventDispatcher.h => dom/events/EventDispatcher.h
2014-03-18 13:48:21 +09:00
Masayuki Nakano
bdfb32e049 Bug 983049 part.4 Rename nsDispatchingCallback to mozilla::EventDispatchingCallback r=smaug 2014-03-18 13:48:20 +09:00
Masayuki Nakano
6e0a5b3333 Bug 983049 part.3 Rename nsEventChainPostVisitor to mozilla::EventChainPostVisitor r=smaug 2014-03-18 13:48:20 +09:00
Phil Ringnalda
8d16351a1d Bug 973322 followup, set the sticky pref so we don't lose either the expected assertion, or the ability to test for the crash 2014-03-17 20:50:45 -07:00
Daniel Holbert
60476682b5 Bug 983434 followup: Fix positioning of MOZ_STACK_CLASS in AutoFlexLineListClearer class definition to fix Linux static-analysis bustage. 2014-03-18 10:27:51 +08:00
Daniel Holbert
1bdf779856 Bug 983434 part 2: Store FlexLines and FlexItems in MFBT LinkedLists instead of nsTArrays. r=mats 2014-03-18 09:23:23 +08:00
Neil Rashbrook
921625ab05 Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
--HG--
extra : rebase_source : f8fb50de9292320eb7589dd28dc566d0f5044da6
2014-03-18 00:23:03 +00:00
Daniel Holbert
53e3fac586 Backed out c5dc2de8d224 (Bug 983434 part 2) for Linux static-analysis build bustage
CLOSED TREE
2014-03-18 07:27:52 +08:00
Timothy Nikkel
e4708f86bc Bug 984279. Composition bounds are relative to the reference frame, so make that be true when we use view bounds to calculate them. r=mats,botond 2014-03-17 18:02:11 -05:00
Wes Kocher
2939a367ba Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Daniel Holbert
08a9ba5a42 Bug 983434 part 2: Store FlexLines and FlexItems in MFBT LinkedLists instead of nsTArrays. r=mats 2014-03-18 06:09:41 +08:00
Daniel Holbert
714bb59013 Bug 983434 part 1: Minor cleanup in nsFlexContainerFrame.cpp (rename some variables, promote a static function to a private method). r=mats 2014-03-18 06:09:40 +08:00
Neil Rashbrook
f83724018d Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg
--HG--
extra : rebase_source : eaca8b2925eaffb49e29a617cd72c0d6686e6d9e
2014-03-17 19:07:09 +00:00