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

Side by Side Diff: LayoutTests/fast/css/invalidation/scrollbar-pseudo-classes.html

Issue 1349543004: CSS: Avoid invalidating style when only descendants need updating (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: invalidatesSelf Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .scroller { 3 .scroller {
4 width: 100px; 4 width: 100px;
5 height: 30px; 5 height: 30px;
6 overflow: scroll; 6 overflow: scroll;
7 } 7 }
8 .scroller::-webkit-scrollbar { 8 .scroller::-webkit-scrollbar {
9 width: 10px; 9 width: 10px;
10 height: 10px; 10 height: 10px;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 var count = internals.updateStyleAndReturnAffectedElementCount(); 84 var count = internals.updateStyleAndReturnAffectedElementCount();
85 if (count == expectedCount) 85 if (count == expectedCount)
86 scroller.innerText = "PASS"; 86 scroller.innerText = "PASS";
87 else 87 else
88 scroller.innerText = "FAIL: "+count; 88 scroller.innerText = "FAIL: "+count;
89 } 89 }
90 } 90 }
91 91
92 // Invalidation counts are 2 (#t<n> and .scroller) plus pseudo elements 92 // Invalidation counts are 2 (#t<n> and .scroller) plus pseudo elements
93 93
94 invalidateScroller("t1", 4); // pseudo count 2: 2 bars 94 invalidateScroller("t1", 3); // pseudo count 2: 2 bars
95 invalidateScroller("t2", 8); // pseudo count 6: 2 bars + 4 buttons 95 invalidateScroller("t2", 7); // pseudo count 6: 2 bars + 4 buttons
96 invalidateScroller("t3", 8); // pseudo count 6: 2 bars + 4 buttons 96 invalidateScroller("t3", 7); // pseudo count 6: 2 bars + 4 buttons
97 invalidateScroller("t4", 4); // pseudo count 6: 2 bars + 4 buttons 97 invalidateScroller("t4", 3); // pseudo count 6: 2 bars + 4 buttons
98 invalidateScroller("t5", 4); // pseudo count 2: 2 bars 98 invalidateScroller("t5", 3); // pseudo count 2: 2 bars
99 invalidateScroller("t6", 8); // pseudo count 6: 2 bars + 4 buttons 99 invalidateScroller("t6", 7); // pseudo count 6: 2 bars + 4 buttons
100 invalidateScroller("t7", 8); // pseudo count 6: 2 bars + 4 buttons 100 invalidateScroller("t7", 7); // pseudo count 6: 2 bars + 4 buttons
101 </script> 101 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698