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

Side by Side Diff: LayoutTests/fast/repaint/resources/window-resize-repaint.js

Issue 1011393003: [S.P.] Invalidate the document element for view background when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/layout/LayoutObject.cpp » ('j') | Source/core/layout/LayoutObject.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var testSizes = [ 1 var testSizes = [
2 { width: 200, height: 200 }, // initial size 2 { width: 200, height: 200 }, // initial size
3 { width: 200, height: 300 }, // height increase 3 { width: 200, height: 300 }, // height increase
4 { width: 300, height: 300 }, // width increase 4 { width: 300, height: 300 }, // width increase
5 { width: 300, height: 250 }, // height decrease 5 { width: 300, height: 250 }, // height decrease
6 { width: 250, height: 250 } // width decrease 6 { width: 250, height: 250 } // width decrease
7 // Tests can add more testSizes. 7 // Tests can add more testSizes.
8 ]; 8 ];
9 9
10 var sizeIndex = 0; 10 var sizeIndex = 0;
(...skipping 13 matching lines...) Expand all
24 24
25 window.onload = function() { 25 window.onload = function() {
26 window.resizeTo(testSizes[0].width, testSizes[0].height); 26 window.resizeTo(testSizes[0].width, testSizes[0].height);
27 27
28 var repaintRects = ""; 28 var repaintRects = "";
29 for (sizeIndex = 1; sizeIndex < testSizes.length; ++sizeIndex) { 29 for (sizeIndex = 1; sizeIndex < testSizes.length; ++sizeIndex) {
30 document.body.offsetTop; 30 document.body.offsetTop;
31 internals.startTrackingRepaints(document); 31 internals.startTrackingRepaints(document);
32 repaintTest(); 32 repaintTest();
33 document.body.offsetTop; 33 document.body.offsetTop;
34 repaintRects += internals.layerTreeAsText(document, window.internals .LAYER_TREE_INCLUDES_REPAINT_RECTS); 34 repaintRects += internals.layerTreeAsText(document, window.internals .LAYER_TREE_INCLUDES_REPAINT_RECTS | window.internals.LAYER_TREE_INCLUDES_PAINT_ INVALIDATION_OBJECTS);
chrishtr 2015/03/18 19:30:05 But it doesn't affect any tests?
Xianzhu 2015/03/18 19:36:28 Yes. I'm running trybots to show the expectation c
35 internals.stopTrackingRepaints(document); 35 internals.stopTrackingRepaints(document);
36 } 36 }
37 testRunner.setCustomTextOutput(repaintRects); 37 testRunner.setCustomTextOutput(repaintRects);
38 } 38 }
39 } 39 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutObject.cpp » ('j') | Source/core/layout/LayoutObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698