Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: third_party/WebKit/Source/core/dom/ContainerNode.cpp

Issue 2727233005: Remove calls to styleForLayoutObject() in LayoutTreeBuilder::style() (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f10d8fcd1b9e9f0b9474d148ba5e18773e1afd9e..28788f5d5adb87f0cd9e69d87d3c7fd77e716a60 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::recalcDescendantStylesForLayout() {
+ for (Node* child = lastChild(); child; child = child->previousSibling()) {
+ if (child->isElementNode())
+ toElement(child)->recalcStyleForLayout();
+ }
+}
+
void ContainerNode::checkForSiblingStyleChanges(SiblingCheckType changeType,
Element* changedElement,
Node* nodeBeforeChange,

Powered by Google App Engine
This is Rietveld 408576698