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

Unified Diff: LayoutTests/fast/css/recalc-inherit-001.html

Issue 139743017: Don't propagate Inherit ad infinitum. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test review issues. Created 6 years, 11 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 | « no previous file | LayoutTests/fast/css/recalc-inherit-001-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/recalc-inherit-001.html
diff --git a/LayoutTests/fast/css/recalc-inherit-001.html b/LayoutTests/fast/css/recalc-inherit-001.html
new file mode 100644
index 0000000000000000000000000000000000000000..acd8f4b9d724c0c923a085de1523b75e233c1714
--- /dev/null
+++ b/LayoutTests/fast/css/recalc-inherit-001.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+ div { color: black; }
+</style>
+<div id="t">
+ <div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ </div>
+</div>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+description("Check that we don't do unnecessary style recalcs for inheritance.");
+
+if (window.internals)
+ internals.updateStyleAndReturnAffectedElementCount();
+
+document.getElementById("t").style.color = "pink";
+
+if (window.internals)
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/recalc-inherit-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698