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

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed)

Created:
7 years, 6 months ago by bokan
Modified:
7 years, 2 months ago
CC:
blink-reviews, jamesr, eae+blinkwatch, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Enabled using viewport on desktop browsers behind experimental flag 'enable-desktop-viewport'. The changes shouldn't affect anything if the flag isn't set. This is the Blink side of a two part patch BUG=232102

Patch Set 1 #

Total comments: 19

Patch Set 2 : CR fixes #

Patch Set 3 : Review Fixes 2 #

Total comments: 4

Patch Set 4 : WIP #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -144 lines) Patch
M LayoutTests/fast/events/resize-events.html View 1 2 3 3 chunks +2 lines, -7 lines 0 comments Download
M LayoutTests/fast/events/resize-events-fixed-layout.html View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/fast/repaint/fixed-layout-360x240.html View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/page/Frame.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Frame.cpp View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M Source/core/page/FrameView.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/page/FrameView.cpp View 1 2 3 2 chunks +19 lines, -1 line 2 comments Download
M Source/core/page/Settings.in View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/platform/ScrollView.h View 1 2 3 2 chunks +1 line, -6 lines 0 comments Download
M Source/core/platform/ScrollView.cpp View 1 2 3 1 chunk +1 line, -30 lines 0 comments Download
M Source/core/rendering/RenderView.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 3 4 chunks +15 lines, -2 lines 1 comment Download
M Source/web/WebFrameImpl.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 8 chunks +29 lines, -38 lines 1 comment Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 32 chunks +33 lines, -33 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M public/web/WebView.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Rick Byers
Nice, thanks David - I'm happy that you got the viewport tag working on desktop ...
7 years, 6 months ago (2013-06-04 00:25:30 UTC) #1
bokan
https://codereview.chromium.org/15927026/diff/1/Source/WebKit/chromium/public/WebSettings.h File Source/WebKit/chromium/public/WebSettings.h (right): https://codereview.chromium.org/15927026/diff/1/Source/WebKit/chromium/public/WebSettings.h#newcode55 Source/WebKit/chromium/public/WebSettings.h:55: virtual bool desktopViewportEnabled() const = 0; On 2013/06/04 00:25:30, ...
7 years, 6 months ago (2013-06-04 18:52:16 UTC) #2
Rick Byers
https://codereview.chromium.org/15927026/diff/1/Source/WebKit/chromium/public/WebSettings.h File Source/WebKit/chromium/public/WebSettings.h (right): https://codereview.chromium.org/15927026/diff/1/Source/WebKit/chromium/public/WebSettings.h#newcode55 Source/WebKit/chromium/public/WebSettings.h:55: virtual bool desktopViewportEnabled() const = 0; On 2013/06/04 18:52:16, ...
7 years, 6 months ago (2013-06-05 15:04:08 UTC) #3
bokan
https://codereview.chromium.org/15927026/diff/1/Source/WebKit/chromium/public/WebSettings.h File Source/WebKit/chromium/public/WebSettings.h (right): https://codereview.chromium.org/15927026/diff/1/Source/WebKit/chromium/public/WebSettings.h#newcode55 Source/WebKit/chromium/public/WebSettings.h:55: virtual bool desktopViewportEnabled() const = 0; On 2013/06/05 15:04:08, ...
7 years, 6 months ago (2013-06-06 19:43:47 UTC) #4
aelias_OOO_until_Jul13
This is on the right track, but let's take it a step further to make ...
7 years, 6 months ago (2013-06-18 01:24:18 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/15927026/diff/9001/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/15927026/diff/9001/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode3621 Source/WebKit/chromium/src/WebViewImpl.cpp:3621: // this is a hack to fix some page ...
7 years, 6 months ago (2013-06-18 01:30:19 UTC) #6
aelias_OOO_until_Jul13
7 years, 4 months ago (2013-07-31 22:31:21 UTC) #7
https://codereview.chromium.org/15927026/diff/16001/Source/core/page/FrameVie...
File Source/core/page/FrameView.cpp (right):

https://codereview.chromium.org/15927026/diff/16001/Source/core/page/FrameVie...
Source/core/page/FrameView.cpp:480: return
ScrollView::layoutSize(scrollbarInclusion);
I don't think we should keep using the ScrollView::layoutSize logic on
FrameViews.  Just always return m_layoutSize.  And make sure that it's always
set correctly (for example, call it on every WebViewImpl::resize()).

https://codereview.chromium.org/15927026/diff/16001/Source/core/page/FrameVie...
Source/core/page/FrameView.cpp:485: void FrameView::setLayoutSize(const IntSize&
newSize)
Could you just layout() when this is called and remove all other layout calls
from FrameView?

https://codereview.chromium.org/15927026/diff/16001/Source/core/rendering/Ren...
File Source/core/rendering/RenderView.cpp (left):

https://codereview.chromium.org/15927026/diff/16001/Source/core/rendering/Ren...
Source/core/rendering/RenderView.cpp:980: height = m_frameView->useFixedLayout()
? ceilf(style()->effectiveZoom() * float(height)) : height;
This is a legacy of one of the other WebKit ports, since Chrome for Android
never used effectiveZoom().  So I suggest trying to just delete these lines.

https://codereview.chromium.org/15927026/diff/16001/Source/web/WebViewImpl.cpp
File Source/web/WebViewImpl.cpp (right):

https://codereview.chromium.org/15927026/diff/16001/Source/web/WebViewImpl.cp...
Source/web/WebViewImpl.cpp:3015: enterForceCompositingMode(true);
This doesn't feel like the right place to put this.  Maybe do it when the new
FrameView is constructed?

Powered by Google App Engine
This is Rietveld 408576698