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

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed)

Created:
7 years, 5 months ago by kenneth.r.christiansen
Modified:
7 years ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, do-not-use, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, jchaffraix+rendering, kenneth.christiansen, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, haraken, kojih, jsbell+bindings_chromium.org, alph+blink_chromium.org, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, jeez
Visibility:
Public.

Description

Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adaptation spec. This futhermore extends it to the XHTML Mobile Profile, and the handheldfriendly and mobileoptimized meta tags.

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : Land patch upload resulted in python error #

Total comments: 2

Patch Set 5 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+1050 lines, -754 lines) Patch
M LayoutTests/css3/device-adapt/opera/constrain-006-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/css3/device-adapt/opera/constrain-007-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-10-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-104-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-105-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-106-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-107-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-108-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-109-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-110-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-111-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-112-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-113-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-114-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-118-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-121-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-122-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-125-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-126-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-127-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-129-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-131-expected.txt View 1 chunk +1 line, -1 line 1 comment Download
M LayoutTests/fast/viewport/viewport-133-expected.txt View 1 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-134-expected.txt View 1 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-16-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-17-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-18-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-43-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-44-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-45-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-46-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-50-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-51-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-52-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-54-expected.txt View 1 1 chunk +3 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-55-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-56-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-58-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-65-expected.txt View 1 1 chunk +3 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-66-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-67-expected.txt View 1 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-68-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-69-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-7-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-70-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-71-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-72-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-73-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-74-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-75-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-77-expected.txt View 1 1 chunk +4 lines, -3 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-78-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-79-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-8-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-82-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-83-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-84-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-87-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-88-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-9-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
A + LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-4.html View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-4-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A + LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-5.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A + LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-5-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-ordering-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-warnings-2-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-warnings-3-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-warnings-4-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/viewport/viewport-warnings-5-expected.txt View 1 1 chunk +5 lines, -4 lines 0 comments Download
M LayoutTests/fast/viewport/viewport-warnings-6-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/core.gyp View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/core_derived_sources.gyp View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 5 chunks +8 lines, -7 lines 0 comments Download
M Source/core/css/CSSProperty.cpp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSPropertyNames.in View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSStyleSheet.cpp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSValueKeywords.in View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/css/DocumentRuleSets.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/RuleSet.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/css/StyleRule.cpp View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/css/html.css View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 8 chunks +14 lines, -6 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 1 2 3 4 5 chunks +62 lines, -9 lines 3 comments Download
M Source/core/dom/Document.h View 1 2 3 4 3 chunks +2 lines, -4 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 3 chunks +7 lines, -74 lines 0 comments Download
M Source/core/dom/StyleSheetCollection.cpp View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M Source/core/dom/ViewportArguments.h View 1 2 3 4 5 chunks +4 lines, -37 lines 0 comments Download
M Source/core/dom/ViewportArguments.cpp View 1 2 3 4 2 chunks +53 lines, -358 lines 0 comments Download
M Source/core/html/HTMLMetaElement.h View 1 2 chunks +36 lines, -1 line 0 comments Download
D Source/core/html/HTMLMetaElement.cpp View 1 chunk +0 lines, -110 lines 0 comments Download
A Source/core/html/HTMLMetaElement-in.cpp View 1 2 3 4 1 chunk +600 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/page/ConsoleTypes.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/DOMWindow.cpp View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/page/PageScaleConstraintsSet.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/PageScaleConstraintsSet.cpp View 1 2 3 4 3 chunks +19 lines, -12 lines 1 comment Download
M Source/core/page/UseCounter.cpp View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 7 chunks +55 lines, -26 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
kenneth.r.christiansen
7 years, 5 months ago (2013-07-17 09:41:33 UTC) #1
kenneth.r.christiansen
7 years, 5 months ago (2013-07-17 09:44:56 UTC) #2
abarth-chromium
Should I be worried that LayoutTests/fast/viewport/viewport-*-expected.txt are changing?
7 years, 5 months ago (2013-07-17 18:15:54 UTC) #3
abarth-chromium
https://codereview.chromium.org/19555002/diff/4001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/19555002/diff/4001/Source/core/testing/Internals.cpp#newcode938 Source/core/testing/Internals.cpp:938: + " and userScalable " + (arguments.userZoom ? "true" ...
7 years, 5 months ago (2013-07-17 18:17:17 UTC) #4
kenneth.r.christiansen
Hi there, It is pretty hard, but Mikhail is helping me do that. https://codereview.chromium.org/19632002/ is ...
7 years, 5 months ago (2013-07-17 19:49:55 UTC) #5
kenneth.r.christiansen
> The height change is a conscious change with is due to some spec changes ...
7 years, 5 months ago (2013-07-17 19:50:28 UTC) #6
Mikhail
https://codereview.chromium.org/19555002/diff/4001/Source/core/css/resolver/StyleResolver.cpp File Source/core/css/resolver/StyleResolver.cpp (right): https://codereview.chromium.org/19555002/diff/4001/Source/core/css/resolver/StyleResolver.cpp#newcode1496 Source/core/css/resolver/StyleResolver.cpp:1496: return m_viewportStyleResolver->affectedByViewportChange(); This is causing dead loop if having ...
7 years, 5 months ago (2013-07-19 12:56:20 UTC) #7
kenneth.r.christiansen
Given your description is sounds as this problem exists already with viewport dependent media queries. ...
7 years, 5 months ago (2013-07-19 16:31:41 UTC) #8
apavlov
https://codereview.chromium.org/19555002/diff/4001/Source/core/html/HTMLMetaElement-in.cpp File Source/core/html/HTMLMetaElement-in.cpp (right): https://codereview.chromium.org/19555002/diff/4001/Source/core/html/HTMLMetaElement-in.cpp#newcode334 Source/core/html/HTMLMetaElement-in.cpp:334: // Numbers in the range <-1, 1>, and unknown ...
7 years, 4 months ago (2013-07-30 12:06:44 UTC) #9
rune
On 2013/07/19 16:31:41, kenneth.r.christiansen wrote: > Given your description is sounds as this problem exists ...
7 years, 4 months ago (2013-08-05 20:16:09 UTC) #10
rune
On 2013/08/05 20:16:09, rune wrote: > On 2013/07/19 16:31:41, kenneth.r.christiansen wrote: > > Given your ...
7 years, 4 months ago (2013-08-05 20:47:03 UTC) #11
rune
On 2013/08/05 20:47:03, rune wrote: > If I read the code correctly, it currently recalculates ...
7 years, 4 months ago (2013-08-07 07:33:16 UTC) #12
rune
I've split done removal of deviceSize for configurationForViewport in: https://codereview.chromium.org/23101004 Which should cause less LayoutTest ...
7 years, 4 months ago (2013-08-15 13:28:52 UTC) #13
rune
https://codereview.chromium.org/19555002/diff/30001/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (left): https://codereview.chromium.org/19555002/diff/30001/Source/core/css/resolver/ViewportStyleResolver.cpp#oldcode96 Source/core/css/resolver/ViewportStyleResolver.cpp:96: m_propertySet = 0; I can't see where the property ...
7 years, 4 months ago (2013-08-21 09:18:21 UTC) #14
rune
https://codereview.chromium.org/19555002/diff/20001/Source/core/page/PageScaleConstraintsSet.cpp File Source/core/page/PageScaleConstraintsSet.cpp (right): https://codereview.chromium.org/19555002/diff/20001/Source/core/page/PageScaleConstraintsSet.cpp#newcode143 Source/core/page/PageScaleConstraintsSet.cpp:143: // FIXME: Why this particular Android behavior? I've tried ...
7 years, 4 months ago (2013-08-22 15:43:38 UTC) #15
kenneth.r.christiansen
> I got two fails running those with my local version of this CL, but ...
7 years, 4 months ago (2013-08-22 16:13:54 UTC) #16
rune
On 2013/08/22 16:13:54, kenneth.r.christiansen wrote: > > I got two fails running those with my ...
7 years, 4 months ago (2013-08-23 07:43:38 UTC) #17
rune
On 2013/08/23 07:43:38, rune wrote: > On 2013/08/22 16:13:54, kenneth.r.christiansen wrote: > > > I ...
7 years, 4 months ago (2013-08-23 09:45:15 UTC) #18
rune
https://codereview.chromium.org/19555002/diff/20001/Source/core/page/PageScaleConstraintsSet.cpp File Source/core/page/PageScaleConstraintsSet.cpp (right): https://codereview.chromium.org/19555002/diff/20001/Source/core/page/PageScaleConstraintsSet.cpp#newcode143 Source/core/page/PageScaleConstraintsSet.cpp:143: // FIXME: Why this particular Android behavior? On 2013/08/22 ...
7 years, 3 months ago (2013-08-26 21:32:23 UTC) #19
johnme
+mnaganov and aelias to comment on the Android WebView quirks
7 years, 3 months ago (2013-08-27 12:38:59 UTC) #20
rune
On 2013/08/27 12:38:59, johnme wrote: > +mnaganov and aelias to comment on the Android WebView ...
7 years, 3 months ago (2013-08-27 12:46:45 UTC) #21
mnaganov (inactive)
On 2013/08/27 12:46:45, rune wrote: > On 2013/08/27 12:38:59, johnme wrote: > > +mnaganov and ...
7 years, 3 months ago (2013-08-27 14:28:19 UTC) #22
aelias_OOO_until_Jul13
Unfortunately, the only specification for the meaning of useWideViewport and loadWithOverviewMode are the old WebView ...
7 years, 3 months ago (2013-08-27 16:58:08 UTC) #23
rune
https://codereview.chromium.org/19555002/diff/30001/Source/core/css/resolver/ViewportStyleResolver.cpp File Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/19555002/diff/30001/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode90 Source/core/css/resolver/ViewportStyleResolver.cpp:90: bool ViewportStyleResolver::shouldDisableDesktopWorkarounds() const I have tried to split this ...
7 years, 3 months ago (2013-08-28 23:30:13 UTC) #24
rune
https://chromiumcodereview.appspot.com/19555002/diff/30001/LayoutTests/fast/viewport/viewport-131-expected.txt File LayoutTests/fast/viewport/viewport-131-expected.txt (right): https://chromiumcodereview.appspot.com/19555002/diff/30001/LayoutTests/fast/viewport/viewport-131-expected.txt#newcode1 LayoutTests/fast/viewport/viewport-131-expected.txt:1: ALERT: viewport size 320x352 scale 1 with limits [1, ...
7 years, 3 months ago (2013-08-30 22:49:02 UTC) #25
apavlov
Is this patch still of interest?
7 years ago (2013-11-25 09:13:16 UTC) #26
kenneth.r.christiansen
On 2013/11/25 09:13:16, apavlov wrote: > Is this patch still of interest? No, closed
7 years ago (2013-11-25 09:19:55 UTC) #27
johnme
On 2013/11/25 09:19:55, kenneth.r.christiansen wrote: > On 2013/11/25 09:13:16, apavlov wrote: > > Is this ...
7 years ago (2013-11-25 11:43:08 UTC) #28
kenneth.r.christiansen
7 years ago (2013-11-25 12:00:38 UTC) #29
Message was sent while issue was closed.
On 2013/11/25 11:43:08, johnme wrote:
> On 2013/11/25 09:19:55, kenneth.r.christiansen wrote:
> > On 2013/11/25 09:13:16, apavlov wrote:
> > > Is this patch still of interest?
> > 
> > No, closed
> 
> Is there a new plan for how to handle this, or did you just run out of time?

Rune thought it was not worth it, so we just keep the two code paths.

Powered by Google App Engine
This is Rietveld 408576698