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

Issue 1071983002: Don't force layout for scrollTo(0,0). (Closed)

Created:
5 years, 8 months ago by rune
Modified:
5 years, 8 months ago
Reviewers:
esprehn, Rick Byers
CC:
blink-reviews
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Don't force layout for scrollTo(0,0). The ICB origin will always be a valid scroll position, so there is no need to force a synchronous layout before setting the scroll position to (0,0). R=rbyers@chromium.org BUG=465574 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193490

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -4 lines) Patch
A LayoutTests/fast/scrolling/scroll-to-origin-no-layout.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/scroll-to-origin-no-layout-expected.txt View 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/scroll-to-origin-with-options-no-layout.html View 1 chunk +48 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/scroll-to-origin-with-options-no-layout-expected.txt View 1 chunk +19 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 3 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
rune
PTAL
5 years, 8 months ago (2015-04-09 11:55:11 UTC) #1
Rick Byers
Nice. LGTM with nit. https://codereview.chromium.org/1071983002/diff/1/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/1071983002/diff/1/Source/core/frame/LocalDOMWindow.cpp#newcode1213 Source/core/frame/LocalDOMWindow.cpp:1213: if (x || y) can ...
5 years, 8 months ago (2015-04-09 17:46:12 UTC) #2
Rick Byers
Nice. LGTM with nit.
5 years, 8 months ago (2015-04-09 17:46:13 UTC) #3
esprehn
Can we fix setting scrollTop = 0 and scrollLeft = 0 also?
5 years, 8 months ago (2015-04-09 18:32:18 UTC) #5
rune
On 2015/04/09 18:32:18, esprehn wrote: > Can we fix setting scrollTop = 0 and scrollLeft ...
5 years, 8 months ago (2015-04-09 20:51:37 UTC) #6
esprehn
On 2015/04/09 at 20:51:37, rune wrote: > On 2015/04/09 18:32:18, esprehn wrote: > > Can ...
5 years, 8 months ago (2015-04-09 21:13:29 UTC) #7
rune
https://codereview.chromium.org/1071983002/diff/1/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/1071983002/diff/1/Source/core/frame/LocalDOMWindow.cpp#newcode1213 Source/core/frame/LocalDOMWindow.cpp:1213: if (x || y) On 2015/04/09 17:46:11, Rick Byers ...
5 years, 8 months ago (2015-04-09 21:45:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071983002/20001
5 years, 8 months ago (2015-04-09 21:45:54 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 23:41:34 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193490

Powered by Google App Engine
This is Rietveld 408576698