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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html

Issue 2283933003: Don't cache matched properties for elements without a flat-tree parent. (Closed)
Patch Set: Pass StyleResolverState 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/css/resolver/MatchedPropertiesCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html b/third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html
new file mode 100644
index 0000000000000000000000000000000000000000..7eb7e4062e92f99630c9872597d9df911e2fa86d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/cache/matched-properties-cache-no-flat-tree-parent.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+ .green { color: green; }
+ body { perspective: inherit; }
+</style>
+<body>
+<script>
+ test(() => {
+ var root = document.documentElement.createShadowRoot();
+ document.body.offsetTop;
+ document.documentElement.className = "green";
+ document.body.offsetTop;
+ root.appendChild(document.createElement("content"));
+ }, "Check that we don't trigger an assert by caching matched properties for an element using explicit inheritance.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/MatchedPropertiesCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698