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

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

Issue 1834263002: Round visual rects when crossing frame boundaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding.html b/third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding.html
new file mode 100644
index 0000000000000000000000000000000000000000..5337f402b42d52438cd3b9038f26904ffe909d7e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<!-- The div within the iframe is at 0.5px from the iframe bounds, and the div containing the iframe is at 0.5px from the top-left of the screen.
+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
+because iframes are painted in rounded-int coordinates.
+-->
+<div style="position: relative; left: 0.5px; margin: 0">
+ <iframe id='iframe' srcdoc="<div id='target' style='position: relative; background: lightblue; width: 100px; height: 100px; left: 0.5px'></div>"></iframe>
+</div>
+<script>
+onload = runRepaintTest;
+function repaintTest() {
+ iframe.contentDocument.querySelector('#target').style.background = 'lightgray';
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/paint/invalidation/iframe-rounding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698