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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html

Issue 2258793003: Use LocalStyleChange for insertion point inheritance propagation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 | third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html
new file mode 100644
index 0000000000000000000000000000000000000000..3955edca9c02f1d689775902222e0f9db4327926
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/inherit-through-insertion-point-v0.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+ #stopInherit { color: green }
+</style>
+<div id="host">
+ <div id="stopInherit">
+ <span></span>
+ <span></span>
+ <span></span>
+ <span></span>
+ <span></span>
+ </div>
+</div>
+<script>
+ test(() => {
+ var root = host.createShadowRoot();
+ root.innerHTML = '<div id="shadowDiv"><content></content></div>';
+ host.offsetTop;
+ root.querySelector("#shadowDiv").style.color = "red";
+ assert_true(!!window.internals, "This test only works with --expose-internals-for-testing.");
+ assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 2, "Inheritance propagation should stop at #stopInherit element.");
+ }, "Inheritance propagation should not cause full subtree recalcs in flat-tree.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698