gecko-dev/layout
Emilio Cobos Álvarez 339814eda4 Bug 1427677: Get rid of nsContentUtils::HasDistributedChildren. r=bz
The whole function doesn't have much sense.

I killed its only DOM use in bug 1427511.

Now it only has two callers in nsCSSFrameConstructor, which basically only want
to know whether the children of the same node can have different flattened tree
parents.

So let's check that directly instead (checking whether the element has a binding
or a shadow root), and simplify a bit other surrounding code while at it.

Leave the XUL popup / menubar code doing the broken thing they were doing
beforehand, because it doesn't look to me like it's trivial to fix... They're
effectively assuming that the children of the menupopup end up in a single
insertion point, which is true, but doesn't need to be. Maybe they should walk
the DOM tree? Don't want to dig into that right now, since XUL insertion points
can be filtered and all that... Not fun.

Also, this removes the broken optimization that used to check
mParentFrame->GetContent()->HasChildren(), because it's pretty broken. It used
to be relevant before bug 653881, because <children> element used to not exist,
but now the insertion point at least needs to contain the <children> element all
the time.

There even used to be a XXX comment saying that the optimization didn't work,
which was removed in:

  https://hg.mozilla.org/mozilla-central/rev/2d8585ec74b3

We could still check for "no insertion points", and optimize that, but it
doesn't seem worth it.

MozReview-Commit-ID: L4lspkxKENr
2018-01-09 20:50:17 +01:00
..
base Bug 1427677: Get rid of nsContentUtils::HasDistributedChildren. r=bz 2018-01-09 20:50:17 +01:00
build Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 22 - DOMPrefs initialized at startup, r=asuth 2018-01-08 14:05:07 +01:00
doc
forms Bug 1419771 - Introduce DOMPrefs, a thread-safe access to preferences for DOM - part 16 - Webkit/Blink directory picker enabled, r=asuth 2018-01-08 14:05:05 +01:00
generic Backed out changeset 17660bff0c23 (bug 1423331) for 4 failures in layout/base/tests/test_reftests_with_caret.html r=backout on a CLOSED TREE 2018-01-09 17:49:00 +02:00
inspector Bug 1425769: Base class for ShadowRoot and Document to manage style state. r=smaug 2017-12-19 11:09:59 +01:00
ipc Bug 1415225 - Move the EventRegionsOverride field to be on RefLayers only. r=botond 2017-11-09 09:03:52 -05:00
mathml Bug 1426345 - Invalidate MathML display items when we destroy the referenced nsMathMLChar. r=mwoodrow 2017-12-27 08:39:06 +01:00
media
painting Bug 1428765 - Fix scenario where display item clip chains hash to different values even though they are equal. r=mstange 2018-01-09 12:31:58 -05:00
printing Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb 2018-01-03 13:59:54 +01:00
reftests Bug 1427114 - Add missing ">" to unclosed meta element so WPT finds the test r=emilio 2018-01-06 22:30:42 +00:00
style Bug 1428339: followup: Add missing include that busts some builds on a CLOSED TREE. r=me 2018-01-09 17:50:39 +01:00
svg Bug 1427292: [css-display] Update display: contents on Unusual Elements to the spec. r=mats 2018-01-06 21:52:51 +01:00
tables Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz 2017-12-25 17:50:10 +01:00
tools Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE 2018-01-03 23:59:59 +02:00
xul Bug 1427677: Get rid of nsContentUtils::HasDistributedChildren. r=bz 2018-01-09 20:50:17 +01:00
moz.build Bug 1417978 - Stop packaging layout debugger on Android. r=nalexander 2018-01-04 15:22:35 -06:00