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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 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 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <!-- The div within the iframe is at 0.5px from the iframe bounds, and the div c ontaining the iframe is at 0.5px from the top-left of the screen. 3 <!-- The div within the iframe is at 0.5px from the iframe bounds, and the div c ontaining the iframe is at 0.5px from the top-left of the screen.
4 This test checks that the latter 0.5px is rounded to 1 before being added to the 0.5px and then rounded up again to an invalidation rect. This is 4 This test checks that the latter 0.5px is rounded to 1 before being added to the 0.5px and then rounded up again to an invalidation rect. This is
5 because iframes are painted in rounded-int coordinates. 5 because iframes are painted in rounded-int coordinates.
6 --> 6 -->
7 <div style="position: relative; left: 0.5px; margin: 0"> 7 <div style="position: relative; left: 0.5px; margin: 0">
8 <iframe id='iframe' srcdoc="<div id='target' style='position: relative; backgr ound: lightblue; width: 100px; height: 100px; left: 0.5px'></div>"></iframe> 8 <iframe id='iframe' srcdoc="<div id='target' style='position: relative; backgr ound: lightblue; width: 100px; height: 100px; left: 0.5px'></div>"></iframe>
9 </div> 9 </div>
10 <script> 10 <script>
11 onload = runRepaintAndPixelTest; 11 onload = runRepaintAndPixelTest;
12 function repaintTest() { 12 function repaintTest() {
13 iframe.contentDocument.querySelector('#target').style.background = 'lightgray' ; 13 iframe.contentDocument.querySelector('#target').style.background = 'lightgray' ;
14 } 14 }
15 </script> 15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698