Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
index 2bda5cdbf441a5e23692f3e6f0a5aa4eaed21e93..330a6027b22b378232695d59bc56da084a9aadbc 100644 |
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
@@ -767,6 +767,7 @@ void ContainerNode::attachLayoutTree(const AttachContext& context) { |
} |
clearChildNeedsStyleRecalc(); |
+ clearChildNeedsReattachLayoutTree(); |
Node::attachLayoutTree(context); |
} |
@@ -1286,7 +1287,7 @@ void ContainerNode::recalcDescendantStyles(StyleRecalcChange change) { |
} else if (child->isElementNode()) { |
Element* element = toElement(child); |
if (element->shouldCallRecalcStyle(change)) |
- element->recalcStyle(change, lastTextNode); |
+ element->recalcStyle(change); |
else if (element->supportsStyleSharing()) |
styleResolver.addToStyleSharingList(*element); |
if (element->layoutObject()) |