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

Issue 1219493005: Cleanups to viewport-handling and image invalidation in LayoutSVGImage (Closed)

Created:
5 years, 5 months ago by fs
Modified:
5 years, 5 months ago
CC:
blink-reviews, blink-reviews-rendering, krit, eae+blinkwatch, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Cleanups to viewport-handling and image invalidation in LayoutSVGImage Split updateImageViewport into its two (now independent except for the bbox, so ordering matters still) parts, naming them updateBoundingBox and updateImageContainerSize. Stop updating the bbox in imageChanged since updateImageContainerSize will update the container size of the referenced image regardless. Also drop the (explicit) SVGResource::removeClientFromCache call from imageChanged, because markForLayoutAndParentResourceInvalidation is called just after it, and will do what's required already. BUG=505444 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198241

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -31 lines) Patch
M Source/core/layout/svg/LayoutSVGImage.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/layout/svg/LayoutSVGImage.cpp View 3 chunks +21 lines, -27 lines 2 comments Download
M Source/core/svg/SVGImageElement.cpp View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
fs
Tangential to the referenced bug, but found while looking at it...
5 years, 5 months ago (2015-07-01 15:48:37 UTC) #2
f(malita)
https://codereview.chromium.org/1219493005/diff/1/Source/core/layout/svg/LayoutSVGImage.cpp File Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/1219493005/diff/1/Source/core/layout/svg/LayoutSVGImage.cpp#newcode188 Source/core/layout/svg/LayoutSVGImage.cpp:188: updateImageContainerSize(); If we're no longer updating the bbox here, ...
5 years, 5 months ago (2015-07-01 16:39:35 UTC) #3
fs
https://codereview.chromium.org/1219493005/diff/1/Source/core/layout/svg/LayoutSVGImage.cpp File Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/1219493005/diff/1/Source/core/layout/svg/LayoutSVGImage.cpp#newcode188 Source/core/layout/svg/LayoutSVGImage.cpp:188: updateImageContainerSize(); On 2015/07/01 16:39:34, f(malita) wrote: > If we're ...
5 years, 5 months ago (2015-07-01 16:58:13 UTC) #4
f(malita)
On 2015/07/01 at 16:58:13, fs wrote: > https://codereview.chromium.org/1219493005/diff/1/Source/core/layout/svg/LayoutSVGImage.cpp > File Source/core/layout/svg/LayoutSVGImage.cpp (right): > > https://codereview.chromium.org/1219493005/diff/1/Source/core/layout/svg/LayoutSVGImage.cpp#newcode188 ...
5 years, 5 months ago (2015-07-01 17:07:32 UTC) #5
fs
On 2015/07/01 17:07:32, f(malita) wrote: > On 2015/07/01 at 16:58:13, fs wrote: > > > ...
5 years, 5 months ago (2015-07-02 08:47:57 UTC) #6
pdr.
On 2015/07/02 at 08:47:57, fs wrote: > On 2015/07/01 17:07:32, f(malita) wrote: > > On ...
5 years, 5 months ago (2015-07-02 19:13:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1219493005/1
5 years, 5 months ago (2015-07-02 19:13:47 UTC) #9
commit-bot: I haz the power
5 years, 5 months ago (2015-07-02 20:24:28 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198241

Powered by Google App Engine
This is Rietveld 408576698