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

Unified Diff: third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html

Issue 2820233002: Always report maybe-clipped when painting fragmented content (Closed)
Patch Set: Created 3 years, 8 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/pagination/pagination-change-clip-crash.html
diff --git a/third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html b/third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..cf5bbc352a78d8d381a8d4821463626b39871290
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/pagination/pagination-change-clip-crash.html
@@ -0,0 +1,28 @@
+<!doctype HTML>
+<script src="../invalidation/resources/text-based-repaint.js"></script>
+<div id=multicol style="columns:3;">
+ <div style="height:300px; background:white;">
+ </div>
+</div>
+<div style="width: 10px; height: 300px"></div>
+<style>
+.composited {
+ transform: translateZ(0);
+ }
+</style>
+<script>
+if (window.internals)
+ window.internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true;
Xianzhu 2017/04/18 00:15:21 This is unnecessary because we always check for un
chrishtr 2017/04/18 21:13:13 Done.
+if (window.testRunner)
+ window.testRunner.waitUntilDone();
Xianzhu 2017/04/18 00:15:21 Similar.
chrishtr 2017/04/18 21:13:13 Done.
+
+function repaintTest() {
+ window.requestAnimationFrame(function() {
Xianzhu 2017/04/18 00:15:21 Is requestAnimationFrame necessary?
chrishtr 2017/04/18 21:13:13 Done. Good catches. I seemed to need these in an e
+ background.style.padding = "50px";
+ });
+}
+
+window.testIsAsync = true;
+onload = runRepaintTest;
+</script>
+<div class="composited" style="height:200px" id="background">
Xianzhu 2017/04/18 00:15:21 Put all dom elements together (not separated by st
chrishtr 2017/04/18 21:13:13 Done.

Powered by Google App Engine
This is Rietveld 408576698