| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index 7a883fbbb0dc81a1e703bce489c5f29ead8bdea9..c9323b3dbb7fa6990d8fde759c80e59733f85c6b 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -775,16 +775,18 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType, StyleChangeSource sou
|
| markAncestorsWithChildNeedsStyleRecalc();
|
| }
|
|
|
| -void Node::lazyAttach()
|
| +void Node::lazyAttach(ShouldSetAttached shouldSetAttached)
|
| {
|
| markAncestorsWithChildNeedsStyleRecalc();
|
| for (Node* node = this; node; node = NodeTraversal::next(node, this)) {
|
| node->setStyleChange(LazyAttachStyleChange);
|
| if (node->isContainerNode())
|
| node->setChildNeedsStyleRecalc();
|
| - node->setAttached();
|
| + // FIXME: This flag is only used by HTMLFrameElementBase and doesn't look needed.
|
| + if (shouldSetAttached == SetAttached)
|
| + node->setAttached();
|
| for (ShadowRoot* root = node->youngestShadowRoot(); root; root = root->olderShadowRoot())
|
| - root->lazyAttach();
|
| + root->lazyAttach(shouldSetAttached);
|
| }
|
| }
|
|
|
|
|