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

Issue 2278953002: Revert of Fix ImageLoader::m_hasPendingLoadEvent/m_imageComplete in ImageDocument (Closed)

Created:
4 years, 3 months ago by johnme
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews, loading-reviews_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Fix ImageLoader::m_hasPendingLoadEvent/m_imageComplete in ImageDocument (patchset #4 id:60001 of https://codereview.chromium.org/2208073004/ ) Reason for revert: Reverting since http/tests/images/png-partial-load-as-document.html consistently leaks on WebKit Linux Leak and LeakExpectations says "Sheriff is expected to revert culprit CLs instead of suppressing the leaks" https://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=http%2Ftests%2Fimages%2Fpng-partial-load-as-document.html&testType=webkit_tests Original issue's description: > Fix ImageLoader::m_hasPendingLoadEvent/m_imageComplete in ImageDocument > > Case 1: When a image is loaded as a subresource, loading is stared by > ImageResource::fetch() in ImageLoader::doUpdateFromElement(). > Case 2: When a image is loaded as a main document, the start of the loading is > emulated by setImage() in ImageLoader::updateFromElement() and > ImageDocumentParser will do the subsequent loading steps. > > However in Case 2, |m_hasPendingLoadEvent| is set to false > (in setImageWithoutConsideringPendingLoadEvent()), causing |imageStillLoading| > to be false and ensureFallbackContent() to be called in > HTMLImageElement::selectSourceURL(), and thus a box indicating a broken image > is displayed during loading instead of the image displayed progressively. > This is regression since https://codereview.chromium.org/1879793003. > > This CL makes the behavior of Case 1 and 2 consistent, by moving what is done > in Case 1 to setImagePending(), and makes Case 1 and 2 both to call > setImagePending(). > > This CL also adds a layout test to confirm that an image is displayed > progressively when loaded as a main document. > > BUG=632495 > > Committed: https://crrev.com/576c7a048bfc30faf510eeda07f303fa9dd12898 > Cr-Commit-Position: refs/heads/master@{#414008} TBR=japhet@chromium.org,yhirano@chromium.org,hiroshige@chromium.org NOTRY=true NOTREECHECKS=true BUG=632495 Committed: https://crrev.com/8b3f5df1a65187e662fcf2fd5ead1ccb89226f31 Cr-Commit-Position: refs/heads/master@{#414441}

Patch Set 1 #

Messages

Total messages: 16 (9 generated)
johnme
Created Revert of Fix ImageLoader::m_hasPendingLoadEvent/m_imageComplete in ImageDocument
4 years, 3 months ago (2016-08-25 12:32:24 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278953002/1
4 years, 3 months ago (2016-08-25 12:33:17 UTC) #6
hiroshige
On 2016/08/25 12:33:17, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 3 months ago (2016-08-25 13:41:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278953002/1
4 years, 3 months ago (2016-08-25 15:26:16 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-08-25 15:30:40 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/8b3f5df1a65187e662fcf2fd5ead1ccb89226f31 Cr-Commit-Position: refs/heads/master@{#414441}
4 years, 3 months ago (2016-08-25 15:33:01 UTC) #15
haraken
4 years, 3 months ago (2016-08-26 00:53:06 UTC) #16
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698