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

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

Issue 2362463004: Missing sibling invalidation across removed element. (Closed)
Patch Set: Rebased Created 4 years, 3 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/LayoutTests/fast/css/invalidation/sibling-mutation-min-direct.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 61626ccd83cb7d8204f622796cb8f3fe303e7548..c19ca69998809a5f109748fc23b99429542a7d63 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -739,7 +739,7 @@ void StyleEngine::scheduleInvalidationsForRemovedSibling(Element* beforeElement,
scheduleSiblingInvalidationsForElement(removedElement, *schedulingParent, 1);
- for (unsigned i = 2; beforeElement && i <= affectedSiblings; i++, beforeElement = ElementTraversal::previousSibling(*beforeElement))
+ for (unsigned i = 1; beforeElement && i <= affectedSiblings; i++, beforeElement = ElementTraversal::previousSibling(*beforeElement))
scheduleSiblingInvalidationsForElement(*beforeElement, *schedulingParent, i);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-mutation-min-direct.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698