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

Issue 18083034: Don't set scroll client for main frame (Closed)

Created:
7 years, 5 months ago by enne (OOO)
Modified:
7 years, 5 months ago
Reviewers:
jamesr
CC:
blink-reviews, kenneth.christiansen, jamesr, eae+blinkwatch, danakj, dglazkov+blink, Rik, Stephen Chennney, jeez, pdr., Ian Vollick
Visibility:
Public.

Description

Don't set scroll client for main frame Instead, only set the scroll client on scrollable layers that are not the main frame. This also drops a needless per-layer allocation for non-scrollable layers. By doing this, it allows LayerTreeHost to reuse cc::Layer::SetScrollOffsetFromImpl for pre-setting the value of scroll offset on the root scroll layer prior to calling ApplyScrollAndScale. This patch depends on https://codereview.chromium.org/18348021/. R=jamesr@chromium.org BUG=256381 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153698

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address jamesr review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -6 lines) Patch
M Source/WebKit/chromium/tests/GraphicsLayerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 3 chunks +10 lines, -3 lines 0 comments Download
M Source/core/platform/graphics/GraphicsLayer.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/graphics/GraphicsLayer.cpp View 1 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
enne (OOO)
7 years, 5 months ago (2013-07-03 23:03:31 UTC) #1
jamesr
https://codereview.chromium.org/18083034/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/18083034/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode540 Source/core/page/scrolling/ScrollingCoordinator.cpp:540: return scrollableArea == static_cast<ScrollableArea*>(m_page->mainFrame()->view()); do you need the static ...
7 years, 5 months ago (2013-07-04 00:37:36 UTC) #2
jamesr
lgtm
7 years, 5 months ago (2013-07-04 00:37:42 UTC) #3
enne (OOO)
https://codereview.chromium.org/18083034/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/18083034/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode540 Source/core/page/scrolling/ScrollingCoordinator.cpp:540: return scrollableArea == static_cast<ScrollableArea*>(m_page->mainFrame()->view()); On 2013/07/04 00:37:37, jamesr wrote: ...
7 years, 5 months ago (2013-07-04 00:50:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/18083034/7001
7 years, 5 months ago (2013-07-08 17:30:23 UTC) #5
commit-bot: I haz the power
7 years, 5 months ago (2013-07-08 18:53:37 UTC) #6
Message was sent while issue was closed.
Change committed as 153698

Powered by Google App Engine
This is Rietveld 408576698