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

Issue 16799005: Insert pinch zoom virtual viewport layers to graphics layer tree. (Closed)

Created:
7 years, 6 months ago by wjmaclean
Modified:
7 years, 6 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, leviw+renderwatch, abarth-chromium, danakj, Rik, jchaffraix+rendering, Stephen Chennney, jeez, pdr., WRONG-USE-chromium
Visibility:
Public.

Description

Insert pinch zoom virtual viewport layers to graphics layer tree. This cl adds the required layers to the graphics layer tree in order to support the pinch zoom virtual viewport for fixed-position objects. BUG=none Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152777

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add new viewport layers above overflowControlsHost. #

Total comments: 24

Patch Set 3 : Address review comments. #

Patch Set 4 : Skip creating WebScrollbarLayers, defer to creation in CC. #

Total comments: 16

Patch Set 5 : Address James' comments, add WebLayerTreeView function interface. #

Total comments: 15

Patch Set 6 : Add WebLayerTreeView::clearPinchViewportLayers(). #

Patch Set 7 : Address comments. #

Total comments: 14

Patch Set 8 : Address comments. #

Total comments: 13

Patch Set 9 : Address comments. #

Total comments: 4

Patch Set 10 : Address comments. #

Patch Set 11 : Always set existing scrollbar drawsContent. #

Total comments: 1

Patch Set 12 : Patch for landing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -40 lines) Patch
M Source/WebKit/chromium/WebKit.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
A + Source/WebKit/chromium/src/PinchViewports.h View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -35 lines 0 comments Download
A Source/WebKit/chromium/src/PinchViewports.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +186 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebSettingsImpl.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebSettingsImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebViewImpl.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 5 chunks +34 lines, -4 lines 0 comments Download
M public/platform/WebLayerTreeView.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
wjmaclean
I decided to open a new issue for this cl since it is so different ...
7 years, 6 months ago (2013-06-12 18:01:58 UTC) #1
trchen
https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp#newcode89 Source/WebKit/chromium/src/PinchViewports.cpp:89: void PinchViewports::insertViewportLayers() I feel this is too intrusive. I ...
7 years, 6 months ago (2013-06-12 21:37:59 UTC) #2
enne (OOO)
https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp#newcode86 Source/WebKit/chromium/src/PinchViewports.cpp:86: // *horizontalScrollbarLayer (overlay) [only added when existing scrollbars are ...
7 years, 6 months ago (2013-06-12 21:43:52 UTC) #3
trchen
On 2013/06/12 21:43:52, enne wrote: > https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp > File Source/WebKit/chromium/src/PinchViewports.cpp (right): > > https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp#newcode86 > ...
7 years, 6 months ago (2013-06-13 01:19:54 UTC) #4
wjmaclean
On 2013/06/13 01:19:54, trchen wrote: > On 2013/06/12 21:43:52, enne wrote: > > > https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp ...
7 years, 6 months ago (2013-06-13 12:32:54 UTC) #5
wjmaclean
On 2013/06/12 21:37:59, trchen wrote: > https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp > File Source/WebKit/chromium/src/PinchViewports.cpp (right): > > https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp#newcode89 > ...
7 years, 6 months ago (2013-06-13 13:05:01 UTC) #6
trchen
On 2013/06/13 13:05:01, wjmaclean wrote: > On 2013/06/12 21:37:59, trchen wrote: > > > https://codereview.chromium.org/16799005/diff/1/Source/WebKit/chromium/src/PinchViewports.cpp ...
7 years, 6 months ago (2013-06-13 17:52:37 UTC) #7
wjmaclean
On 2013/06/13 17:52:37, trchen wrote: > On 2013/06/13 13:05:01, wjmaclean wrote: > > On 2013/06/12 ...
7 years, 6 months ago (2013-06-13 18:01:09 UTC) #8
enne (OOO)
On 2013/06/13 18:01:09, wjmaclean wrote: > So I'm not intrinsically opposed to this ... I ...
7 years, 6 months ago (2013-06-13 18:04:13 UTC) #9
wjmaclean
PTAL
7 years, 6 months ago (2013-06-13 20:59:47 UTC) #10
trchen
Overall LGTM. Thanks for the great work! https://codereview.chromium.org/16799005/diff/11001/Source/WebKit/chromium/src/PinchViewports.h File Source/WebKit/chromium/src/PinchViewports.h (right): https://codereview.chromium.org/16799005/diff/11001/Source/WebKit/chromium/src/PinchViewports.h#newcode57 Source/WebKit/chromium/src/PinchViewports.h:57: GraphicsLayer* rootGraphicsLayer() ...
7 years, 6 months ago (2013-06-13 21:11:54 UTC) #11
enne (OOO)
I'm most skeptical about the scrollbar changes, but I'll take a look at the other ...
7 years, 6 months ago (2013-06-13 22:45:07 UTC) #12
trchen
https://codereview.chromium.org/16799005/diff/11001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/11001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode44 Source/WebKit/chromium/src/PinchViewports.cpp:44: const size_t PinchViewports::kOverlayScrollbarThickness = 10; On 2013/06/13 22:45:07, enne ...
7 years, 6 months ago (2013-06-13 23:10:31 UTC) #13
wjmaclean
PTAL https://codereview.chromium.org/16799005/diff/11001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/11001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode44 Source/WebKit/chromium/src/PinchViewports.cpp:44: const size_t PinchViewports::kOverlayScrollbarThickness = 10; On 2013/06/13 23:10:31, ...
7 years, 6 months ago (2013-06-14 15:54:16 UTC) #14
wjmaclean
Based on conversation with jamesr@ I have modified this CL to *not* create WebScrollbarLayers, assuming ...
7 years, 6 months ago (2013-06-14 20:48:42 UTC) #15
enne (OOO)
lgtm
7 years, 6 months ago (2013-06-14 20:52:15 UTC) #16
jamesr
https://codereview.chromium.org/16799005/diff/26001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/26001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode32 Source/WebKit/chromium/src/PinchViewports.cpp:32: #include "PinchViewports.h" please specify paths relative to Source/ https://codereview.chromium.org/16799005/diff/26001/Source/WebKit/chromium/src/PinchViewports.h ...
7 years, 6 months ago (2013-06-14 20:55:46 UTC) #17
wjmaclean
PTAL (I'm in the process of updating the companion patch). https://codereview.chromium.org/16799005/diff/26001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/26001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode32 ...
7 years, 6 months ago (2013-06-17 17:45:27 UTC) #18
wjmaclean
https://codereview.chromium.org/16799005/diff/35001/public/platform/WebLayerTreeView.h File public/platform/WebLayerTreeView.h (right): https://codereview.chromium.org/16799005/diff/35001/public/platform/WebLayerTreeView.h#newcode126 public/platform/WebLayerTreeView.h:126: WebLayer* innerViewportClipLayer, Ooops, I'll change these to be "const ...
7 years, 6 months ago (2013-06-17 18:42:41 UTC) #19
jamesr
Lookin' better! https://codereview.chromium.org/16799005/diff/35001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/35001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode46 Source/WebKit/chromium/src/PinchViewports.cpp:46: WTF::PassOwnPtr<PinchViewports> PinchViewports::create(WebViewImpl* owner) No WTF:: https://codereview.chromium.org/16799005/diff/35001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode152 Source/WebKit/chromium/src/PinchViewports.cpp:152: ...
7 years, 6 months ago (2013-06-17 20:42:09 UTC) #20
wjmaclean
PTAL, I think I got everything ... https://codereview.chromium.org/16799005/diff/35001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/35001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode46 Source/WebKit/chromium/src/PinchViewports.cpp:46: WTF::PassOwnPtr<PinchViewports> PinchViewports::create(WebViewImpl* ...
7 years, 6 months ago (2013-06-17 22:09:03 UTC) #21
jamesr
https://codereview.chromium.org/16799005/diff/38002/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/38002/Source/WebKit/chromium/src/PinchViewports.cpp#newcode95 Source/WebKit/chromium/src/PinchViewports.cpp:95: // DO NOT SUBMIT: this next line will be ...
7 years, 6 months ago (2013-06-17 22:16:33 UTC) #22
wjmaclean
PTAL Debugging code is out, and comments addressed. https://codereview.chromium.org/16799005/diff/38002/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/38002/Source/WebKit/chromium/src/PinchViewports.cpp#newcode95 Source/WebKit/chromium/src/PinchViewports.cpp:95: // ...
7 years, 6 months ago (2013-06-18 14:10:53 UTC) #23
aelias_OOO_until_Jul13
Looking pretty good, all my comments below are minor. https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode89 Source/WebKit/chromium/src/PinchViewports.cpp:89: ...
7 years, 6 months ago (2013-06-18 19:52:28 UTC) #24
wjmaclean
PTAL - addressed aelias@'s comments. https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode89 Source/WebKit/chromium/src/PinchViewports.cpp:89: ASSERT(m_innerViewportClipLayer); On 2013/06/18 19:52:28, ...
7 years, 6 months ago (2013-06-18 20:11:40 UTC) #25
jamesr
mostly lgtm https://codereview.chromium.org/16799005/diff/14002/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/14002/Source/WebKit/chromium/src/PinchViewports.cpp#newcode145 Source/WebKit/chromium/src/PinchViewports.cpp:145: const int kOverlayScrollbarThickness = m_owner->settingsImpl()->pinchOverlayScrollbarThickness(); this isn't ...
7 years, 6 months ago (2013-06-18 20:21:57 UTC) #26
wjmaclean
Fixed remaining comments, plus added setter for the default overlay scrollbar width in WebSettings/WebSettingsImpl. https://codereview.chromium.org/16799005/diff/14002/Source/WebKit/chromium/src/PinchViewports.cpp ...
7 years, 6 months ago (2013-06-18 20:42:45 UTC) #27
aelias_OOO_until_Jul13
https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp File Source/WebKit/chromium/src/PinchViewports.cpp (right): https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode132 Source/WebKit/chromium/src/PinchViewports.cpp:132: // FIXME: If we knew in advance before the ...
7 years, 6 months ago (2013-06-18 22:25:59 UTC) #28
wjmaclean
On 2013/06/18 22:25:59, aelias wrote: > https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp > File Source/WebKit/chromium/src/PinchViewports.cpp (right): > > https://codereview.chromium.org/16799005/diff/49001/Source/WebKit/chromium/src/PinchViewports.cpp#newcode132 > ...
7 years, 6 months ago (2013-06-19 14:05:47 UTC) #29
aelias_OOO_until_Jul13
I don't think either of those will happen outside of maybe tests. Anyway, lgtm.
7 years, 6 months ago (2013-06-19 18:38:52 UTC) #30
jamesr
https://codereview.chromium.org/16799005/diff/10003/Source/WebKit/chromium/src/WebSettingsImpl.cpp File Source/WebKit/chromium/src/WebSettingsImpl.cpp (right): https://codereview.chromium.org/16799005/diff/10003/Source/WebKit/chromium/src/WebSettingsImpl.cpp#newcode63 Source/WebKit/chromium/src/WebSettingsImpl.cpp:63: , m_pinchOverlayScrollbarThickness(10) still 10 ?
7 years, 6 months ago (2013-06-19 20:17:06 UTC) #31
wjmaclean
On 2013/06/19 20:17:06, jamesr wrote: > https://codereview.chromium.org/16799005/diff/10003/Source/WebKit/chromium/src/WebSettingsImpl.cpp > File Source/WebKit/chromium/src/WebSettingsImpl.cpp (right): > > https://codereview.chromium.org/16799005/diff/10003/Source/WebKit/chromium/src/WebSettingsImpl.cpp#newcode63 > ...
7 years, 6 months ago (2013-06-19 20:38:24 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/16799005/66002
7 years, 6 months ago (2013-06-20 01:44:13 UTC) #33
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 12:16:41 UTC) #34
Message was sent while issue was closed.
Change committed as 152777

Powered by Google App Engine
This is Rietveld 408576698