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

Issue 40423003: Experimental viewport meta tag support for desktop, Blink-side. (Closed)

Created:
7 years, 2 months ago by bokan
Modified:
7 years, 1 month ago
CC:
blink-reviews, jamesr, eae+blinkwatch, abarth-chromium, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Experimental viewport meta tag support for desktop, Blink-side. Added flag to allow desktop builds to experimentally turn on support for the viewport meta tag. The --enable-viewport flag now turns on only support for @viewport. --enable-viewport-meta turns on viewport meta and @viewport support. On Android, the viewport gets rescaled when the view is resized, i.e. phone is rotated between landscape and portrait. On desktop, enabling the viewport causes the page to zoom out when the window is shrunk, rather than adding scrollbars. To support viewport on both devices, I've added a --scale-viewport-on-resize flag that should be set on Android and not desktop. This prevents the viewport scaling code in WebViewImpl::resize(). Enabling viewport on desktop means the page scale can change. This causes a known issue with scrollbars where mouse events are scaled with the page, making mouse interaction with scrollbars broken. This is the Blink side of a 2-side patch. BUG=232102 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161378

Patch Set 1 #

Total comments: 11

Patch Set 2 : Android stylesheet and fixes #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -61 lines) Patch
M LayoutTests/css3/device-adapt/viewport-user-agent-style.html View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/core.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/core_derived_sources.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSDefaultStyleSheets.cpp View 1 2 3 4 5 6 4 chunks +4 lines, -1 line 0 comments Download
A + Source/core/css/ViewportStyle.h View 1 2 3 4 1 chunk +14 lines, -6 lines 0 comments Download
A + Source/core/css/ViewportStyle.cpp View 1 2 3 4 1 chunk +11 lines, -4 lines 0 comments Download
A + Source/core/css/ViewportStyleAndroid.cpp View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M Source/core/css/html.css View 1 1 chunk +0 lines, -6 lines 0 comments Download
A + Source/core/css/viewportAndroid.css View 1 1 chunk +4 lines, -5 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/page/Settings.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M Source/core/page/Settings.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 2 4 chunks +5 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 3 4 5 6 4 chunks +24 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 16 chunks +23 lines, -30 lines 0 comments Download
M Source/web/tests/data/fixed_layout.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/web/tests/data/no_viewport_tag.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
bokan
7 years, 2 months ago (2013-10-24 16:12:08 UTC) #1
aelias_OOO_until_Jul13
https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css File Source/core/css/html.css (right): https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css#newcode1136 Source/core/css/html.css:1136: width: auto; If not done here then the 980px ...
7 years, 2 months ago (2013-10-25 04:10:08 UTC) #2
bokan
https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css File Source/core/css/html.css (right): https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css#newcode1136 Source/core/css/html.css:1136: width: auto; On 2013/10/25 04:10:08, aelias wrote: > If ...
7 years, 1 month ago (2013-10-25 17:19:37 UTC) #3
rune
https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css File Source/core/css/html.css (right): https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css#newcode1136 Source/core/css/html.css:1136: width: auto; On 2013/10/25 17:19:38, bokan wrote: > On ...
7 years, 1 month ago (2013-10-25 20:22:54 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/40423003/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/40423003/diff/1/Source/web/WebViewImpl.cpp#newcode1721 Source/web/WebViewImpl.cpp:1721: view->layout(); OK, that's fine, my fault for not remembering ...
7 years, 1 month ago (2013-10-25 23:15:01 UTC) #5
bokan
https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css File Source/core/css/html.css (right): https://codereview.chromium.org/40423003/diff/1/Source/core/css/html.css#newcode1136 Source/core/css/html.css:1136: width: auto; On 2013/10/25 20:22:54, rune - CET wrote: ...
7 years, 1 month ago (2013-10-28 22:17:51 UTC) #6
bokan
Rune, Kenneth mentioned that @viewport is only enabled with --enable-experimental-web-platform-features. Is this for author stylesheets ...
7 years, 1 month ago (2013-10-28 22:20:25 UTC) #7
rune
On 2013/10/28 22:20:25, bokan wrote: > Rune, Kenneth mentioned that @viewport is only enabled with ...
7 years, 1 month ago (2013-10-28 22:28:25 UTC) #8
bokan
PTAL at this and the associated Chromium CL
7 years, 1 month ago (2013-10-31 15:38:07 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/40423003/diff/130001/Source/core/core_derived_sources.gyp File Source/core/core_derived_sources.gyp (right): https://codereview.chromium.org/40423003/diff/130001/Source/core/core_derived_sources.gyp#newcode439 Source/core/core_derived_sources.gyp:439: 'css/viewportAndroid.css', I don't see what code makes sure this ...
7 years, 1 month ago (2013-10-31 21:06:58 UTC) #10
bokan
https://codereview.chromium.org/40423003/diff/130001/Source/core/core_derived_sources.gyp File Source/core/core_derived_sources.gyp (right): https://codereview.chromium.org/40423003/diff/130001/Source/core/core_derived_sources.gyp#newcode439 Source/core/core_derived_sources.gyp:439: 'css/viewportAndroid.css', On 2013/10/31 21:06:59, aelias wrote: > I don't ...
7 years, 1 month ago (2013-10-31 21:18:13 UTC) #11
aelias_OOO_until_Jul13
OK, splitting off those tests in a separate patch sounds fine. lgtm. Adding darin@ for ...
7 years, 1 month ago (2013-10-31 22:11:51 UTC) #12
darin (slow to review)
LGTM
7 years, 1 month ago (2013-10-31 22:26:20 UTC) #13
bokan
I tied the values of ViewportMetaEnabled and MainFrameResizesAreOriangationChanges to ViewportEnabled so that this CL doesn't ...
7 years, 1 month ago (2013-10-31 23:19:50 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/40423003/280001
7 years, 1 month ago (2013-10-31 23:25:24 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=15100
7 years, 1 month ago (2013-11-01 01:55:40 UTC) #16
bokan
On 2013/11/01 01:55:40, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 1 month ago (2013-11-01 08:01:18 UTC) #17
kenneth.r.christiansen
> I also disabled a test in the css3/device-adapt layout tests that was checking > ...
7 years, 1 month ago (2013-11-01 11:54:59 UTC) #18
kenneth.r.christiansen
https://codereview.chromium.org/40423003/diff/530001/Source/core/page/Settings.cpp File Source/core/page/Settings.cpp (right): https://codereview.chromium.org/40423003/diff/530001/Source/core/page/Settings.cpp#newcode407 Source/core/page/Settings.cpp:407: // FIXME: Remove once Chromium-side lands Mini nit. Comments ...
7 years, 1 month ago (2013-11-01 11:55:15 UTC) #19
rune
On 2013/11/01 08:01:18, bokan wrote: > On 2013/11/01 01:55:40, I haz the power (commit-bot) wrote: ...
7 years, 1 month ago (2013-11-02 13:48:49 UTC) #20
rune
https://codereview.chromium.org/40423003/diff/530001/Source/core/css/CSSDefaultStyleSheets.cpp File Source/core/css/CSSDefaultStyleSheets.cpp (right): https://codereview.chromium.org/40423003/diff/530001/Source/core/css/CSSDefaultStyleSheets.cpp#newcode123 Source/core/css/CSSDefaultStyleSheets.cpp:123: defaultStyle->addRulesFromSheet(parseUASheet(ViewportStyle::viewportStyleSheet()), screenEval()); Since you removed the @viewport from the ...
7 years, 1 month ago (2013-11-02 13:48:59 UTC) #21
bokan
On 2013/11/02 13:48:49, rune - CET wrote: > I am not an expert here, but ...
7 years, 1 month ago (2013-11-04 21:25:04 UTC) #22
bokan
On 2013/11/01 11:54:59, kenneth.r.christiansen wrote: > > I also disabled a test in the css3/device-adapt ...
7 years, 1 month ago (2013-11-04 21:30:58 UTC) #23
bokan
https://codereview.chromium.org/40423003/diff/530001/Source/core/css/CSSDefaultStyleSheets.cpp File Source/core/css/CSSDefaultStyleSheets.cpp (right): https://codereview.chromium.org/40423003/diff/530001/Source/core/css/CSSDefaultStyleSheets.cpp#newcode123 Source/core/css/CSSDefaultStyleSheets.cpp:123: defaultStyle->addRulesFromSheet(parseUASheet(ViewportStyle::viewportStyleSheet()), screenEval()); On 2013/11/02 13:48:59, rune - CET wrote: ...
7 years, 1 month ago (2013-11-04 21:35:34 UTC) #24
aelias_OOO_until_Jul13
lgtm
7 years, 1 month ago (2013-11-05 00:10:51 UTC) #25
kenneth.r.christiansen
lgtm
7 years, 1 month ago (2013-11-05 14:34:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/40423003/810001
7 years, 1 month ago (2013-11-05 19:39:49 UTC) #27
commit-bot: I haz the power
7 years, 1 month ago (2013-11-05 21:21:23 UTC) #28
Message was sent while issue was closed.
Change committed as 161378

Powered by Google App Engine
This is Rietveld 408576698