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

Unified Diff: LayoutTests/fast/css/zoom-on-nested-scroll-crash.html

Issue 23526081: Add NULL check for renderBox::layer() on applying zoom level change (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: +test Created 7 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/zoom-on-nested-scroll-crash.html
diff --git a/LayoutTests/fast/css/zoom-on-nested-scroll-crash.html b/LayoutTests/fast/css/zoom-on-nested-scroll-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..92afaef70a6e7cf697e202e4deb89663a010e346
--- /dev/null
+++ b/LayoutTests/fast/css/zoom-on-nested-scroll-crash.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+#elem {overflow: scroll;}
+#elem::-webkit-scrollbar {overflow: auto;}
+</style>
+<p>Test for <a href="http://crbug.com/291293">bug 291293</a>.</p>
+<p>Zooming in (ctrl++) should not crash.
+The test is PASSED if it did not crash.</p>
+<div id="elem"></div>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+if (window.eventSender)
+ eventSender.zoomPageIn();
+document.getElementById('elem').style.setProperty('zoom', 2);
+</script>

Powered by Google App Engine
This is Rietveld 408576698