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

Issue 249353002: Fix srcset selection bug when 'w' and src are present (Closed)

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

Description

Fix srcset selection bug when 'w' and src are present When srcset had 'w' based resources that are all smaller than their display size imposed by 'sizes', src got picked, contrary to expected behavior. This CL fixes that and adds regression tests for that case. BUG=365787 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172458

Patch Set 1 #

Patch Set 2 : Fixed tests #

Patch Set 3 : Fixed expected results #

Patch Set 4 : Really fixed expected results #

Total comments: 1

Patch Set 5 : Added assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M LayoutTests/fast/dom/HTMLImageElement/image-sizes-1x.html View 1 2 chunks +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/HTMLImageElement/image-sizes-1x-expected.txt View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M LayoutTests/fast/hidpi/image-srcset-invalid-inputs-correct-src.html View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLSrcsetParser.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Yoav Weiss
6 years, 8 months ago (2014-04-23 13:51:40 UTC) #1
eseidel
lgtm https://codereview.chromium.org/249353002/diff/50001/Source/core/html/parser/HTMLSrcsetParser.cpp File Source/core/html/parser/HTMLSrcsetParser.cpp (right): https://codereview.chromium.org/249353002/diff/50001/Source/core/html/parser/HTMLSrcsetParser.cpp#newcode168 Source/core/html/parser/HTMLSrcsetParser.cpp:168: --i; And i is never 0 here? can't ...
6 years, 8 months ago (2014-04-23 20:55:27 UTC) #2
Yoav Weiss
On 2014/04/23 20:55:27, eseidel wrote: > lgtm > > https://codereview.chromium.org/249353002/diff/50001/Source/core/html/parser/HTMLSrcsetParser.cpp > File Source/core/html/parser/HTMLSrcsetParser.cpp (right): > ...
6 years, 8 months ago (2014-04-23 21:00:17 UTC) #3
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 8 months ago (2014-04-23 21:28:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/249353002/40005
6 years, 8 months ago (2014-04-23 21:29:04 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 21:57:18 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-23 21:57:19 UTC) #7
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 8 months ago (2014-04-23 22:06:44 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/249353002/40005
6 years, 8 months ago (2014-04-23 22:06:56 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 22:23:16 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-23 22:23:16 UTC) #11
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 8 months ago (2014-04-24 05:06:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/249353002/40005
6 years, 8 months ago (2014-04-24 05:06:57 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 06:16:45 UTC) #14
Message was sent while issue was closed.
Change committed as 172458

Powered by Google App Engine
This is Rietveld 408576698