Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(136)

Issue 1104103002: Add <meta viewport> support to the preloader (Closed)

Created:
5 years ago by Yoav Weiss
Modified:
5 years ago
CC:
blink-reviews, kenneth.christiansen, blink-reviews-css, blink-reviews-html_chromium.org, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add <meta viewport> support to the preloader This CL adds <meta viewport> support to the HTMLPreloadScanner, avoiding the risk of double download or downloads based on the wrong viewport dimensions when <meta viewport> is present in the page. BUG=471249 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194838

Patch Set 1 #

Patch Set 2 : Fix a crash #

Total comments: 1

Patch Set 3 : added CachedDocumentParameters #

Patch Set 4 : rebase + added tests #

Total comments: 1

Patch Set 5 : Removed extra constructor #

Total comments: 1

Patch Set 6 : moved CachedDocumentParameters constructor to private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -85 lines) Patch
M LayoutTests/fast/dom/HTMLImageElement/image-sizes-meta-viewport.html View 2 chunks +8 lines, -54 lines 0 comments Download
M Source/core/css/MediaValues.h View 2 chunks +2 lines, -5 lines 0 comments Download
M Source/core/css/MediaValuesCached.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/MediaValuesCached.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMetaElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMetaElement-in.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 2 3 6 chunks +11 lines, -12 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.h View 1 2 3 4 5 4 chunks +21 lines, -5 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.cpp View 1 2 3 4 7 chunks +40 lines, -5 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScannerTest.cpp View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (4 generated)
Yoav Weiss
Hey Mike! I know you're traveling but just in case you're jet lagged and bored, ...
5 years ago (2015-04-28 06:50:12 UTC) #2
kouhei (in TOK)
https://codereview.chromium.org/1104103002/diff/20001/Source/core/html/parser/HTMLDocumentParser.cpp File Source/core/html/parser/HTMLDocumentParser.cpp (right): https://codereview.chromium.org/1104103002/diff/20001/Source/core/html/parser/HTMLDocumentParser.cpp#newcode678 Source/core/html/parser/HTMLDocumentParser.cpp:678: document()->settings() && document()->settings()->viewportMetaZeroValuesQuirk())); Can these 3 parameters be made ...
5 years ago (2015-04-30 12:45:39 UTC) #4
Yoav Weiss
On 2015/04/30 12:45:39, kouhei wrote: > https://codereview.chromium.org/1104103002/diff/20001/Source/core/html/parser/HTMLDocumentParser.cpp > File Source/core/html/parser/HTMLDocumentParser.cpp (right): > > https://codereview.chromium.org/1104103002/diff/20001/Source/core/html/parser/HTMLDocumentParser.cpp#newcode678 > ...
5 years ago (2015-04-30 12:49:40 UTC) #5
blink-reviews
I'm taking a look at it right now :) Feel free to loop me in ...
5 years ago (2015-04-30 12:51:12 UTC) #6
Nate Chapin
https://codereview.chromium.org/1104103002/diff/60001/Source/core/html/parser/HTMLPreloadScanner.h File Source/core/html/parser/HTMLPreloadScanner.h (right): https://codereview.chromium.org/1104103002/diff/60001/Source/core/html/parser/HTMLPreloadScanner.h#newcode59 Source/core/html/parser/HTMLPreloadScanner.h:59: CachedDocumentParameters(Document*, PassRefPtr<MediaValues>); Can we have two create() methods, but ...
5 years ago (2015-04-30 20:19:04 UTC) #7
Yoav Weiss
On 2015/04/30 20:19:04, Nate Chapin wrote: > https://codereview.chromium.org/1104103002/diff/60001/Source/core/html/parser/HTMLPreloadScanner.h > File Source/core/html/parser/HTMLPreloadScanner.h (right): > > https://codereview.chromium.org/1104103002/diff/60001/Source/core/html/parser/HTMLPreloadScanner.h#newcode59 ...
5 years ago (2015-04-30 21:08:45 UTC) #8
Nate Chapin
lgtm if kouhei is happy. https://codereview.chromium.org/1104103002/diff/80001/Source/core/html/parser/HTMLPreloadScanner.h File Source/core/html/parser/HTMLPreloadScanner.h (right): https://codereview.chromium.org/1104103002/diff/80001/Source/core/html/parser/HTMLPreloadScanner.h#newcode53 Source/core/html/parser/HTMLPreloadScanner.h:53: CachedDocumentParameters(Document*, PassRefPtr<MediaValues>); We should ...
5 years ago (2015-05-01 22:10:28 UTC) #9
Yoav Weiss
On 2015/05/01 22:10:28, Nate Chapin wrote: > lgtm if kouhei is happy. kouhei - are ...
5 years ago (2015-05-01 22:18:30 UTC) #10
kouhei (in TOK)
lgtm. Thanks!
5 years ago (2015-05-02 01:26:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1104103002/100001
5 years ago (2015-05-02 04:58:48 UTC) #14
commit-bot: I haz the power
5 years ago (2015-05-02 05:02:44 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194838

Powered by Google App Engine
This is Rietveld 408576698