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

Unified Diff: LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html

Issue 242883002: Remove MediaValues' dependency on RenderStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified minimal recalc tests to represent reduced recalc. Created 6 years, 8 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: LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html
diff --git a/LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html b/LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html
index a7913d275f7cc12c2b2fe4df97b57c2f8bec8675..1f15d06cdd3b816c95b2ce96a7a814e890585242 100644
--- a/LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html
+++ b/LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html
@@ -70,7 +70,7 @@ if (window.internals) {
barSheet.remove();
bazSheet.remove();
// Recalc 6 elements + documentElement.
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6");
// Add two sheets that each match one node. Add one to the beginning of the stylesheet list.
document.documentElement.offsetTop;
@@ -78,14 +78,14 @@ if (window.internals) {
var bazSheet = createSheet('.baz');
document.head.insertBefore(bazSheet, document.head.firstChild);
// Recalc 6 elements + documentElement.
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6");
// Remove two sheets that each match one node. One is from the beginning of the stylesheet list.
document.documentElement.offsetTop;
barSheet.remove();
bazSheet.remove();
// Recalc 6 elements + documentElement.
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6");
// Add and remove sheets in the same run.
document.documentElement.offsetTop;
@@ -96,6 +96,6 @@ if (window.internals) {
var bazSheet = addSheet('.baz');
barSheet.remove();
// Recalc 6 elements + documentElement.
- shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7");
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6");
}
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698