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
Boris Zbarsky
fccccf142c
Bug 1347411 part 5. Change stylo to correctly recompute style on the anonymous boxes that hang off comboboxes. r=heycam
...
I did manual testing for ::-moz-dropdown-list. Unfortunately, the only way I
know to test it is to have a combobox in a non-e10s window and dynamically
change its background color, then drop down the dropdown and see whether it
picked up the changed background color.
MozReview-Commit-ID: B2RkW4otv4s
2017-03-15 14:00:43 -04:00
Boris Zbarsky
ed85b458f3
Bug 1347411 part 3. Fix stylo to properly update styles for the content container frame of <fieldset>. r=heycam
...
MozReview-Commit-ID: D9D2xtjRldF
2017-03-15 14:00:43 -04:00
Boris Zbarsky
784eb8f590
Bug 1347411 part 2. Fix stylo to properly update styles for the various frames that use FCDATA_WITH_WRAPPING_BLOCK to wrap an anonymous block around their kids. r=heycam
...
This handles ::-moz-button-content, ::-moz-html-canvas-content, ::-moz-svg-text,
::-moz-svg-foreign-content.
MozReview-Commit-ID: 3xk7214X2uR
2017-03-15 14:00:43 -04:00
Boris Zbarsky
2c7f4763df
Bug 1345362 part 6. Make ::-moz-pagebreak a non-inheriting anon box. r=heycam
...
MozReview-Commit-ID: ClqKv8HOFj4
--HG--
extra : rebase_source : 33785fdf7c14cf401d7c5a519ed2927db13c3077
2017-03-08 23:50:59 -05:00
Boris Zbarsky
964a12c306
Bug 1345362 part 4. Rename ResolveAnonymousBoxStyle to ResolveInheritingAnonymousBoxStyle. r=heycam
...
MozReview-Commit-ID: GVA1fTh0RDv
--HG--
extra : rebase_source : 4333baf6764f346d68836e387fa002705684bfdd
2017-03-08 23:50:28 -05:00
Boris Zbarsky
021078e722
Bug 1343879. Be consistent about the parent style context the document-level anonymous content container should get: it should get no parent style context. r=bholley
...
MozReview-Commit-ID: 8cVsXhVWBgS
2017-03-08 03:14:10 -05:00
Boris Zbarsky
f12067d36e
Bug 1343078 part 7. Make placeholders a non-inheriting anon box. r=dbaron
...
MozReview-Commit-ID: 3kQQroDRlr8
--HG--
extra : rebase_source : 6b1c8e0c1f287532badedb50439e415f97a4cf81
2017-03-08 00:18:40 -05:00
Boris Zbarsky
ca2ae1cf7a
Bug 1343078 part 1. Give placeholders and first-letter continuations different kinds of anonymous boxes. r=dbaron
...
MozReview-Commit-ID: B5IHgVUo1Rp
--HG--
extra : rebase_source : d7eab69a0dbcf0a460a249d843c5510a470b5a04
2017-03-08 00:18:32 -05:00
Bobby Holley
b0a17f9f9c
Bug 1343937 - Exempt scrollbar NAC from the new NAC semantics. r=bz
...
MozReview-Commit-ID: 8TbFkirYOy2
2017-03-07 13:54:38 -08:00
Bobby Holley
3439f1454b
Bug 1343937 - Implement and use GetInFlowParent. r=bz
...
MozReview-Commit-ID: 3xMjHnVO2Az
2017-03-07 13:54:36 -08:00
Emilio Cobos Álvarez
78a1fe605c
Bug 1329877: Optimize AncestorFilter usage in lazy frame construction. r=bz
...
MozReview-Commit-ID: ErzurfQldHf
--HG--
extra : rebase_source : 62ee2020c8fa14b9475a660ea995537d6521779f
2017-02-27 23:35:06 +01:00
Boris Zbarsky
f4e8b5761a
Bug 1340277. Fix stylo to properly update styles on the anonymous scrolled-content frame inside a scrollframe. r=emilio
...
MozReview-Commit-ID: DE4C6pIp8SC
--HG--
extra : rebase_source : 4e7071074791fee71b7bd61da27387035d803374
2017-03-03 16:16:11 -05:00
Boris Zbarsky
50936b7afe
Bug 1343771. Fix stylo to properly update styles on the anonymous block inside a table cell. r=emilio
...
MozReview-Commit-ID: 8LnPTKVxxVc
2017-03-03 16:14:39 -05:00
Boris Zbarsky
e5e572124c
Bug 1337696. Fix change hint computation for table-outer frames to be more correct. r=emilio
...
MozReview-Commit-ID: LgRmTlWsM6o
--HG--
extra : rebase_source : dc18a9ca923eedbb2aaba80d515c70bd80a90d4e
2017-03-03 15:54:47 -05:00
Boris Zbarsky
799bc86f7c
Bug 1340723 part 3. Fix stylo to properly update styles on the anonymous blocks we create in a block-inside-inline situation when the style of the inline changes. r=emilio
...
MozReview-Commit-ID: JYz6g1ZJInT
--HG--
extra : rebase_source : 356785e1de38745c9ca23a04ce58a1d53dce692b
2017-03-03 15:45:40 -05:00
Mats Palmgren
3f06dc5432
Bug 1339287 - Don't blockify 'display' in ApplyStyleFixups unless aFrame really is a flex/grid container frame, not just has display:flex/grid. r=dholbert
2017-02-20 17:43:08 +01:00
cam@mcc.id.au
35e68ba276
Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time, and eliminate explicit style contexts in nsIAnonymousContentCreator::ContentInfo. r=bholley
...
MozReview-Commit-ID: LO0t92orjWZ
--HG--
extra : rebase_source : 56611b57af30555f46e8d417f95690fb5d6ab115
2017-01-13 03:21:11 +00:00
Bobby Holley
3df81392a2
Bug 1331322 - Add a flag to indicate that a node is native anonymous content. r=bholley
...
--HG--
extra : rebase_source : f32a12b6cca7f4a5d73dd2169414a745ddbf2926
2017-01-20 18:28:46 -08:00
Phil Ringnalda
d2fa909610
Backed out 4 changesets (bug 1331322) for Android reftest failures in 1169331-1.html and forced-bg-color-outside-visible-region.html
...
Backed out changeset 96c6b5a11284 (bug 1331322)
Backed out changeset 15877d32de7d (bug 1331322)
Backed out changeset 841d608704d7 (bug 1331322)
Backed out changeset 02096c5eb029 (bug 1331322)
2017-02-15 21:24:00 -08:00
cam@mcc.id.au
34be31a2d7
Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time, and eliminate explicit style contexts in nsIAnonymousContentCreator::ContentInfo. r=bholley
...
MozReview-Commit-ID: LO0t92orjWZ
--HG--
extra : rebase_source : 56611b57af30555f46e8d417f95690fb5d6ab115
2017-01-13 03:21:11 +00:00
Bobby Holley
4588a4f2db
Bug 1331322 - Add a flag to indicate that a node is native anonymous content. r=bholley
...
--HG--
extra : rebase_source : f32a12b6cca7f4a5d73dd2169414a745ddbf2926
2017-01-20 18:28:46 -08:00
Wes Kocher
017c515285
Merge inbound to m-c a=merge
...
MozReview-Commit-ID: IKI0zVtF1n9
2017-02-15 16:18:13 -08:00
Emilio Cobos Álvarez
1c42d767e8
Bug 1338678: Only disallow lazy frame construction for direct children of display: contents elements. r=mats,bz
...
MozReview-Commit-ID: 3lQ3LIVMZgt
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-02-15 11:53:25 +01:00
Cameron McCormack
f63cdecde2
Bug 1297899 - Part 6: Move RestyleManagerHandle functionality into RestyleManager. r=bholley
...
MozReview-Commit-ID: 7lsti0bGzNr
--HG--
extra : rebase_source : 13c64026190afe5de25f540adb6deea9f518149f
2017-02-13 11:21:33 +08:00
Cameron McCormack
eddea92878
Bug 1297899 - Part 3: Rename RestyleManager to GeckoRestyleManager and RestyleManagerBase to RestyleManager. r=bholley
...
MozReview-Commit-ID: fFTZKwmGJm
--HG--
extra : rebase_source : 42b99c8a9c5616999abae2d195d16547f1fbc80f
2017-02-13 11:21:32 +08:00
Cameron McCormack
41cbd56383
Bug 1331294 - Part 6: Remove RestyleManager::HasPendingRestyles and Servo_Element_ShouldTraverse. r=bholley
...
MozReview-Commit-ID: 2ST5i7M4QZ4
2017-02-10 10:42:30 +08:00
Cameron McCormack
b2ee81223c
Bug 1334735 - Part 1: Move need style/flush flags from document to pres shell. r=bz
...
MozReview-Commit-ID: 2Amf9yGRiJA
2017-02-10 10:42:27 +08:00
L. David Baron
53a46a6356
Bug 605985 part 2 - Make -moz-appearance:none on radio and checkbox inputs make them non-replaced elements. r=dholbert
2017-02-09 21:22:40 +01:00
Boris Zbarsky
1a543ff1ad
Bug 835981 part 5. Change nsIDOMXULElement::GetBoxObject consumers to nsXULElement. r=peterv
2017-02-02 10:32:58 -05:00
Bobby Holley
283c85132a
Bug 1334358 - Stop using CreateAnonymousFrames for scroll frame construction and remove the now-unused helper. r=bz
2017-01-27 16:13:35 -08:00
Bobby Holley
fd04f8fa75
Bug 1334358 - Stop using CreateAnonymousFrames for combo box creation. r=bz
2017-01-27 16:13:33 -08:00
Bobby Holley
0d6e9dc9ff
Bug 1334247 - Add an explicit hook for the nsComboboxControlFrame case, and eliminate nsIAnonymousContentCreator::CreateFrameFor. r=bz
2017-01-26 15:33:06 -08:00
Bobby Holley
6a150c778b
Bug 1329854 - Check IsInStyleRefresh for all the servo-related handling in nsCSSFrameConstructor::Content{Appended,RangeInserted}. r=heycam
2017-01-12 17:33:07 -08:00
Bobby Holley
0574db6b6e
Bug 1329854 - Call NoteDirtyDescendants when frame construction bails out due to lack of a container frame. r=heycam
2017-01-12 17:33:01 -08:00
Bobby Holley
004deddec2
Bug 1330401 - Don't render explicit children of bound elements with no insertion points. r=bz
2017-01-11 21:08:03 -08:00
Bobby Holley
09ce7e77ed
Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio
2017-01-09 11:50:16 -08:00
Ryan VanderMeulen
1e6f972917
Merge inbound to m-c. a=merge
2017-01-07 11:22:47 -05:00
Emilio Cobos Álvarez
d449269afd
Bug 1329200: Remove unused FrameManager global generation counter. r=xidorn
...
MozReview-Commit-ID: AXkaZYxpK2y
--HG--
extra : rebase_source : a02753e044fb89d4ea6a476e4b8f3e9fc0e4eb0c
2017-01-06 16:03:41 +01:00
Daniel Holbert
2bdeb3ab01
Bug 1320484 part 2: Wrap abspos placeholders in anonymous flex items, in flex containers that are really emulating legacy -webkit-box containers. r=mats
...
This changeset is intended to revert the logic from "Bug 1269045 part 3" [1],
*specifically* for legacy "-webkit-box"/"-webkit-inline-box" flex containers.
[1] https://hg.mozilla.org/mozilla-central/rev/707b2ab5879d
MozReview-Commit-ID: vc4TuAoLai
--HG--
extra : rebase_source : 3cc143055fc46851e882d48df2bd913ca1487793
2017-01-04 20:31:17 -08:00
Daniel Holbert
3ee9d5690d
Bug 1320484 part 1: Improve documentation for debug-only function FrameWantsToBeInAnonymousItem(), & change its arg from nsIAtom* to nsIFrame*. r=mats
...
This patch doesn't affect behavior at all -- it just refactors the
sanity-checking function "FrameWantsToBeInAnonymousItem()", so that the next
patch in this series can give it a new special case that checks a state bit on
the container frame.
This patch renames "parent" to "container" in this function's variable-names,
for clarity, because when this function returns true, the flex/grid container
is actually NOT expected to be the parent of aFrame. Rather, it's expected to
be the grandparent, and the anonymous flex/grid item would be the parent. So,
"aContainerFrame"/"containerType" is a bit more accurate (representing the
flex/grid container for aFrame).
Also worth mentioning: this patch makes FrameWantsToBeInAnonymousItem() perform
its own local GetType() call, instead of accepting an already-queried GetType()
result from the caller (as it previously did). Technically this could cause a
slight perf hit, but it doesn't really matter since this is in "#ifdef DEBUG"
sanity-checking code anyway. We could keep the nsIAtom* as an additional arg
to avoid this new call, but it seems better to fall on the side of simplicity &
just look up GetType() independently, rather than complicating the function
signature with an extra arg.
MozReview-Commit-ID: 4oJFkQMuH9c
--HG--
extra : rebase_source : 3b5d60d8c15e69470f450168698b855e353486d3
2017-01-04 20:29:19 -08:00
Timothy Nikkel
24281c4a15
Bug 1328202. Remove unused variable mGfxScrollFrame in nsCSSFrameConstructor. r=mats
2017-01-02 22:07:51 -06:00
Cameron McCormack
e50e656e7d
Bug 1315155 - Part 1: Encapsulate nsStyleContentData. r=xidorn
...
MozReview-Commit-ID: LfEMxyM5meF
2016-10-20 10:22:46 +08:00
Mats Palmgren
6aead680d1
Bug 1322191 part 2b - Replace "NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT" with NS_BLOCK_FORMATTING_CONTEXT_STATE_BITS. r=dholbert
2016-12-23 19:11:04 +01:00
Mats Palmgren
46f54ec32b
Bug 1322191 part 2 - [css-display] Implement layout for display:flow-root. r=dholbert
2016-12-23 19:11:03 +01:00
Boris Zbarsky
02a4004751
Bug 1321803 part 3. Don't claim that we forced a non-scrollable block for <body> elements in a print presentation that would have propagated their scrollbars to the viewport. We do still want to create a non-scrollable block for them, though. r=dbaron
...
--HG--
rename : layout/reftests/printing/129941-1a.html => layout/reftests/printing/129941-1c.html
rename : layout/reftests/printing/129941-1b.html => layout/reftests/printing/129941-1d.html
rename : layout/reftests/printing/129941-1b.html => layout/reftests/printing/129941-1e.html
rename : layout/reftests/printing/129941-1-ref.html => layout/reftests/printing/1321803-1-ref.html
rename : layout/reftests/printing/129941-1a.html => layout/reftests/printing/1321803-1a.html
2016-12-22 17:42:22 -08:00
Jessica Jong
556aae19f0
Bug 1286182 - Implement the layout for <input type=date>. r=mconley,smaug
...
--HG--
rename : dom/html/test/forms/test_input_time_focus_blur_events.html => dom/html/test/forms/test_input_datetime_focus_blur_events.html
2016-12-19 00:50:00 +08:00
Robert Longson
1bae76206e
Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
...
--HG--
rename : dom/svg/nsSVGPathGeometryElement.cpp => dom/svg/SVGGeometryElement.cpp
rename : dom/svg/nsSVGPathGeometryElement.h => dom/svg/SVGGeometryElement.h
rename : dom/svg/nsSVGPolyElement.cpp => dom/svg/SVGPolyElement.cpp
rename : dom/svg/nsSVGPolyElement.h => dom/svg/SVGPolyElement.h
rename : layout/svg/nsSVGPathGeometryFrame.cpp => layout/svg/SVGGeometryFrame.cpp
rename : layout/svg/nsSVGPathGeometryFrame.h => layout/svg/SVGGeometryFrame.h
2016-12-18 11:11:47 +00:00
Sebastian Hengst
cdeb642a1b
Backed out changeset 0b44e8715bf5 (bug 1239100) for build bustage (SVGGeometryElement.webidl missing). r=backout
...
--HG--
rename : dom/svg/SVGGeometryElement.cpp => dom/svg/nsSVGPathGeometryElement.cpp
rename : dom/svg/SVGGeometryElement.h => dom/svg/nsSVGPathGeometryElement.h
rename : dom/svg/SVGPolyElement.cpp => dom/svg/nsSVGPolyElement.cpp
rename : dom/svg/SVGPolyElement.h => dom/svg/nsSVGPolyElement.h
rename : layout/svg/SVGGeometryFrame.cpp => layout/svg/nsSVGPathGeometryFrame.cpp
rename : layout/svg/SVGGeometryFrame.h => layout/svg/nsSVGPathGeometryFrame.h
2016-12-18 11:42:51 +01:00
Robert Longson
783bfbb1e4
Bug 1239100 - Implement SVGGeometryElement interface. r=cam r=peterv
...
--HG--
rename : dom/svg/nsSVGPathGeometryElement.cpp => dom/svg/SVGGeometryElement.cpp
rename : dom/svg/nsSVGPathGeometryElement.h => dom/svg/SVGGeometryElement.h
rename : dom/svg/nsSVGPolyElement.cpp => dom/svg/SVGPolyElement.cpp
rename : dom/svg/nsSVGPolyElement.h => dom/svg/SVGPolyElement.h
rename : layout/svg/nsSVGPathGeometryFrame.cpp => layout/svg/SVGGeometryFrame.cpp
rename : layout/svg/nsSVGPathGeometryFrame.h => layout/svg/SVGGeometryFrame.h
2016-12-18 09:54:02 +00:00
Bobby Holley
2207c01808
Bug 1322945 - Change skip_root to unstyled_children_only and use StyleNewChildren in more places. r=heycam
...
I noticed that our current behavior in ContentRangeInserted is incorrect. Unlike
ContentInserted (where this code lived originally), ContentRangeInserted takes a
start and end element. I'm not sure if we ever take that path for new content that
needs style, but it seemed sketchy. And generally, it seems nice to just always
style new content the same way (though we still need to style NAC by the subtree
root, since it hasn't been attached to the parent yet).
For situations where there is indeed only one unstyled child, the traversal
overhead should be neglible, since we special-case the single-element in
parallel.rs to avoid calling into rayon.
Being more explicit about what we want here also makes us more robust against
the other handful of callpaths that can take us into
nsCSSFrameConstructor::{ContentRangeInserted,ContentAppended}. Currently we
can call StyleNewSubtree on an already-styled element via RecreateFramesForContent,
which triggers an assertion in the servo traversal.
MozReview-Commit-ID: DqCGh90deHH
2016-12-12 18:39:33 -08:00
Cameron McCormack
f5bb6f2dfd
Bug 1322185 - Rename some StyleDisplay enum values for consistency. r=xidorn
...
MozReview-Commit-ID: K27LmXKWNdk
2016-12-05 21:36:28 -10:00
Phil Ringnalda
2edc2d42db
Merge m-i to m-c, a=merge
...
MozReview-Commit-ID: ByPMe4s1FrG
2016-12-02 22:17:31 -08:00
Tomislav Jurin
348bfffc19
Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj
2016-12-02 13:46:53 -08:00
Daniel Holbert
a720a44ada
Bug 1321698 part 2: Use the new frame state bit to check for -webkit-box containers. r=mats
...
Note that at the callsites in nsCSSFrameConstructor.cpp, we have to also check
the frame type (since the frame state bit is in a range of bits whose meaning
differs depending on frame type). The first change in this patch is the
addition of a convenience fucntion that checks both the frame type as well as
the frame state bit.
MozReview-Commit-ID: DEOThTX5NAO
--HG--
extra : rebase_source : 95e86eec663b3ef2e7bb86214871fcd3ea86057c
2016-12-02 10:32:31 -08:00
Ting-Yu Lin
4174a3a87e
Bug 1304598 Part 3 - Rename nsPresShell.h/cpp to PresShell.h/cpp, and move exported header to mozilla/ subdir. r=dholbert
...
The class PresShell doesn't have ns-prefix, so it's better to drop ns-prefix
in the file names to avoid confusion.
MozReview-Commit-ID: IljxsF5CVjh
--HG--
rename : layout/base/nsPresShell.cpp => layout/base/PresShell.cpp
rename : layout/base/nsPresShell.h => layout/base/PresShell.h
extra : rebase_source : e73a6873f360a7223d87bd22d9854fc9603c499f
2016-11-30 11:14:28 +08:00
Mats Palmgren
7c01c6afca
Bug 1279354 part 1 - Always call SetPrimaryFrame for NS_FRAME_ANONYMOUSCONTENTCREATOR_CONTENT frames (unless there is one already), including when mCreatingExtraFrames is true. r=dholbert
2016-11-28 23:00:20 +01:00
Bobby Holley
f8c9d884fc
Bug 1317016 - Basic infrastructure for RestyleHint-driven traversal. r=emilio
...
MozReview-Commit-ID: 7wH5XcILVmX
2016-11-25 10:06:39 -08:00
Xidorn Quan
5c2af0823d
Bug 1308848 - Not request style of comment node when checking valid sibling. r=bz
...
MozReview-Commit-ID: 6Sq8C2LUkpT
--HG--
extra : rebase_source : 2db641f09e66b7e5f1e6d48deb5bfb5fa9026948
2016-10-17 17:29:38 +11:00
Ting-Yu Lin
55e3c801ba
Bug 1271549 - Remove details and summary preference. r=bz
...
Bug 1259889 Part 2 [1] cannot be reverted cleanly, so I manually undo those
changes in this patch. That is, remove the ability for html.css to
invalidate dynamically since it was added specifically for details element.
Although reftest-stylo.list explicit mentions "DO NOT EDIT!", but I still
remove details pref from the file, since it doesn't harm to edit it anyway.
[1] https://hg.mozilla.org/mozilla-central/rev/30aaf3805b56
MozReview-Commit-ID: FsyTGQTxujh
--HG--
extra : rebase_source : 25e5a05a8a5a47642772da69f427631fa07e232d
2016-11-16 14:02:58 +08:00
Daniel Holbert
d7a39cb724
Bug 1269045 part 4: Drop now-obsolete parameter from anonymous flex/grid-item wrapping functions. r=mats
...
MozReview-Commit-ID: 5rGemcMMOhl
2016-10-31 08:58:18 -07:00