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

Issue 265763010: Add preloader support for picture based source selection (Closed)

Created:
6 years, 7 months ago by Yoav Weiss
Modified:
6 years, 7 months ago
Reviewers:
tonyg, eseidel
CC:
blink-reviews, arv+blink, blink-reviews-html_chromium.org, dglazkov+blink, adamk+blink_chromium.org, watchdog-blink-watchlist_google.com, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add preloader support for picture based source selection This CL adds preloader support to the source selection algorithm used by HTMLImageElement when it has a picture parent. BUG=368830 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174711

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Added tests #

Patch Set 4 : Added tests and rebased #

Patch Set 5 : clang build issue #

Patch Set 6 : Added nested element tests #

Total comments: 1

Patch Set 7 : Fixed nesting issues #

Total comments: 1

Patch Set 8 : Fix algo issue with self closing tags #

Total comments: 2

Patch Set 9 : Removed parent tracking stack #

Patch Set 10 : Modified fixmes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -97 lines) Patch
A LayoutTests/http/tests/loading/preload-picture-invalid.html View 1 2 3 4 5 6 7 8 1 chunk +85 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/loading/preload-picture-invalid-expected.txt View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -25 lines 0 comments Download
A LayoutTests/http/tests/loading/preload-picture-nested.html View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/loading/preload-picture-nested-expected.txt View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -21 lines 0 comments Download
A LayoutTests/http/tests/loading/preload-picture-sizes.html View 1 2 3 4 5 6 7 8 1 chunk +86 lines, -0 lines 0 comments Download
A LayoutTests/http/tests/loading/preload-picture-sizes-2x.html View 1 2 3 4 5 6 7 8 1 chunk +82 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/loading/preload-picture-sizes-2x-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/http/tests/loading/preload-picture-sizes-expected.txt View 1 2 3 4 5 6 7 1 chunk +13 lines, -5 lines 0 comments Download
A LayoutTests/http/tests/loading/resources/picture-preload-helper.js View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/parser/HTMLPreloadScanner.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +116 lines, -45 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Yoav Weiss
Since the normal image loading is waiting for https://codereview.chromium.org/200923002 to land, I started out by ...
6 years, 7 months ago (2014-05-09 07:23:51 UTC) #1
eseidel
https://codereview.chromium.org/265763010/diff/100001/Source/core/html/parser/HTMLPreloadScanner.h File Source/core/html/parser/HTMLPreloadScanner.h (right): https://codereview.chromium.org/265763010/diff/100001/Source/core/html/parser/HTMLPreloadScanner.h#newcode80 Source/core/html/parser/HTMLPreloadScanner.h:80: , pictureSourceURLStack(pictureSourceURLStack) Why do these need to be stored ...
6 years, 7 months ago (2014-05-09 07:30:36 UTC) #2
Yoav Weiss
On 2014/05/09 07:30:36, eseidel wrote: > https://codereview.chromium.org/265763010/diff/100001/Source/core/html/parser/HTMLPreloadScanner.h > File Source/core/html/parser/HTMLPreloadScanner.h (right): > > https://codereview.chromium.org/265763010/diff/100001/Source/core/html/parser/HTMLPreloadScanner.h#newcode80 > ...
6 years, 7 months ago (2014-05-09 07:37:45 UTC) #3
eseidel
For context: Checkpoints occur at token boundaries. We only ever roll-back to checkpoints which occurred ...
6 years, 7 months ago (2014-05-09 08:54:07 UTC) #4
Yoav Weiss
On 2014/05/09 08:54:07, eseidel wrote: > For context: Checkpoints occur at token boundaries. We only ...
6 years, 7 months ago (2014-05-09 09:17:52 UTC) #5
eseidel
If you ignore checkpoints (which sounds fine to me), I would be sure to just ...
6 years, 7 months ago (2014-05-09 09:28:27 UTC) #6
eseidel
Actually, that won't make you care about checkpoints (since you begin and end in the ...
6 years, 7 months ago (2014-05-09 09:30:22 UTC) #7
Yoav Weiss
On 2014/05/09 09:28:27, eseidel wrote: > If you ignore checkpoints (which sounds fine to me), ...
6 years, 7 months ago (2014-05-10 07:12:16 UTC) #8
Yoav Weiss
On 2014/05/10 07:12:16, Yoav Weiss wrote: > On 2014/05/09 09:28:27, eseidel wrote: > > If ...
6 years, 7 months ago (2014-05-12 13:49:25 UTC) #9
eseidel
https://codereview.chromium.org/265763010/diff/120001/Source/core/html/parser/HTMLPreloadScanner.h File Source/core/html/parser/HTMLPreloadScanner.h (right): https://codereview.chromium.org/265763010/diff/120001/Source/core/html/parser/HTMLPreloadScanner.h#newcode91 Source/core/html/parser/HTMLPreloadScanner.h:91: const StringImpl* tagImpl; Why not just String?
6 years, 7 months ago (2014-05-15 06:29:13 UTC) #10
Yoav Weiss
On 2014/05/15 06:29:13, eseidel wrote: > https://codereview.chromium.org/265763010/diff/120001/Source/core/html/parser/HTMLPreloadScanner.h > File Source/core/html/parser/HTMLPreloadScanner.h (right): > > https://codereview.chromium.org/265763010/diff/120001/Source/core/html/parser/HTMLPreloadScanner.h#newcode91 > ...
6 years, 7 months ago (2014-05-15 07:40:51 UTC) #11
Yoav Weiss
On 2014/05/15 07:40:51, Yoav Weiss wrote: > On 2014/05/15 06:29:13, eseidel wrote: > > > ...
6 years, 7 months ago (2014-05-20 07:34:49 UTC) #12
Yoav Weiss
Fixed an algorithm issue with self closing tokens pointed out by Simon Pieters.
6 years, 7 months ago (2014-05-20 15:41:52 UTC) #13
eseidel
I'm still not quite sure what the stack is for, perhaps you can explain to ...
6 years, 7 months ago (2014-05-21 22:44:18 UTC) #14
eseidel
Discussed with Yoav via #blink and recommended that he ditch the stack complexity and just ...
6 years, 7 months ago (2014-05-21 23:15:05 UTC) #15
Yoav Weiss
On 2014/05/21 23:15:05, eseidel wrote: > Discussed with Yoav via #blink and recommended that he ...
6 years, 7 months ago (2014-05-22 12:24:35 UTC) #16
eseidel
lgtm
6 years, 7 months ago (2014-05-23 20:39:06 UTC) #17
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 7 months ago (2014-05-23 20:43:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/265763010/180001
6 years, 7 months ago (2014-05-23 20:44:22 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 21:11:41 UTC) #20
Message was sent while issue was closed.
Change committed as 174711

Powered by Google App Engine
This is Rietveld 408576698