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

Issue 191933003: [SVG] Missing image loader update on re-insert. (Closed)

Created:
6 years, 9 months ago by f(malita)
Modified:
6 years, 9 months ago
Reviewers:
pdr.
CC:
blink-reviews, krit, fs, ed+blinkwatch_opera.com, gyuyoung.kim_webkit.org, Stephen Chennney, kouhei+svg_chromium.org, pdr., rwlbuis
Visibility:
Public.

Description

[SVG] Missing image loader update on re-insert. After r167729, SVG images are trying to minimize the number of loader updates, only firing them on insertion when the URI changes. But the loader may not even try to fetch the image in some cases (inactive document for example), leaving the SVG image element in an invalid state where it doesn't attempt to update the loader again. The CL expands the SVGImageElement::insertedInto() logic to update the loader in two cases: * dirty URI (current criterion) * missing image resource (which signals a failed/incomplete previous loader fetch) BUG=350282 R=pdr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168802

Patch Set 1 #

Total comments: 2

Patch Set 2 : Patch for landing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -0 lines) Patch
A LayoutTests/svg/custom/image-reinsert.html View 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/image-reinsert-expected.html View 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/svg/SVGImageElement.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
f(malita)
6 years, 9 months ago (2014-03-08 16:32:49 UTC) #1
pdr.
LGTM with a question. https://codereview.chromium.org/191933003/diff/1/Source/core/svg/SVGImageElement.cpp File Source/core/svg/SVGImageElement.cpp (right): https://codereview.chromium.org/191933003/diff/1/Source/core/svg/SVGImageElement.cpp#newcode214 Source/core/svg/SVGImageElement.cpp:214: if (!m_imageLoader.image() || !m_imageLoader.image()->hasImage()) The ...
6 years, 9 months ago (2014-03-09 00:12:40 UTC) #2
f(malita)
Thanks. https://codereview.chromium.org/191933003/diff/1/Source/core/svg/SVGImageElement.cpp File Source/core/svg/SVGImageElement.cpp (right): https://codereview.chromium.org/191933003/diff/1/Source/core/svg/SVGImageElement.cpp#newcode214 Source/core/svg/SVGImageElement.cpp:214: if (!m_imageLoader.image() || !m_imageLoader.image()->hasImage()) On 2014/03/09 00:12:41, pdr ...
6 years, 9 months ago (2014-03-09 01:35:19 UTC) #3
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 9 months ago (2014-03-09 01:37:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmalita@chromium.org/191933003/20001
6 years, 9 months ago (2014-03-09 01:37:17 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-09 02:46:42 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-09 02:46:42 UTC) #7
f(malita)
The CQ bit was checked by fmalita@chromium.org
6 years, 9 months ago (2014-03-09 05:40:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fmalita@chromium.org/191933003/20001
6 years, 9 months ago (2014-03-09 05:40:38 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-09 05:44:35 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-09 05:44:37 UTC) #11
f(malita)
6 years, 9 months ago (2014-03-09 06:01:21 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 manually as r168802 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698