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

Issue 293423002: Refactor srcset parser to align it with spec changes (Closed)

Created:
6 years, 7 months ago by Yoav Weiss
Modified:
6 years, 6 months ago
Reviewers:
eseidel
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org, simonp, alancutter (OOO until 2018)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Refactor srcset parser to align it with spec changes The srcset parser spec (http://picture.responsiveimages.org/#parse-srcset-attr ) have recently changed to have better future compatibility. It will enable us to add future descriptors of the form "descriptor(value, anotherValue)". It will also ease the envisioned addition of the 'h' descriptor. BUG=376726 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175080

Patch Set 1 #

Patch Set 2 : Resolved open spec questions #

Patch Set 3 : Added w and h tests #

Patch Set 4 : Fixed layout test #

Patch Set 5 : Added tests and fixed a bug #

Total comments: 12

Patch Set 6 : Review comments #

Total comments: 4

Patch Set 7 : More review nits #

Patch Set 8 : Fix build issue #

Patch Set 9 : Fixed ASSERT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -130 lines) Patch
M LayoutTests/fast/dom/HTMLImageElement/image-picture-1x.html View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/fast/hidpi/image-srcset-invalid-descriptor.html View 1 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/hidpi/image-srcset-invalid-descriptor-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
D LayoutTests/fast/hidpi/image-srcset-invalid-inputs-correct-src.html View 1 1 chunk +0 lines, -21 lines 0 comments Download
D LayoutTests/fast/hidpi/image-srcset-invalid-inputs-correct-src-expected.txt View 1 1 chunk +0 lines, -6 lines 0 comments Download
M Source/core/html/HTMLImageElement.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/parser/HTMLParserIdioms.h View 1 2 3 4 5 6 3 chunks +8 lines, -8 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParser.h View 1 2 3 4 5 6 7 8 4 chunks +30 lines, -17 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParser.cpp View 1 2 3 4 5 6 8 chunks +183 lines, -63 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParserTest.cpp View 1 2 3 4 5 6 4 chunks +24 lines, -8 lines 0 comments Download
M Source/platform/ParsingUtilities.h View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Yoav Weiss
6 years, 7 months ago (2014-05-25 07:53:55 UTC) #1
Yoav Weiss
Resolved the remaining spec questions, and added some tests, following zcorpan's advice. Now it's ready ...
6 years, 7 months ago (2014-05-26 10:48:28 UTC) #2
eseidel
Overall this looks OK. I think I need to read this again when I'm done ...
6 years, 6 months ago (2014-05-28 22:24:58 UTC) #3
Yoav Weiss
https://codereview.chromium.org/293423002/diff/80001/Source/core/html/parser/HTMLParserIdioms.h File Source/core/html/parser/HTMLParserIdioms.h (right): https://codereview.chromium.org/293423002/diff/80001/Source/core/html/parser/HTMLParserIdioms.h#newcode85 Source/core/html/parser/HTMLParserIdioms.h:85: inline bool isComma(CharType character) On 2014/05/28 22:24:59, eseidel wrote: ...
6 years, 6 months ago (2014-05-29 05:17:39 UTC) #4
Yoav Weiss
On 2014/05/29 05:17:39, Yoav Weiss wrote: > https://codereview.chromium.org/293423002/diff/80001/Source/core/html/parser/HTMLParserIdioms.h > File Source/core/html/parser/HTMLParserIdioms.h (right): > > https://codereview.chromium.org/293423002/diff/80001/Source/core/html/parser/HTMLParserIdioms.h#newcode85 ...
6 years, 6 months ago (2014-05-29 06:21:31 UTC) #5
eseidel
lgtm I think this is OK. It's a big change to digest. Please see nits ...
6 years, 6 months ago (2014-05-29 06:59:53 UTC) #6
Yoav Weiss
On 2014/05/29 06:59:53, eseidel wrote: > lgtm > > I think this is OK. It's ...
6 years, 6 months ago (2014-05-29 08:37:54 UTC) #7
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 6 months ago (2014-05-29 09:30:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/293423002/120001
6 years, 6 months ago (2014-05-29 09:31:13 UTC) #9
Yoav Weiss
The CQ bit was unchecked by yoav@yoav.ws
6 years, 6 months ago (2014-05-29 09:51:01 UTC) #10
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 6 months ago (2014-05-29 10:41:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/293423002/140001
6 years, 6 months ago (2014-05-29 10:42:39 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-05-29 11:03:24 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 11:28:05 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/10148)
6 years, 6 months ago (2014-05-29 11:28:06 UTC) #15
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 6 months ago (2014-05-29 13:22:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/293423002/160001
6 years, 6 months ago (2014-05-29 13:23:05 UTC) #17
Yoav Weiss
The CQ bit was unchecked by yoav@yoav.ws
6 years, 6 months ago (2014-05-29 19:14:32 UTC) #18
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 6 months ago (2014-05-29 19:14:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/293423002/160001
6 years, 6 months ago (2014-05-29 19:16:26 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 00:39:24 UTC) #21
Message was sent while issue was closed.
Change committed as 175080

Powered by Google App Engine
This is Rietveld 408576698