Commit 439edd50 authored by Stefan Zager's avatar Stefan Zager Committed by Commit Bot

Don't overflow LocalFrameView size.

BUG=841791
R=skobes@chromium.org

Change-Id: I41ebc90803c4398aaaab3a8713e34fd3824595c5
Reviewed-on: https://chromium-review.googlesource.com/1055675Reviewed-by: default avatarStefan Zager <szager@chromium.org>
Reviewed-by: default avatarSteve Kobes <skobes@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558161}
parent 326c73c6
......@@ -644,8 +644,10 @@ IntPoint LocalFrameView::Location() const {
if (owner) {
LayoutView* owner_layout_view = owner->View();
DCHECK(owner_layout_view);
if (owner_layout_view->HasOverflowClip())
location.Move(-owner_layout_view->ScrolledContentOffset());
if (owner_layout_view->HasOverflowClip()) {
IntSize scroll_offset(owner_layout_view->ScrolledContentOffset());
location.SaturatedMove(-scroll_offset.Width(), -scroll_offset.Height());
}
}
return location;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment