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

Issue 1879793003: Remove DeferredByClient (Closed)

Created:
4 years, 8 months ago by Nate Chapin
Modified:
4 years, 7 months ago
Reviewers:
hiroshige, yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-html_chromium.org, Yoav Weiss, loading-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@Resource_load
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove DeferredByClient It's used for font loads and image document loads. Move ImageDocuments to a loading system akin to precaching, where ImageLoader just creates a dummy ImageReosurce and lets ImageDocument pipe the bytes from the main resource into the ImageResource. Font loads can be deferred by checking the Resource::Type directly in ResourceFetcher::resourceNeedsLoad. BUG= Committed: https://crrev.com/2aefbfcdd9cc5fe1a533db44b220e6418519df46 Cr-Commit-Position: refs/heads/master@{#390146}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Address yhirano's comments #

Total comments: 4

Patch Set 5 : Address yhirano's comments #

Total comments: 2

Patch Set 6 : Add UpdateForcedReload check for the m_loadingImageDocument special case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -22 lines) Patch
M third_party/WebKit/Source/core/fetch/FetchRequest.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/FontResource.cpp View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ImageLoader.cpp View 1 2 3 4 5 4 chunks +12 lines, -15 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
Nate Chapin
What do you think of this? I think we should either use DeferredByClient more, or ...
4 years, 8 months ago (2016-04-19 19:41:12 UTC) #2
yhirano
https://codereview.chromium.org/1879793003/diff/40001/third_party/WebKit/Source/core/loader/ImageLoader.cpp File third_party/WebKit/Source/core/loader/ImageLoader.cpp (left): https://codereview.chromium.org/1879793003/diff/40001/third_party/WebKit/Source/core/loader/ImageLoader.cpp#oldcode154 third_party/WebKit/Source/core/loader/ImageLoader.cpp:154: , m_loadingImageDocument(false) Can you tell me why you deleted ...
4 years, 8 months ago (2016-04-20 08:42:42 UTC) #3
hiroshige
This CL moves a part of delayed loading control from FetchRequest::DeferOption to ResourceFetcher::resourceNeedsLoad(). Are you ...
4 years, 8 months ago (2016-04-21 07:52:50 UTC) #4
Nate Chapin
On 2016/04/21 07:52:50, hiroshige wrote: > This CL moves a part of delayed loading control ...
4 years, 8 months ago (2016-04-21 18:49:33 UTC) #5
Nate Chapin
https://codereview.chromium.org/1879793003/diff/40001/third_party/WebKit/Source/core/loader/ImageLoader.cpp File third_party/WebKit/Source/core/loader/ImageLoader.cpp (left): https://codereview.chromium.org/1879793003/diff/40001/third_party/WebKit/Source/core/loader/ImageLoader.cpp#oldcode154 third_party/WebKit/Source/core/loader/ImageLoader.cpp:154: , m_loadingImageDocument(false) On 2016/04/20 08:42:41, yhirano wrote: > Can ...
4 years, 8 months ago (2016-04-21 18:52:46 UTC) #6
yhirano
https://codereview.chromium.org/1879793003/diff/60001/third_party/WebKit/Source/core/loader/ImageLoader.cpp File third_party/WebKit/Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/1879793003/diff/60001/third_party/WebKit/Source/core/loader/ImageLoader.cpp#newcode42 third_party/WebKit/Source/core/loader/ImageLoader.cpp:42: #include "core/html/ImageDocument.h" Do we need to include this header? ...
4 years, 8 months ago (2016-04-22 04:12:13 UTC) #7
Nate Chapin
https://codereview.chromium.org/1879793003/diff/60001/third_party/WebKit/Source/core/loader/ImageLoader.cpp File third_party/WebKit/Source/core/loader/ImageLoader.cpp (right): https://codereview.chromium.org/1879793003/diff/60001/third_party/WebKit/Source/core/loader/ImageLoader.cpp#newcode42 third_party/WebKit/Source/core/loader/ImageLoader.cpp:42: #include "core/html/ImageDocument.h" On 2016/04/22 04:12:13, yhirano wrote: > Do ...
4 years, 8 months ago (2016-04-25 22:13:03 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879793003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879793003/80001
4 years, 8 months ago (2016-04-25 22:13:53 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-26 00:35:25 UTC) #12
yhirano
lgtm
4 years, 8 months ago (2016-04-26 11:23:28 UTC) #13
hiroshige
> resourceNeedsLoad() should now be the only place where we have logic related to > ...
4 years, 8 months ago (2016-04-26 12:22:12 UTC) #14
Nate Chapin
https://codereview.chromium.org/1879793003/diff/80001/third_party/WebKit/Source/core/loader/ImageLoader.cpp File third_party/WebKit/Source/core/loader/ImageLoader.cpp (left): https://codereview.chromium.org/1879793003/diff/80001/third_party/WebKit/Source/core/loader/ImageLoader.cpp#oldcode287 third_party/WebKit/Source/core/loader/ImageLoader.cpp:287: m_loadingImageDocument = false; On 2016/04/26 12:22:12, hiroshige wrote: > ...
4 years, 7 months ago (2016-04-26 23:27:40 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879793003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879793003/100001
4 years, 7 months ago (2016-04-26 23:28:00 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-27 00:52:06 UTC) #20
hiroshige
lgtm
4 years, 7 months ago (2016-04-27 04:19:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879793003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879793003/100001
4 years, 7 months ago (2016-04-27 19:08:50 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-04-27 19:13:49 UTC) #26
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:11:51 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/2aefbfcdd9cc5fe1a533db44b220e6418519df46
Cr-Commit-Position: refs/heads/master@{#390146}

Powered by Google App Engine
This is Rietveld 408576698