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

Unified Diff: PerformanceTests/ShadowDOM/shadow-style-share-media-query.html

Issue 196133034: Move inline stylesheet cache decision making from StyleSheetContents to StyleEngine (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged to trunk 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/StyleSheetContents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/ShadowDOM/shadow-style-share-media-query.html
diff --git a/PerformanceTests/ShadowDOM/shadow-style-share.html b/PerformanceTests/ShadowDOM/shadow-style-share-media-query.html
similarity index 74%
copy from PerformanceTests/ShadowDOM/shadow-style-share.html
copy to PerformanceTests/ShadowDOM/shadow-style-share-media-query.html
index e6eb37d7d18a57b477c3301296f9ddec9ec940f0..29d9f482ca6c8fe818681499bf3c076991678578 100644
--- a/PerformanceTests/ShadowDOM/shadow-style-share.html
+++ b/PerformanceTests/ShadowDOM/shadow-style-share-media-query.html
@@ -1,12 +1,7 @@
<!doctype html>
-<style>
- div {
- color: orange;
- }
-</style>
<script src="../resources/runner.js"></script>
<script>
- var listSize = 100;
+ var listSize = 1000;
window.onload = function() {
PerfTestRunner.measureTime({
run: function() {
@@ -31,18 +26,14 @@
</script>
<template id="tmpl">
<style>
- .foo .bar .foo.bar.baz {
- color: blue;
- }
- .bar.baz {
- color: red;
+ @media (max-width: 600px) {
+ div { color: red; }
}
+ .foo { color: black; }
+ .bar { color: blue; }
+ .baz { color: green; }
+ .bat { color: orange; }
</style>
- <div class="foo">
- <div class="bar">
- <div class="foo bar baz">item</div>
- </div>
- </div>
- <content></content>
+ <div>item</div>
</template>
<section id="list"></section>
« no previous file with comments | « no previous file | Source/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698