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

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

Issue 2089063005: Schedule sibling invalidation sets for sibling insert/remove. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed minDirectAdjacent optimization. Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 5a811b2ddd4d14c8c46e4e5adbfe5ca99e2fa5c9..f87af299317ce39d24b12bdfe86b00999a00ca1d 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -2091,7 +2091,7 @@ void Element::childrenChanged(const ChildrenChange& change)
checkForEmptyStyleChange();
if (!change.byParser && change.isChildElementChange())
- checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAfterChange);
+ checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingElementRemoved : SiblingElementInserted, change.siblingChanged, change.siblingBeforeChange, change.siblingAfterChange);
// TODO(hayato): Confirm that we can skip this if a shadow tree is v1.
if (ElementShadow* shadow = this->shadow())
@@ -2102,7 +2102,7 @@ void Element::finishParsingChildren()
{
setIsFinishedParsingChildren(true);
checkForEmptyStyleChange();
- checkForSiblingStyleChanges(FinishedParsingChildren, lastChild(), nullptr);
+ checkForSiblingStyleChanges(FinishedParsingChildren, nullptr, lastChild(), nullptr);
}
#ifndef NDEBUG
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698