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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html

Issue 2019583002: Don't include scroll offset in offsetFromLayoutObject for scrolling contents layers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html b/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html
new file mode 100644
index 0000000000000000000000000000000000000000..586534775dff7c295ee709f000a8e768e1e4a05e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/invalidation-on-foreground-graphics-layer.html
@@ -0,0 +1,14 @@
+<!doctype HTML>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<div style="will-change: transform; overflow: scroll; width: 200px; height: 200px; background: lightgray">
+ <div style="position: relative; z-index: -1; width: 200px; height: 200px; background: lightblue; will-change: transform"></div>
+ <div id="target" style="width: 200px; height: 200px; margin-top: -100px; margin-left: 100px; background: red"></div>
+</div>
+<script>
+function repaintTest() {
+ target.style.background = "green";
Xianzhu 2016/05/31 18:27:04 Nit: too much indent
chrishtr 2016/05/31 18:35:29 Fixed.
+}
+onload = function() {
+ runRepaintAndPixelTest();
Xianzhu 2016/05/31 18:27:04 Ditto.
chrishtr 2016/05/31 18:35:29 Done.
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698