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

Issue 180973005: Respect SVG fragment identifiers in <img> src attribute (Closed)

Created:
6 years, 9 months ago by Erik Dahlström (inactive)
Modified:
6 years, 6 months ago
Reviewers:
pdr., Stephen Chennney, fs
CC:
blink-reviews, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, Stephen Chennney, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Respect SVG fragment identifiers in <img> src attribute https://bugs.webkit.org/show_bug.cgi?id=129387 When providing an SVG image for a given renderer, check that the URL used to load that image is taken into account in case it featured a fragment identifier, ensuring that the CSS :target pseudo-class is correctly handled for SVG resources. This patch is specific to <img> elements, specific support will also need to be added for various CSS properties that support SVG images. Based on the webkit patch by Antoine Quint <graouts@webkit.org>;. BUG=369513, 156584 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173213

Patch Set 1 #

Patch Set 2 : followup from http://trac.webkit.org/changeset/164983 #

Patch Set 3 : oops, not virtual #

Patch Set 4 : move scrollToFragment call #

Patch Set 5 : fix ref image #

Total comments: 1

Patch Set 6 : remove include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -1 line) Patch
A LayoutTests/svg/css/resources/fragment-identifiers.svg View 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/svg/css/svg-resource-fragment-identifier-img-src.html View 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/svg/css/svg-resource-fragment-identifier-img-src-expected.html View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
M Source/core/html/parser/HTMLSrcsetParserTest.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImageCache.cpp View 2 chunks +9 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImageForContainer.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/svg/graphics/SVGImageForContainer.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Erik Dahlström (inactive)
6 years, 9 months ago (2014-02-27 16:11:11 UTC) #1
krit
On 2014/02/27 16:11:11, Erik Dahlström wrote: As commented on the original bug. I think we ...
6 years, 9 months ago (2014-02-27 16:16:14 UTC) #2
Erik Dahlström (inactive)
On 2014/02/27 16:16:14, krit wrote: > On 2014/02/27 16:11:11, Erik Dahlström wrote: > > As ...
6 years, 9 months ago (2014-02-27 16:23:56 UTC) #3
fs
On 2014/02/27 16:23:56, Erik Dahlström wrote: > On 2014/02/27 16:16:14, krit wrote: > > On ...
6 years, 7 months ago (2014-05-02 15:19:54 UTC) #4
fs
...with a nit/question. https://codereview.chromium.org/180973005/diff/60001/Source/core/svg/graphics/SVGImageForContainer.cpp File Source/core/svg/graphics/SVGImageForContainer.cpp (right): https://codereview.chromium.org/180973005/diff/60001/Source/core/svg/graphics/SVGImageForContainer.cpp#newcode23 Source/core/svg/graphics/SVGImageForContainer.cpp:23: #include "core/frame/FrameView.h" Nit: Not quite sure ...
6 years, 7 months ago (2014-05-02 15:22:30 UTC) #5
Erik Dahlström (inactive)
On 2014/05/02 15:19:54, fs wrote: > On 2014/02/27 16:23:56, Erik Dahlström wrote: > > On ...
6 years, 7 months ago (2014-05-02 15:41:13 UTC) #6
Erik Dahlström (inactive)
The CQ bit was checked by ed@opera.com
6 years, 7 months ago (2014-05-02 15:47:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ed@opera.com/180973005/80001
6 years, 7 months ago (2014-05-02 15:47:26 UTC) #8
commit-bot: I haz the power
6 years, 7 months ago (2014-05-02 18:45:26 UTC) #9
Message was sent while issue was closed.
Change committed as 173213

Powered by Google App Engine
This is Rietveld 408576698