Carsten "Tomcat" Book
00d4ea331d
Backed out changeset bbb688fe1ba3 (bug 1365614)
2017-05-22 15:45:31 +02:00
Iris Hsiao
65ea740eda
Merge mozilla-central to mozilla-inbound
2017-05-22 11:53:00 +08:00
Mats Palmgren
e706869580
Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
2017-05-21 17:15:00 +08:00
Hiroyuki Ikezoe
49bc653390
Bug 1364799 - Add a new TraversalRestyleBehavior that represents the traversal is triggered by CSS rule changes. r=birtles
...
And propagate the new flag to servo if mRestyleForCSSRuleChanges is set.
MozReview-Commit-ID: HRZ5duYgciF
--HG--
extra : rebase_source : 65528ea0dfa21e84bb9184a849c72a5c322e306b
2017-05-21 08:16:26 +09:00
Bobby Holley
74189ef7bc
Bug 1329876 - Don't maintain a TreeMatchContext for Servo. r=bz
2017-05-20 22:00:01 +02:00
Xidorn Quan
9aa1a400d0
Bug 1365602 - Put script blocker to nsCSSFrameConstructor::RecalcQuotesAndCounters for avoiding triggering event from nsQuoteList::RecalcAll. r=bz
...
MozReview-Commit-ID: JW0vjT0C5iU
--HG--
extra : rebase_source : 87eebc96a828a26b6da26337581f44a9e0418b38
2017-05-18 11:25:48 +10:00
Daniel Holbert
ad52211150
Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
...
MozReview-Commit-ID: Lpr9aNv9hAB
--HG--
extra : rebase_source : c8cccf8e6495ab1d57f9680c07b3e43a488e8691
2017-05-10 13:53:27 -07:00
Daniel Holbert
3b750bdae1
Bug 1344398 part 1: Move presContext variable a little earlier in a nsCSSFrameConstructor method. r=tnikkel
...
Also, assert that this presContext is non-null (which we already implicitly
assume, when we dereference it without null-checking it).
MozReview-Commit-ID: IIYUqGQTOnb
--HG--
extra : rebase_source : 67cbf91fb2fdeb46352559fb519693d6d13d3224
2017-05-10 13:53:25 -07:00
Wes Kocher
8f6058b583
Backed out 3 changesets (bug 1344398) for assertion failures at Element.cpp a=backout
...
Backed out changeset d0e5a5ba01b5 (bug 1344398)
Backed out changeset d70f9de401d1 (bug 1344398)
Backed out changeset 647d0bb3714d (bug 1344398)
MozReview-Commit-ID: DTVWf28NcNb
2017-05-10 17:43:50 -07:00
Daniel Holbert
b216b7b0e8
Bug 1344398 part 2: React to some CSS 'overflow' changes on body/html by simply calling UpdateViewportScrollbarStylesOverride() instead of reframing. r=bz,tnikkel
...
MozReview-Commit-ID: Lpr9aNv9hAB
--HG--
extra : rebase_source : c8cccf8e6495ab1d57f9680c07b3e43a488e8691
2017-05-10 13:53:27 -07:00
Daniel Holbert
7cb2ea776a
Bug 1344398 part 1: Move presContext variable a little earlier in a nsCSSFrameConstructor method. r=tnikkel
...
Also, assert that this presContext is non-null (which we already implicitly
assume, when we dereference it without null-checking it).
MozReview-Commit-ID: IIYUqGQTOnb
--HG--
extra : rebase_source : 67cbf91fb2fdeb46352559fb519693d6d13d3224
2017-05-10 13:53:25 -07:00
Emilio Cobos Álvarez
23bce99ae1
Bug 1361051: rename mozilla::FrameType to mozilla::LayoutFrameType. r=xidorn
...
This avoids conflicts with mozilla::dom::FrameType.
MozReview-Commit-ID: 7aEMbHRaTFk
--HG--
extra : rebase_source : 2d01321f5ce0ec8c0e3f70984674f82678034b3c
2017-05-01 19:32:52 +02:00
Emilio Cobos Álvarez
e44543aad4
Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam
...
MozReview-Commit-ID: 5Nzhyta5Hle
--HG--
extra : rebase_source : c2e9d4bfb9239f5e851d110cd7dff98c1e1a8d8b
2017-04-30 17:30:08 +02:00
Emilio Cobos Álvarez
b27ac0ada8
Bug 1360157: Assert that a display: contents child always has a parent. r=mats
...
MozReview-Commit-ID: Cyif2yCFu5
--HG--
extra : rebase_source : e32f308c4772507d549f7804b461d3fbecdfe4b6
2017-04-27 12:36:07 +02:00
Emilio Cobos Álvarez
6fe2b3e89d
Bug 1355351: Simplify nsLayoutUtils callers, and make child iterators notice display: contents pseudos. r=heycam
...
This also happens to fix other bugs, like making display: contents pseudos
animatable, which weren't before.
MozReview-Commit-ID: LhwTPNbFvSZ
--HG--
extra : rebase_source : 785105b08d6bfa15ad257e61b769a263c6810ad0
2017-04-19 12:53:57 +02:00
Emilio Cobos Álvarez
135c333511
Bug 1355351: Clean up pseudo-element props. r=heycam
...
MozReview-Commit-ID: JZAhEN3chPs
--HG--
extra : rebase_source : f5756182a9ad35b6ac73a6f4d022c1f93ccbf333
2017-04-19 10:27:33 +02:00
Emilio Cobos Álvarez
de9ddcaddd
Bug 1355351: Add a node property to access the ::before and ::after pseudo-elements. r=heycam
...
MozReview-Commit-ID: FJxJp2U0Lxh
--HG--
extra : rebase_source : 062f952aafcda95ca3b0eba69389999c20cb4458
2017-04-16 17:29:49 +02:00
Emilio Cobos Álvarez
6274a34dce
Bug 1358570: Make PurgeCompletedTransitions lookup the correct animation collection. r=hiro
...
Probably GetAnimationCollection itself should assert against it, but that's a
bigger task right now...
MozReview-Commit-ID: JxFWXtgMAXy
--HG--
extra : rebase_source : 90ffd33e56dd8d285765bc7a06572b0ae229b5e7
2017-04-21 16:53:21 +02:00
Astley Chen
18d66f87fd
Bug 1355752 - Remove B2G code from nsCSSFrameConstructor.cpp. r=dholbert
...
MozReview-Commit-ID: Kvzn02nmzb0
--HG--
extra : rebase_source : d70db09f85cbb34cf5fc0fa05c0db3072ca911f5
2017-04-20 13:16:43 +08:00
Emilio Cobos Álvarez
09c3d2ae66
Bug 1354886: null-check parent in FrameConstructor::StyleNewChildren. r=heycam
...
MozReview-Commit-ID: DLZxQu8LI4o
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-13 00:30:00 +08:00
Cameron McCormack
67201815a8
Bug 1353317 - stylo: For newly added content, note dirty descendants in the lazy frame construction case through the flattened tree parent. r=bholley
...
MozReview-Commit-ID: L6MhRK3zmSc
--HG--
extra : rebase_source : 575b146d66898d907b669cbe4295ca25f67a3031
2017-04-04 18:28:05 +08:00
Cameron McCormack
993d5ac341
Bug 1351535 - Part 7: Call StyleSubtreeForReconstruct when doing frame reconstruction. r=bholley
...
MozReview-Commit-ID: HxoGLPKJpnt
--HG--
extra : rebase_source : 92f2fa9a8f8ce369d067920be762015c879e922f
2017-04-04 19:36:09 +08:00
Cameron McCormack
f8a5e03987
Bug 1351535 - Part 3: Only explicitly style newly inserted content if the parent is not in a display:none subtree. r=bholley
...
If we append children to an element inside a display:none tree and we
decide not to do lazy frame construction, StyleNewChildren will assert.
It's also unnecessary, anyway, since we want to keep the descendants
of the display:none element free of ElementData.
MozReview-Commit-ID: 19tuzAzAIDp
--HG--
extra : rebase_source : 457a2c037a02ff50647eed84f51cbee29f737ecd
2017-04-04 19:21:05 +08:00
Cameron McCormack
19734fd5ca
Bug 1351535 - Part 2: Explicitly indicate when a ContentRangeInserted call is for frame reconstruction. r=bholley
...
It wasn't clear to me whether the existing check for whether we are
under a restyle was sufficient to cover all cases of reconstructing
frames, so this patch makes it more explicit by passing that state
into ContentAppended and ContentRangeInserted.
MozReview-Commit-ID: HjlDCzJv97n
--HG--
extra : rebase_source : 8ce4ba097f706e3d9a1f1292515dca64fb8765ab
2017-04-04 19:17:35 +08:00
Xidorn Quan
e3e4554871
Bug 1351957 - Create URLExtraData for holding base uri, referrer, and principal. r=heycam
...
MozReview-Commit-ID: 1wqTb3kvvWh
--HG--
extra : rebase_source : cae3dba21c916ab0f52056bd9db215249b650cd3
2017-03-30 18:54:48 +11:00
Sebastian Hengst
990055a490
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: EjvlThqFc40
2017-04-02 18:52:13 +02:00
Cameron McCormack
08d2db05b2
Bug 1352785 - stylo: Ensure children of elements with invalid -moz-binding URLs get styled. r=bholley
...
MozReview-Commit-ID: 2zot13HgjWU
--HG--
extra : rebase_source : 34dabaa228c0f6c2625804c073ff3a5394647bf0
2017-04-02 15:15:44 +08:00
Olli Pettay
d47c995985
Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
...
--HG--
extra : rebase_source : b7d76ce3321ea0d622da74a72b7278fd0fa63310
2017-03-31 22:49:00 -04:00
Emilio Cobos Álvarez
0b5dcba0dc
Bug 1351791: Simplify PostRestyleEventForLazyConstruction. r=bholley
...
MozReview-Commit-ID: 2jsrojLzYeo
2017-03-31 11:56:29 +02:00
Emilio Cobos Álvarez
9aaeccc118
Bug 1351791: Move PostRestyleEventForLazyConstruction and PostRestyleEventInternal to GeckoRestyleManager. r=bholley
...
MozReview-Commit-ID: 5lrNlkbrnZb
2017-03-31 11:56:29 +02:00
Bobby Holley
be7a7ceab0
Bug 1350244 - Back out bug 1348606 part 5 (Use a threadsafe array for counters). r=me
...
This reverts commit 07301f1c3f71b36dbe2345e8faa9bc6d643cfc97.
MozReview-Commit-ID: 8tLjUhki2C1
2017-03-29 11:05:17 -07:00
Bobby Holley
491b0baa3d
Bug 1350441 - Clear servo data when tearing down frames for DestroyFramesFor. r=heycam
...
MozReview-Commit-ID: DWwu8FqSjdj
2017-03-29 09:27:24 -07:00
Boris Zbarsky
06a153ffc1
Bug 1351139. Use only one kind of anonymous box for the block wrappers we create for a block-inside-inline split. r=dbaron
...
Note that this removes the useless (because this anon box is never absolutely
positioned) "clip: inherit" style.
MozReview-Commit-ID: iJJdv5VL06
--HG--
extra : rebase_source : d7a8697a89391eb6a80683dcbe8e3fa6f76c6a41
2017-03-28 21:26:31 -04:00
Cameron McCormack
d140502cb4
Bug 1349487 - stylo: Eagerly style content appended in a ShadowRoot. r=bholley
...
MozReview-Commit-ID: FnTwSW8YF2p
--HG--
extra : rebase_source : c6b3fded16466bd140b01e57bb471630dd633ffc
2017-03-24 14:44:11 +08:00
Cameron McCormack
9f3f895b0e
Bug 1349134 - stylo: Style newly appended children of an element with a binding through their flattened tree parents. r=bholley
...
MozReview-Commit-ID: 3fQouTm2bw4
--HG--
extra : rebase_source : 599fe1e790c9fb352eb0e81f8f9b08e4012541f2
2017-03-24 14:27:22 +08:00
Ting-Yu Lin
b8a643b87e
Bug 1322570 Part 5 - Use GetParentAllowServo() related to first letter frame. r=bz
...
::first-letter is not support by stylo yet. (bug 1324618)
MozReview-Commit-ID: KwQk2jhn53c
--HG--
extra : rebase_source : 9bafad53a38fd11aae7be09780ee7680d9a40e1c
2017-03-20 14:13:32 +08:00
Mats Palmgren
79cff05243
Bug 1333482 part 2 - [css-ui] Change all consumers of StyleDisplay::mAppearance to use the accessor UsedAppearance() instead, and make mAppearance/mMozAppearance private. r=dholbert
...
MozReview-Commit-ID: 8JwLsY1CLDJ
2017-03-23 22:11:18 -07:00
Bobby Holley
fee01f78fb
Bug 1348606 - Use a threadsafe array for counters. r=xidorn
...
MozReview-Commit-ID: KgTgcD5mGqr
2017-03-23 10:56:49 -07:00
cku
a52259bf72
Bug 1349462 - Part 1. Rename IsSVGText as IsInSVGTextSubtree. r=heycam
...
MozReview-Commit-ID: LTo6c8tTtaf
--HG--
extra : rebase_source : bc6913c42cca141d7a3098fdd4dcc72fbf146b5a
2017-03-23 15:29:11 +08:00
Cameron McCormack
f6e0ca5fb2
Bug 1349457 - stylo: Eagerly style generated content. r=bholley
...
MozReview-Commit-ID: Jv3hNEjUonp
--HG--
extra : rebase_source : 7f935ac0ae8bb5079041b1946ee68532ac625a78
2017-03-23 11:44:00 +08:00
Mats Palmgren
b0adfe4733
Bug 1348665 part 4 - Remove some params to SyncFrameViewProperties and make it a member function instead. Make the aView param optional, use the frame's view if none provided. r=tnikkel
...
MozReview-Commit-ID: KTUaiqr0cmT
2017-03-21 01:22:13 +01:00
Mats Palmgren
896c347cb8
Bug 1348665 part 2 - Remove the ViewProperty and store the nsView* in a field on the relevant frame classes instead. r=tnikkel
...
The relevant frame classes are:
SubDocumentFrame
ListControlFrame (only when used for (non-e10s?) comboboxes)
PluginFrame
ViewportFrame
MenuPopupFrame
The view is now created in the frame's Init() method, except for
ViewportFrame which has its view assigned by the frame constructor
via a SetView() call.
MozReview-Commit-ID: 4O7Hm1yqwIp
2017-03-21 01:22:13 +01:00
Mats Palmgren
48fe777dbb
Bug 1348665 part 1 - Move a few nsView related methods from nsContainerFrame to nsIFrame/nsFrame (idempotent patch). r=dholbert
...
Views are used for PluginFrame which inherits nsFrame, not nsContainerFrame,
so it's more appropriate that these methods should live in nsIFrame/nsFrame.
MozReview-Commit-ID: 87EgCnkF5YT
2017-03-21 01:22:13 +01:00
Emilio Cobos Álvarez
401a3ef429
Bug 1296516: Cleanup infallible or unchecked nsCSSFrameConstructor methods. r=heycam
...
MozReview-Commit-ID: IoMOQyAhadv
2017-03-20 22:28:16 +01:00
Cameron McCormack
fb18ceba5d
Bug 1330843 - Allow JS to create NAC pseudo-elements. r=bholley
...
MozReview-Commit-ID: 2aBPoCOsT6R
--HG--
extra : rebase_source : bc32cd9e4bd5c73af094718c795691da84abe5ba
2017-03-17 15:30:34 +08:00
Cameron McCormack
2a59bf895d
Bug 1346623 - Part 1: Prevent canvas custom content from becoming NAC when reframing the root element. r=bholley
...
MozReview-Commit-ID: K7jcUuz6KI4
--HG--
extra : rebase_source : 85c2939b020e7d4b401382c0d436f16c5af98b5e
2017-03-16 17:43:44 +08:00
Carsten "Tomcat" Book
e08ad28f77
Backed out changeset 9e40bc33e620 (bug 1346623) for perma leak in chrome-style stylo tests
2017-03-17 08:19:20 +01:00
Cameron McCormack
f21bcc7ed3
Bug 1346623 - Part 1: Prevent canvas custom content from becoming NAC when reframing the root element. r=bholley
...
MozReview-Commit-ID: K7jcUuz6KI4
--HG--
extra : rebase_source : 85c2939b020e7d4b401382c0d436f16c5af98b5e
2017-03-16 17:43:44 +08:00
Boris Zbarsky
1081d17998
Bug 1347411 part 7. Change stylo to correctly recompute style of SVG anonymous wrapper boxes. r=heycam
...
This handles ::-moz-svg-marker-anon-child and ::-moz-svg-outer-svg-anon-child.
MozReview-Commit-ID: 8FcYeDG1CKZ
2017-03-15 14:00:44 -04:00
Boris Zbarsky
a16c017a14
Bug 1347411 part 6. Change stylo to correctly recompute style of column-content anonymous boxes. r=heycam
...
MozReview-Commit-ID: 2pNOSVUuLJK
2017-03-15 14:00:43 -04:00