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 674923004: Avoid srcset resource download when higher density resource is in cache. (Closed)

Created:
6 years, 2 months ago by Yoav Weiss
Modified:
6 years, 2 months ago
Reviewers:
Mike West
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Avoid srcset resource download when higher density resource is in cache. When resizing the viewport, srcset re-evaluates its resources, and downloads a new one if needed. However, since srcset is by definition not related to art-direction, there's no need to download a new resource is there is a higher density one that's already in the memory cache. This CL avoids that unneccessary download. BUG=425701 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184335

Patch Set 1 #

Patch Set 2 : remove unrelated changes #

Patch Set 3 : Rebase #

Patch Set 4 : Fixed layout tests and added some. #

Total comments: 1

Messages

Total messages: 11 (2 generated)
Yoav Weiss
6 years, 2 months ago (2014-10-23 22:00:36 UTC) #2
Mike West
Bot failures look relevant. Happy to take a look at the patch once the bots ...
6 years, 2 months ago (2014-10-24 05:16:39 UTC) #3
Yoav Weiss
On 2014/10/24 05:16:39, Mike West wrote: > Bot failures look relevant. Happy to take a ...
6 years, 2 months ago (2014-10-24 06:08:53 UTC) #4
Mike West
LGTM, thanks. https://codereview.chromium.org/674923004/diff/60001/Source/core/html/parser/HTMLSrcsetParser.cpp File Source/core/html/parser/HTMLSrcsetParser.cpp (right): https://codereview.chromium.org/674923004/diff/60001/Source/core/html/parser/HTMLSrcsetParser.cpp#newcode390 Source/core/html/parser/HTMLSrcsetParser.cpp:390: ASSERT(winner < imageCandidates.size()); && >= 0?
6 years, 2 months ago (2014-10-24 08:03:13 UTC) #5
Yoav Weiss
On 2014/10/24 08:03:13, Mike West wrote: > LGTM, thanks. > > https://codereview.chromium.org/674923004/diff/60001/Source/core/html/parser/HTMLSrcsetParser.cpp > File Source/core/html/parser/HTMLSrcsetParser.cpp ...
6 years, 2 months ago (2014-10-24 08:08:00 UTC) #6
Mike West
On 2014/10/24 08:08:00, Yoav Weiss wrote: > On 2014/10/24 08:03:13, Mike West wrote: > > ...
6 years, 2 months ago (2014-10-24 08:28:48 UTC) #7
Yoav Weiss
On 2014/10/24 08:28:48, Mike West wrote: > On 2014/10/24 08:08:00, Yoav Weiss wrote: > > ...
6 years, 2 months ago (2014-10-24 08:30:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/674923004/60001
6 years, 2 months ago (2014-10-24 08:30:55 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 08:34:31 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 184335

Powered by Google App Engine
This is Rietveld 408576698