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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html

Issue 1511143002: Reland of Fix several corner case issues of scrollbar paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/fast/repaint/destroy-overlay-scrollbar.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html b/third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html
new file mode 100644
index 0000000000000000000000000000000000000000..64dce5c58fa47cb63e59c1775a1ebe2323c0f07a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="resources/text-based-repaint.js"></script>
+<script>
+if (window.internals) {
+ internals.settings.setOverlayScrollbarsEnabled(true);
+ internals.settings.setMockScrollbarsEnabled(true);
+}
+function repaintTest() {
+ document.getElementById('content').style.height = '100px';
+}
+onload = runRepaintTest;
+</script>
+Tests invalidation when an overlay scrollbar is destroyed. Passes if there is no scrollbar.
+<div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px; overflow: auto">
+ <div id="content" style="width: 100px; height: 400px"></div>
+</div>
+

Powered by Google App Engine
This is Rietveld 408576698