summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html
diff options
context:
space:
mode:
authortrchen@chromium.org <trchen@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2014-07-21 21:58:14 +0000
committertrchen@chromium.org <trchen@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2014-07-21 21:58:14 +0000
commitdd93c20956d1368b778d4788c6b11e2854e5dc57 (patch)
tree87681a113171caf5e53cc1b95cb6910d0e76fe78 /third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html
parent1252c2655e9b77a08ce0fc5083ef39a56908b195 (diff)
downloadchromium_src-dd93c20956d1368b778d4788c6b11e2854e5dc57.zip
chromium_src-dd93c20956d1368b778d4788c6b11e2854e5dc57.tar.gz
chromium_src-dd93c20956d1368b778d4788c6b11e2854e5dc57.tar.bz2
Should use new document size to compute scrollbars when updating overflow
There was a bug in previous CL that when updating overflow, the new scrollbar status is computed using the old document size. This results the frame in an inconsistent state that the document size is updated but scrollbar state is dirty, and layout will be called indefinitely. This CL does two things: 1. Use the new document size to compute scrollbars so we don't result in an inconsistent state. 2. Add early exit if the new document rect isn't changed so we don't attempt to update scrollbars at all. This helps the corner case that the scrollbar state still doesn't converge after 3 trials. BUG=391924 Review URL: https://codereview.chromium.org/384933002 git-svn-id: svn://svn.chromium.org/blink/trunk@178592 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html')
-rw-r--r--third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html b/third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html
index 9c925fe..0f74fa9 100644
--- a/third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html
+++ b/third_party/WebKit/LayoutTests/fast/transforms/transform-update-frame-overflow.html
@@ -14,5 +14,7 @@
var transformed = document.getElementById('transformed');
transformed.style.transform = "translateY(1000px)";
- window.scrollTo(0, 1000);
+
+ if (window.eventSender)
+ eventSender.keyDown("end");
</script>