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

Issue 12045002: Delete zoomed_viewport_offset_ and its users. (Closed)

Created:
7 years, 11 months ago by aelias_OOO_until_Jul13
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, jamesr, trchen, tdanderson
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Delete zoomed_viewport_offset_ and its users. After http://webk.it/107424 lands, there is no longer any need to conceal the true scroll offset from WebKit. We can use the normal root layer scroll offset for almost everything and avoid needing to apply this extra transformation. NOTRY=true BUG=171183 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179467

Patch Set 1 #

Total comments: 9

Patch Set 2 : Comment out failing tests (not for review) #

Patch Set 3 : Apply code review comments and delete unit tests #

Total comments: 2

Patch Set 4 : Use clip rect bounds for viewport size, and flip default setting on Android #

Patch Set 5 : Just remove OVERRIDE from adjustEventPointForPinchZoom to avoid WebKit roll problems #

Patch Set 6 : Rebase to 178925 #

Patch Set 7 : Bring back implPinch test and fix clip layer with root scroll offset 0 #

Total comments: 1

Patch Set 8 : Rebase to 179387 #

Patch Set 9 : Rebase to 179425 #

Patch Set 10 : Rebase to 179425 #

Patch Set 11 : Disabling 3 Android instrumentation tests with page scale dependencies #

Patch Set 12 : Add imports for DisabledTest and rebase to 179449 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -698 lines) Patch
M cc/layer_tree_host.h View 1 chunk +0 lines, -5 lines 0 comments Download
M cc/layer_tree_host.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M cc/layer_tree_host_impl.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 6 chunks +8 lines, -25 lines 0 comments Download
M cc/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 3 chunks +0 lines, -505 lines 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 1 chunk +0 lines, -40 lines 0 comments Download
M cc/layer_tree_impl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layer_tree_impl.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -14 lines 0 comments Download
M cc/pinch_zoom_viewport.h View 1 2 3 4 chunks +2 lines, -23 lines 0 comments Download
M cc/pinch_zoom_viewport.cc View 1 2 1 chunk +1 line, -48 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/test/SelectPopupOtherContentViewTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/android/content_startup_flags.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/GestureDetectorResetTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -2 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/SelectPopupTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -2 lines 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
aelias_OOO_until_Jul13
Hi, PTAL. This patch deletes the inner-viewport offset stuff, simplifying lots of things. wjmaclean@, I ...
7 years, 11 months ago (2013-01-22 08:57:05 UTC) #1
wjmaclean
LGTM, with some minor comments. Most importantly, if we're handling scroll offset by exposing it ...
7 years, 11 months ago (2013-01-22 16:56:38 UTC) #2
danakj
https://codereview.chromium.org/12045002/diff/1/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (left): https://codereview.chromium.org/12045002/diff/1/cc/layer_tree_host_impl.cc#oldcode301 cc/layer_tree_host_impl.cc:301: gfx::PointF deviceViewportPoint = gfx::ScalePoint(viewportPoint, m_deviceScaleFactor); This looks like it ...
7 years, 11 months ago (2013-01-22 23:42:14 UTC) #3
wjmaclean
https://codereview.chromium.org/12045002/diff/1/cc/pinch_zoom_viewport.h File cc/pinch_zoom_viewport.h (right): https://codereview.chromium.org/12045002/diff/1/cc/pinch_zoom_viewport.h#newcode59 cc/pinch_zoom_viewport.h:59: gfx::Transform ImplTransform(bool page_scale_pinch_zoom_enabled) const; On 2013/01/22 16:56:39, wjmaclean wrote: ...
7 years, 11 months ago (2013-01-23 16:27:02 UTC) #4
danakj
On Wed, Jan 23, 2013 at 11:27 AM, <wjmaclean@chromium.org> wrote: > > https://codereview.chromium.**org/12045002/diff/1/cc/pinch_** > zoom_viewport.h<https://codereview.chromium.org/12045002/diff/1/cc/pinch_zoom_viewport.h> ...
7 years, 11 months ago (2013-01-23 16:50:06 UTC) #5
wjmaclean
On 2013/01/23 16:50:06, danakj wrote: > On Wed, Jan 23, 2013 at 11:27 AM, <mailto:wjmaclean@chromium.org> ...
7 years, 11 months ago (2013-01-23 16:57:40 UTC) #6
aelias_OOO_until_Jul13
OK, I deleted the unit tests affected by this patch as they all tested logic ...
7 years, 11 months ago (2013-01-24 00:47:02 UTC) #7
aelias_OOO_until_Jul13
Filed bug to track implTransform removal: https://code.google.com/p/chromium/issues/detail?id=171851
7 years, 11 months ago (2013-01-24 00:55:27 UTC) #8
danakj
On Wed, Jan 23, 2013 at 7:47 PM, <aelias@chromium.org> wrote: > OK, I deleted the ...
7 years, 11 months ago (2013-01-24 00:58:22 UTC) #9
danakj
Some compile errors: ./../webkit/compositor_bindings/web_layer_unittest.cc: In member function 'virtual void<unnamed>::WebLayerTest::SetUp()': ../../webkit/compositor_bindings/web_layer_unittest.cc:50:error: cannot allocate an object of ...
7 years, 11 months ago (2013-01-24 16:00:38 UTC) #10
danakj
Oh, nvm I see it in https://bugs.webkit.org/show_bug.cgi?id=107424 But you're going to have to remove the ...
7 years, 11 months ago (2013-01-24 16:02:17 UTC) #11
danakj
LGTM but I think you should adjust instead of deleting one of the tests thunks. ...
7 years, 11 months ago (2013-01-24 16:11:09 UTC) #12
trchen
https://codereview.chromium.org/12045002/diff/5003/cc/layer_tree_host_impl.cc File cc/layer_tree_host_impl.cc (left): https://codereview.chromium.org/12045002/diff/5003/cc/layer_tree_host_impl.cc#oldcode1259 cc/layer_tree_host_impl.cc:1259: viewportAppliedPan = unscrolled - viewport->ApplyScroll(unscrolled); This eliminated the use ...
7 years, 11 months ago (2013-01-24 23:05:31 UTC) #13
aelias_OOO_until_Jul13
I'm going to remove PinchZoomViewport in the followup patch https://codereview.chromium.org/12093015/. Brought back the implPinch test ...
7 years, 10 months ago (2013-01-28 10:00:42 UTC) #14
danakj
https://codereview.chromium.org/12045002/diff/19001/cc/layer_tree_host_impl_unittest.cc File cc/layer_tree_host_impl_unittest.cc (left): https://codereview.chromium.org/12045002/diff/19001/cc/layer_tree_host_impl_unittest.cc#oldcode591 cc/layer_tree_host_impl_unittest.cc:591: EXPECT_EQ(m_hostImpl->rootLayer()->maxScrollOffset(), gfx::Vector2d(50, 50)); Is this the test hunk you ...
7 years, 10 months ago (2013-01-28 17:58:46 UTC) #15
aelias_OOO_until_Jul13
Sorry, it ended up in the next patch in the sequence because there were conflicts. ...
7 years, 10 months ago (2013-01-28 18:27:16 UTC) #16
danakj
I see, thanks. LGTM On Mon, Jan 28, 2013 at 1:27 PM, <aelias@chromium.org> wrote: > ...
7 years, 10 months ago (2013-01-28 19:25:27 UTC) #17
aelias_OOO_until_Jul13
Need LGTM from enne@ on webkit/compositor_bindings/ and sievers@ on content/browser/android/content_startup_flags.cc (flipping flag to new scaling ...
7 years, 10 months ago (2013-01-29 01:30:56 UTC) #18
no sievers
On 2013/01/29 01:30:56, aelias wrote: > Need LGTM from enne@ on webkit/compositor_bindings/ and sievers@ on ...
7 years, 10 months ago (2013-01-29 01:33:08 UTC) #19
enne (OOO)
lgtm
7 years, 10 months ago (2013-01-29 01:34:47 UTC) #20
aelias_OOO_until_Jul13
Adding Yaron for OWNERS for the 3 disabled tests. Bug for them filed at http://crbug.com/172967
7 years, 10 months ago (2013-01-29 22:58:41 UTC) #21
Yaron
On 2013/01/29 22:58:41, aelias wrote: > Adding Yaron for OWNERS for the 3 disabled tests. ...
7 years, 10 months ago (2013-01-29 23:08:39 UTC) #22
Ted C
lgtm
7 years, 10 months ago (2013-01-29 23:09:26 UTC) #23
aelias_OOO_until_Jul13
Past try failures addressed, landing with NOTRY.
7 years, 10 months ago (2013-01-29 23:14:57 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aelias@chromium.org/12045002/18029
7 years, 10 months ago (2013-01-29 23:30:41 UTC) #25
commit-bot: I haz the power
7 years, 10 months ago (2013-01-29 23:47:33 UTC) #26
Message was sent while issue was closed.
Change committed as 179467

Powered by Google App Engine
This is Rietveld 408576698