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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html

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
Index: third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html
index 9c7e23c64476a059f26c99a14bac6d9ab3335c64..8a1ef18cb6014247f73bee78a84bb0da1cbbef1c 100644
--- a/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-inserted.html
@@ -40,7 +40,7 @@ test(function() {
assert_equals(getComputedStyle(r1).backgroundColor, "rgba(0, 0, 0, 0)", "Background color should initially be transparent");
i1.parentNode.insertBefore(document.createElement('div'), i1);
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 4, "Subtree style recalc");
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Inserted div plus #r1 recalculated");
assert_equals(getComputedStyle(r1).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change");
}, "Insert between siblings");
@@ -52,7 +52,7 @@ test(function() {
var t2 = document.createElement('div');
t2.id = 't2';
i2.parentNode.insertBefore(t2, i2);
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 4, "Subtree style recalc");
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Inserted div plus #r2 recalculated");
assert_equals(getComputedStyle(r2).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change");
}, "Insert before siblings");
@@ -61,7 +61,7 @@ test(function() {
var r3 = document.getElementById('r3');
d3.parentNode.removeChild(d3);
- assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 3, "Subtree style recalc");
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1, "#r3 recalculated");
assert_equals(getComputedStyle(r3).backgroundColor, "rgb(0, 128, 0)", "Background color is green after class change");
}, "Remove between siblings");

Powered by Google App Engine
This is Rietveld 408576698