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 1be048eec8c55266823a50c08266ee08568ee250..e563ba200aa22a57a3c17877c79635d3696ebbda 100644 |
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
@@ -1330,6 +1330,13 @@ void ContainerNode::rebuildChildrenLayoutTrees() { |
clearChildNeedsReattachLayoutTree(); |
} |
+void ContainerNode::recalcDescendantStylesForReattach() { |
+ for (Node* child = lastChild(); child; child = child->previousSibling()) { |
+ if (child->isElementNode()) |
+ toElement(child)->recalcStyleForReattach(); |
+ } |
+} |
+ |
void ContainerNode::checkForSiblingStyleChanges(SiblingCheckType changeType, |
Element* changedElement, |
Node* nodeBeforeChange, |