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

Unified Diff: PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html

Issue 195903002: Only process each StyleSheetContents once when collecting features during style resolution (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only hash shared stylesheets Created 6 years, 9 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 | Source/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html
diff --git a/PerformanceTests/ShadowDOM/shadow-style-share.html b/PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html
similarity index 84%
copy from PerformanceTests/ShadowDOM/shadow-style-share.html
copy to PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html
index e6eb37d7d18a57b477c3301296f9ddec9ec940f0..0aab52580a08fab6cc50170af830243e0ad26855 100644
--- a/PerformanceTests/ShadowDOM/shadow-style-share.html
+++ b/PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html
@@ -6,7 +6,7 @@
</style>
<script src="../resources/runner.js"></script>
<script>
- var listSize = 100;
+ var listSize = 1000;
window.onload = function() {
PerfTestRunner.measureTime({
run: function() {
@@ -30,17 +30,21 @@
}
</script>
<template id="tmpl">
+ <!-- None of these styles match, but that's on purpose -->
<style>
- .foo .bar .foo.bar.baz {
+ [foo] {
color: blue;
}
- .bar.baz {
+ [bar] {
color: red;
}
+ [baz] {
+ color: green;
+ }
</style>
- <div class="foo">
- <div class="bar">
- <div class="foo bar baz">item</div>
+ <div>
+ <div>
+ <div>item</div>
</div>
</div>
<content></content>
« no previous file with comments | « no previous file | Source/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698