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

Issue 1907333002: Order bounds update correctly for LayoutSVGShape and LayoutSVGImage (Closed)

Created:
4 years, 8 months ago by fs
Modified:
4 years, 8 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Order bounds update correctly for LayoutSVGShape and LayoutSVGImage Since SVGResourcesCache::clientLayoutChanged can set the m_needsBoundariesUpdate flag, make sure to check it, and act, after that call. This ensures that state is consistent. when layout() return. Also add a comment about the delicate situation in LayoutSVGShape::layout wrt shape vs. bounds update. Additionally rename the local variable used to notify the parent that its bounds needs to be updated to |updateParentBoundaries|. BUG=603956 Committed: https://crrev.com/fe8421b9573ca696e596248811edf0a5d23fc191 Cr-Commit-Position: refs/heads/master@{#389410}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Shuffle clientLayoutChanged instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -23 lines) Patch
M third_party/WebKit/Source/core/layout/svg/LayoutSVGContainer.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp View 1 1 chunk +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp View 1 2 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
fs
I noticed this while vacuuming the layout code. I've yet to come up with a ...
4 years, 8 months ago (2016-04-22 18:31:11 UTC) #2
pdr.
Nice catch, I bet there are some subtle bugs fixed by this. Just a couple ...
4 years, 8 months ago (2016-04-22 22:33:33 UTC) #3
fs
https://codereview.chromium.org/1907333002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/1907333002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode91 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:91: // Invalidate all resources of this client if our ...
4 years, 8 months ago (2016-04-22 22:53:07 UTC) #4
fs
On 2016/04/22 at 22:53:07, fs wrote: > https://codereview.chromium.org/1907333002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp > File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): > > https://codereview.chromium.org/1907333002/diff/1/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode91 ...
4 years, 8 months ago (2016-04-23 16:53:16 UTC) #5
pdr.
LGTM
4 years, 8 months ago (2016-04-24 22:38:45 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1907333002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1907333002/20001
4 years, 8 months ago (2016-04-24 22:38:55 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-25 01:37:31 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-25 01:39:37 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/fe8421b9573ca696e596248811edf0a5d23fc191
Cr-Commit-Position: refs/heads/master@{#389410}

Powered by Google App Engine
This is Rietveld 408576698