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

Unified Diff: LayoutTests/fast/css/invalidation/scrollbar-pseudo.html

Issue 663313004: Avoid sub-tree style recalc for ::-webkit-resizer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@resize-inherit-20141021
Patch Set: Rebased Created 6 years, 2 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 | LayoutTests/fast/css/invalidation/scrollbar-pseudo-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/invalidation/scrollbar-pseudo.html
diff --git a/LayoutTests/fast/css/invalidation/scrollbar-pseudo.html b/LayoutTests/fast/css/invalidation/scrollbar-pseudo.html
index ddf2b7de18c4e996b82da5d2967137fb0ee627d9..2a62305c239286cb9a75686b7090d8560d77f47b 100644
--- a/LayoutTests/fast/css/invalidation/scrollbar-pseudo.html
+++ b/LayoutTests/fast/css/invalidation/scrollbar-pseudo.html
@@ -26,9 +26,15 @@
.t9 .scroller::-webkit-scrollbar-track,
.t10 + .scroller::-webkit-scrollbar-track,
.t11 .scroller::-webkit-scrollbar-track-piece,
-.t12 + .scroller::-webkit-scrollbar-track-piece {
+.t12 + .scroller::-webkit-scrollbar-track-piece,
+.t13 .scroller::-webkit-resizer,
+.t14 + .scroller::-webkit-resizer {
background-color: green;
}
+
+.t13 .scroller, .t14 + .scroller {
+ resize: both;
+}
</style>
<div>
<div id="scrollerParent">
@@ -96,7 +102,8 @@ function testScrollbarPseudo(pseudoElm, scroller, classElement, testClass, expec
// ::-webkit-scrollbar-corner: 1 scrollbar + 1 corner (in total 4 and 9)
// ::-webkit-scrollbar-thumb: 1 scrollbar + 1 thumb (in total 4 and 9)
// ::-webkit-scrollbar-track: 1 scrollbar + 1 track (in total 4 and 9)
-// ::-webkit-scrollbar-track-piece: 1 scrollbar + 2 track pieces (in total 5 and 12)
+// ::-webkit-scrollbar-track-piece: 1 scrollbar + 2 track pieces (in total 5 and 10)
+// ::-webkit-resizer: 1 scrollbar + 1 resizer (in total 4 and 9)
testScrollbarPseudo("::-webkit-scrollbar", "scroller1", scrollerParent, "t1", 3);
testScrollbarPseudo("::-webkit-scrollbar", "scroller2", scrollerSibling, "t2", 8);
@@ -110,4 +117,6 @@ testScrollbarPseudo("::-webkit-scrollbar-track", "scroller1", scrollerParent, "t
testScrollbarPseudo("::-webkit-scrollbar-track", "scroller2", scrollerSibling, "t10", 9);
testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller1", scrollerParent, "t11", 5);
testScrollbarPseudo("::-webkit-scrollbar-track-piece", "scroller2", scrollerSibling, "t12", 10);
+testScrollbarPseudo("::-webkit-resizer", "scroller1", scrollerParent, "t13", 4);
+testScrollbarPseudo("::-webkit-resizer", "scroller2", scrollerSibling, "t14", 9);
</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/invalidation/scrollbar-pseudo-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698