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

Issue 263853008: Added pinch viewport offset to history item. (Closed)

Created:
6 years, 7 months ago by bokan
Modified:
6 years, 7 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, Nate Chapin, gavinp+loader_chromium.org, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Added pinch viewport offset to history item. Added field to HistoryItem to save pinch viewport's offset within the main frame and patched up the history system to be aware of the pinch viewport. Also, removed "savedScrollAndScale" dead code from WebView Follow-up Chromium patch: https://codereview.chromium.org/266673014 BUG=364112 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173757

Patch Set 1 : TODO: Test #

Patch Set 2 : Added backward compatibility, tests #

Total comments: 5

Patch Set 3 : Feedback addressed + small fix for broken unit test #

Total comments: 13

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -47 lines) Patch
M Source/core/frame/PinchViewport.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 2 3 4 chunks +18 lines, -1 line 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 3 chunks +29 lines, -4 lines 0 comments Download
M Source/core/loader/HistoryItem.h View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/loader/HistoryItem.cpp View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M Source/core/page/Page.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebHistoryItem.cpp View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 chunks +5 lines, -25 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 3 3 chunks +83 lines, -0 lines 0 comments Download
M Source/web/tests/data/200-by-300-viewport.html View 1 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebHistoryItem.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M public/web/WebView.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
bokan
PTAL at this and associated patch.
6 years, 7 months ago (2014-05-02 01:27:13 UTC) #1
abarth-chromium
6 years, 7 months ago (2014-05-02 17:06:18 UTC) #2
aelias_OOO_until_Jul13
lgtm modulo comment below https://codereview.chromium.org/263853008/diff/20001/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/263853008/diff/20001/Source/core/frame/PinchViewport.cpp#newcode148 Source/core/frame/PinchViewport.cpp:148: // TODO: We should probably ...
6 years, 7 months ago (2014-05-07 08:06:03 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/263853008/diff/20001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/263853008/diff/20001/Source/core/loader/FrameLoader.cpp#newcode1007 Source/core/loader/FrameLoader.cpp:1007: m_frame->page()->setPageScaleFactor(m_currentItem->pageScaleFactor(), frameScrollOffset); On 2014/05/07 08:06:03, aelias wrote: > In ...
6 years, 7 months ago (2014-05-07 08:41:34 UTC) #4
bokan
abarth@, could you please review Source/core and public/web? Thanks.
6 years, 7 months ago (2014-05-07 12:49:04 UTC) #5
eseidel
I don't feel like I particularly well understand this change, but the code looks safe/reasonable. ...
6 years, 7 months ago (2014-05-08 18:58:02 UTC) #6
bokan
https://codereview.chromium.org/263853008/diff/20001/Source/core/loader/HistoryItem.cpp File Source/core/loader/HistoryItem.cpp (left): https://codereview.chromium.org/263853008/diff/20001/Source/core/loader/HistoryItem.cpp#oldcode119 Source/core/loader/HistoryItem.cpp:119: m_scrollPoint.setX(0); On 2014/05/08 18:58:02, eseidel wrote: > m_scrollPoint = ...
6 years, 7 months ago (2014-05-08 19:27:46 UTC) #7
abarth-chromium
Looks pretty good. Some minor comments below. https://codereview.chromium.org/263853008/diff/40001/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/263853008/diff/40001/Source/core/frame/PinchViewport.cpp#newcode69 Source/core/frame/PinchViewport.cpp:69: } Maybe ...
6 years, 7 months ago (2014-05-09 14:11:23 UTC) #8
bokan
https://codereview.chromium.org/263853008/diff/40001/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/263853008/diff/40001/Source/core/frame/PinchViewport.cpp#newcode69 Source/core/frame/PinchViewport.cpp:69: } On 2014/05/09 14:11:23, abarth wrote: > Maybe call ...
6 years, 7 months ago (2014-05-09 14:32:56 UTC) #9
abarth-chromium
ok, LGTM Can you add a comment explain when we can remove the -1, -1 ...
6 years, 7 months ago (2014-05-09 14:54:07 UTC) #10
bokan
On 2014/05/09 14:54:07, abarth wrote: > ok, LGTM > > Can you add a comment ...
6 years, 7 months ago (2014-05-09 14:59:31 UTC) #11
bokan
The CQ bit was checked by bokan@chromium.org
6 years, 7 months ago (2014-05-09 14:59:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/263853008/80001
6 years, 7 months ago (2014-05-09 15:00:19 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 16:21:00 UTC) #14
Message was sent while issue was closed.
Change committed as 173757

Powered by Google App Engine
This is Rietveld 408576698