Commit ab390fb7 authored by Rune Lillesveen's avatar Rune Lillesveen Committed by Commit Bot

NeedsRebuildLayoutTree after SlotInFlatTree removal.

Runtime flag is now removed so adjusted comment accordingly.
IsActiveV0InsertionPoint required pulling in v0_insertion_point.h, so
dropped doing that.

Change-Id: I914c1567c6a90473b53b470ff34d35b32b2530d2
Reviewed-on: https://chromium-review.googlesource.com/1209502Reviewed-by: default avatarHayato Ito <hayato@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#589435}
parent 3301bab5
...@@ -508,9 +508,8 @@ class CORE_EXPORT Element : public ContainerNode { ...@@ -508,9 +508,8 @@ class CORE_EXPORT Element : public ContainerNode {
void RecalcStyle(StyleRecalcChange); void RecalcStyle(StyleRecalcChange);
bool NeedsRebuildLayoutTree( bool NeedsRebuildLayoutTree(
const WhitespaceAttacher& whitespace_attacher) const { const WhitespaceAttacher& whitespace_attacher) const {
// TODO(futhark@chromium.org): !CanParticipateInFlatTree() can be replaced // TODO(futhark@chromium.org): !CanParticipateInFlatTree() can be removed
// by IsActiveV0InsertionPoint() when slots are always part of the flat // when Shadow DOM V0 support is removed.
// tree, and removed completely when Shadow DOM V0 support is removed.
return NeedsReattachLayoutTree() || ChildNeedsReattachLayoutTree() || return NeedsReattachLayoutTree() || ChildNeedsReattachLayoutTree() ||
!CanParticipateInFlatTree() || !CanParticipateInFlatTree() ||
(whitespace_attacher.TraverseIntoDisplayContents() && (whitespace_attacher.TraverseIntoDisplayContents() &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment