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

Issue 23742003: Use css-device-adapt constraining for legacy viewport tags. (Closed)

Created:
7 years, 3 months ago by rune
Modified:
7 years, 3 months ago
CC:
blink-reviews, kenneth.christiansen, eae+blinkwatch, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use css-device-adapt constraining for legacy viewport tags. This CL is trying to take the part of Kenneth's CL [1] that is about using the constraining procedure from the CSS Device Adaptation spec for legacy meta tags, as well as for @viewport descriptors, to better match the specification. Descriptors translated from meta tags are not cascaded with @viewport rules but are only applied if @viewport from author style is not present. See thread [2] on www-style. ViewportArguments::resolve had different modes for resolving viewport descriptors depending on the source. This CL translates legacy meta viewport tags into descriptor values as specified by the css-device-adapt spec, but they are not cascaded together as currently spec'ed. The prioritization is still the same, overwriting descriptors from lower priority sources. XHTML MP viewport is implemented through UA styles using @viewport. [1] https://codereview.chromium.org/19555002/ [2] http://lists.w3.org/Archives/Public/www-style/2012May/0371.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157293

Patch Set 1 #

Total comments: 17

Patch Set 2 : Fixed review issues. #

Total comments: 10

Patch Set 3 : More review issues. #

Total comments: 1

Patch Set 4 : Got rid of useLegacyViewportArguments method. #

Patch Set 5 : Rebased onto newer master. #

Total comments: 6

Patch Set 6 : More review issues #

Total comments: 6

Patch Set 7 : Rebased to recent master #

Total comments: 2

Patch Set 8 : Review issue: one assignent per line/statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -227 lines) Patch
M Source/core/core_derived_sources.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSDefaultStyleSheets.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/CSSDefaultStyleSheets.cpp View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M Source/core/css/CSSParser-in.cpp View 1 2 3 4 5 6 4 chunks +6 lines, -4 lines 0 comments Download
M Source/core/css/RuleSet.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleRule.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/css/html.css View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 3 chunks +9 lines, -8 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 1 2 3 4 5 6 3 chunks +8 lines, -12 lines 0 comments Download
A Source/core/css/xhtmlmp.css View 1 chunk +37 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 3 4 5 6 5 chunks +16 lines, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 2 3 4 5 6 4 chunks +41 lines, -8 lines 0 comments Download
M Source/core/dom/ViewportArguments.h View 1 2 3 4 5 5 chunks +7 lines, -13 lines 0 comments Download
M Source/core/dom/ViewportArguments.cpp View 1 2 3 4 5 6 7 chunks +93 lines, -165 lines 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 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 1 chunk +7 lines, -3 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 27 (0 generated)
kenneth.r.christiansen
https://codereview.chromium.org/23742003/diff/1/Source/core/css/CSSDefaultStyleSheets.h File Source/core/css/CSSDefaultStyleSheets.h (right): https://codereview.chromium.org/23742003/diff/1/Source/core/css/CSSDefaultStyleSheets.h#newcode38 Source/core/css/CSSDefaultStyleSheets.h:38: static RuleSet* defaultXHtmlMpStyle; Maybe just write out MP https://codereview.chromium.org/23742003/diff/1/Source/core/css/CSSParser-in.cpp ...
7 years, 3 months ago (2013-09-02 09:10:48 UTC) #1
kenneth.r.christiansen
https://codereview.chromium.org/23742003/diff/1/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/23742003/diff/1/Source/core/dom/Document.cpp#newcode2928 Source/core/dom/Document.cpp:2928: if (origin < m_legacyViewportArguments.type) I guess this needs a ...
7 years, 3 months ago (2013-09-02 09:14:16 UTC) #2
rune
https://codereview.chromium.org/23742003/diff/1/Source/core/dom/ViewportArguments.cpp File Source/core/dom/ViewportArguments.cpp (right): https://codereview.chromium.org/23742003/diff/1/Source/core/dom/ViewportArguments.cpp#newcode99 Source/core/dom/ViewportArguments.cpp:99: // 3. Resolve non-"auto" lengths to pixel lengths. On ...
7 years, 3 months ago (2013-09-02 11:29:30 UTC) #3
kenneth.r.christiansen
> I have not actually diffed - can do that. I did not remove the ...
7 years, 3 months ago (2013-09-02 11:30:53 UTC) #4
rune
https://codereview.chromium.org/23742003/diff/1/Source/core/css/CSSDefaultStyleSheets.h File Source/core/css/CSSDefaultStyleSheets.h (right): https://codereview.chromium.org/23742003/diff/1/Source/core/css/CSSDefaultStyleSheets.h#newcode38 Source/core/css/CSSDefaultStyleSheets.h:38: static RuleSet* defaultXHtmlMpStyle; On 2013/09/02 09:10:49, kenneth.r.christiansen wrote: > ...
7 years, 3 months ago (2013-09-02 11:53:39 UTC) #5
kenneth.r.christiansen
lgtm, but still a few comments https://codereview.chromium.org/23742003/diff/13001/Source/core/css/CSSDefaultStyleSheets.cpp File Source/core/css/CSSDefaultStyleSheets.cpp (right): https://codereview.chromium.org/23742003/diff/13001/Source/core/css/CSSDefaultStyleSheets.cpp#newcode50 Source/core/css/CSSDefaultStyleSheets.cpp:50: RuleSet* CSSDefaultStyleSheets::defaultXHtmlMobileProfileStyle; Same ...
7 years, 3 months ago (2013-09-02 11:55:28 UTC) #6
rune
https://codereview.chromium.org/23742003/diff/13001/Source/core/dom/Document.h File Source/core/dom/Document.h (right): https://codereview.chromium.org/23742003/diff/13001/Source/core/dom/Document.h#newcode296 Source/core/dom/Document.h:296: bool useLegacyViewportArguments(); On 2013/09/02 11:55:28, kenneth.r.christiansen wrote: > We ...
7 years, 3 months ago (2013-09-02 12:05:53 UTC) #7
kenneth.r.christiansen
> > We should really rename this ViewportArgument class at some point... > > > ...
7 years, 3 months ago (2013-09-02 12:10:45 UTC) #8
kenneth.r.christiansen
https://codereview.chromium.org/23742003/diff/21001/Source/core/css/xhtmlmp.css File Source/core/css/xhtmlmp.css (right): https://codereview.chromium.org/23742003/diff/21001/Source/core/css/xhtmlmp.css#newcode34 Source/core/css/xhtmlmp.css:34: /* Ideally these should be removed. Currently here to ...
7 years, 3 months ago (2013-09-02 12:23:41 UTC) #9
kenneth.r.christiansen
7 years, 3 months ago (2013-09-02 15:53:51 UTC) #10
rune
https://codereview.chromium.org/23742003/diff/1/Source/core/css/resolver/ScopedStyleResolver.cpp File Source/core/css/resolver/ScopedStyleResolver.cpp (right): https://codereview.chromium.org/23742003/diff/1/Source/core/css/resolver/ScopedStyleResolver.cpp#newcode433 Source/core/css/resolver/ScopedStyleResolver.cpp:433: resolver->collectViewportRules(m_authorStyle.get(), true); On 2013/09/02 09:10:49, kenneth.r.christiansen wrote: > true? ...
7 years, 3 months ago (2013-09-03 08:27:09 UTC) #11
kenneth.r.christiansen
https://codereview.chromium.org/23742003/diff/27001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/23742003/diff/27001/Source/core/dom/Document.cpp#newcode673 Source/core/dom/Document.cpp:673: if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.", /* caseSensitive */ false)) ...
7 years, 3 months ago (2013-09-03 08:55:56 UTC) #12
rune
https://codereview.chromium.org/23742003/diff/27001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/23742003/diff/27001/Source/core/dom/Document.cpp#newcode673 Source/core/dom/Document.cpp:673: if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.", /* caseSensitive */ false)) ...
7 years, 3 months ago (2013-09-03 09:24:59 UTC) #13
kenneth.r.christiansen
lgtm
7 years, 3 months ago (2013-09-03 10:23:20 UTC) #14
esprehn
This seems to move a lot of stuff out from behind a flag, and adds ...
7 years, 3 months ago (2013-09-04 11:16:37 UTC) #15
kenneth.r.christiansen
On 2013/09/04 11:16:37, esprehn wrote: > This seems to move a lot of stuff out ...
7 years, 3 months ago (2013-09-04 11:23:54 UTC) #16
esprehn
On 2013/09/04 11:23:54, kenneth.r.christiansen wrote: > On 2013/09/04 11:16:37, esprehn wrote: > > This seems ...
7 years, 3 months ago (2013-09-04 11:27:40 UTC) #17
esprehn
LGTM for this assuming it doesn't add any new web exposed features and just makes ...
7 years, 3 months ago (2013-09-04 11:33:01 UTC) #18
kenneth.r.christiansen
> So you're saying there's no added features in this patch? All behavior is the ...
7 years, 3 months ago (2013-09-04 11:39:01 UTC) #19
rune
On 2013/09/04 11:33:01, esprehn wrote: > LGTM for this assuming it doesn't add any new ...
7 years, 3 months ago (2013-09-04 14:21:30 UTC) #20
rune
Needs review by Source/web OWNER. @abarth?
7 years, 3 months ago (2013-09-04 23:04:09 UTC) #21
abarth-chromium
Source/web LGTM https://codereview.chromium.org/23742003/diff/46001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/23742003/diff/46001/Source/web/tests/WebFrameTest.cpp#newcode375 Source/web/tests/WebFrameTest.cpp:375: arguments.minWidth = arguments.maxWidth = WebCore::Length(100, WebCore::Fixed); Normally ...
7 years, 3 months ago (2013-09-05 05:53:21 UTC) #22
rune
https://codereview.chromium.org/23742003/diff/46001/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/23742003/diff/46001/Source/web/tests/WebFrameTest.cpp#newcode375 Source/web/tests/WebFrameTest.cpp:375: arguments.minWidth = arguments.maxWidth = WebCore::Length(100, WebCore::Fixed); On 2013/09/05 05:53:22, ...
7 years, 3 months ago (2013-09-05 07:05:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/23742003/78001
7 years, 3 months ago (2013-09-05 07:06:11 UTC) #24
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink_rel&number=4072
7 years, 3 months ago (2013-09-05 08:52:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/23742003/78001
7 years, 3 months ago (2013-09-05 09:41:57 UTC) #26
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 09:58:00 UTC) #27
Message was sent while issue was closed.
Change committed as 157293

Powered by Google App Engine
This is Rietveld 408576698