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

Issue 1424313003: element.scrollIntoView only scrolls the layout viewport (Closed)

Created:
5 years, 1 month ago by ymalik
Modified:
5 years, 1 month ago
Reviewers:
bokan, skobes
CC:
chromium-reviews, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, sof, eae+blinkwatch, leviw+renderwatch, blink-reviews-dom_chromium.org, dglazkov+blink, jchaffraix+rendering, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

element.scrollIntoView only scrolls the layout viewport window.scroll properties being relative to visual viewport breaks some pages under pinch-zoom. The plan is to have all APIs reflect the layout viewport. Note that this CL also affects element.scrollIntoViewIfNeeded. BUG=489206 Committed: https://crrev.com/c0690e564718ae01d7afa37c66886a4cd199fc69 Cr-Commit-Position: refs/heads/master@{#357361}

Patch Set 1 #

Total comments: 8

Patch Set 2 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -14 lines) Patch
A third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html View 1 1 chunk +59 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport-expected.txt View 1 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 3 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
ymalik
5 years, 1 month ago (2015-10-30 03:43:33 UTC) #3
bokan
lgtm % comments. https://codereview.chromium.org/1424313003/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html File third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html (right): https://codereview.chromium.org/1424313003/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html#newcode13 third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html:13: <script language="JavaScript" type="text/javascript"> nit: I think ...
5 years, 1 month ago (2015-10-30 16:08:55 UTC) #4
ymalik
https://codereview.chromium.org/1424313003/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html File third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html (right): https://codereview.chromium.org/1424313003/diff/1/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html#newcode13 third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-into-view-scrolls-layout-viewport.html:13: <script language="JavaScript" type="text/javascript"> On 2015/10/30 16:08:55, bokan wrote: > ...
5 years, 1 month ago (2015-11-01 00:02:24 UTC) #5
ymalik
+skobes for WebKit/Source/core
5 years, 1 month ago (2015-11-01 00:03:53 UTC) #7
skobes
lgtm
5 years, 1 month ago (2015-11-02 02:46:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424313003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424313003/20001
5 years, 1 month ago (2015-11-02 15:04:23 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-02 16:11:59 UTC) #12
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 16:12:52 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c0690e564718ae01d7afa37c66886a4cd199fc69
Cr-Commit-Position: refs/heads/master@{#357361}

Powered by Google App Engine
This is Rietveld 408576698