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 233213003: Extend srcset's syntax to include 'w' descriptors (Closed)

Created:
6 years, 8 months ago by Yoav Weiss
Modified:
6 years, 8 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Extend srcset's syntax to include 'w' descriptors This CL extends srcset syntax to match the picture specification. It also adds unit tests to the srcset parser. BUG=357386 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171307

Patch Set 1 #

Patch Set 2 : Removed fixed fixme comments #

Patch Set 3 : Removed division by zero #

Total comments: 4

Patch Set 4 : Fixed nits and modified multiple descriptor layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -64 lines) Patch
A + LayoutTests/fast/hidpi/image-srcset-density-and-width-descriptors.html View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A LayoutTests/fast/hidpi/image-srcset-density-and-width-descriptors-expected.txt View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
D LayoutTests/fast/hidpi/image-srcset-viewport-modifiers.html View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
D LayoutTests/fast/hidpi/image-srcset-viewport-modifiers-expected.txt View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M Source/core/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLImageElement.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParser.h View 1 2 3 4 chunks +34 lines, -6 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParser.cpp View 1 9 chunks +43 lines, -23 lines 0 comments Download
A Source/core/html/parser/HTMLSrcsetParserTest.cpp View 1 2 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Yoav Weiss
This CL implements the srcset part of https://code.google.com/p/chromium/issues/detail?id=357586
6 years, 8 months ago (2014-04-10 14:16:34 UTC) #1
eseidel
https://codereview.chromium.org/233213003/diff/40001/Source/core/html/parser/HTMLPreloadScanner.cpp File Source/core/html/parser/HTMLPreloadScanner.cpp (left): https://codereview.chromium.org/233213003/diff/40001/Source/core/html/parser/HTMLPreloadScanner.cpp#oldcode179 Source/core/html/parser/HTMLPreloadScanner.cpp:179: } else if (RuntimeEnabledFeatures::srcsetEnabled() Is srcset disabled by default? ...
6 years, 8 months ago (2014-04-10 16:42:19 UTC) #2
eseidel
Assuming this does not affect shipping APIs, lgtm.
6 years, 8 months ago (2014-04-10 16:49:29 UTC) #3
Yoav Weiss
On 2014/04/10 16:42:19, eseidel wrote: > https://codereview.chromium.org/233213003/diff/40001/Source/core/html/parser/HTMLPreloadScanner.cpp > File Source/core/html/parser/HTMLPreloadScanner.cpp (left): > > https://codereview.chromium.org/233213003/diff/40001/Source/core/html/parser/HTMLPreloadScanner.cpp#oldcode179 > ...
6 years, 8 months ago (2014-04-10 17:15:46 UTC) #4
Yoav Weiss
On 2014/04/10 16:49:29, eseidel wrote: > Assuming this does not affect shipping APIs, lgtm. This ...
6 years, 8 months ago (2014-04-10 17:18:52 UTC) #5
eseidel
It's best if we enable new features all in one go. Otherwise we might end ...
6 years, 8 months ago (2014-04-10 17:24:22 UTC) #6
Yoav Weiss
On 2014/04/10 17:24:22, eseidel wrote: > It's best if we enable new features all in ...
6 years, 8 months ago (2014-04-10 18:47:45 UTC) #7
eseidel
See documentation at the top of the file: http://blink.lc/blink/tree/Source/platform/RuntimeEnabledFeatures.in Feel free to put this behind ...
6 years, 8 months ago (2014-04-10 20:32:16 UTC) #8
Yoav Weiss
On 2014/04/10 20:32:16, eseidel wrote: > See documentation at the top of the file: > ...
6 years, 8 months ago (2014-04-10 21:06:49 UTC) #9
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 8 months ago (2014-04-10 21:24:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/233213003/60001
6 years, 8 months ago (2014-04-10 21:25:03 UTC) #11
commit-bot: I haz the power
Change committed as 171307
6 years, 8 months ago (2014-04-10 21:56:48 UTC) #12
stevenjb
6 years, 8 months ago (2014-04-10 23:12:53 UTC) #13
Message was sent while issue was closed.
I think this has the wrong issue number...

Powered by Google App Engine
This is Rietveld 408576698