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

Issue 2817913002: Add connected-paranoia in SVGElement::UpdateRelativeLengthsInformation (Closed)

Created:
3 years, 8 months ago by fs
Modified:
3 years, 8 months ago
Reviewers:
Stephen Chennney, pdr.
CC:
fs, darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, krit, Eric Willigers, fmalita+watch_chromium.org, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add connected-paranoia in SVGElement::UpdateRelativeLengthsInformation When (animated attribute) mutations are trigger by a 'id' change (via an IdTargetObserver), relative lengths state may be revalidated while the element are in the process of being removed from the document, but has not yet been marked as such. If relative length state is updated in such a case, the |elements_with_relative_lengths_| set could end up in an inconsistent state. Instead of only relying on the connected bit of the current element, also check all the ancestors to make sure. BUG=705200 Review-Url: https://codereview.chromium.org/2817913002 Cr-Commit-Position: refs/heads/master@{#464408} Committed: https://chromium.googlesource.com/chromium/src/+/9fb4d73eca12f0a247bf8b2c36e8d347f272354a

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/svg/animations/target-move-relative-length-invalidation-crash.html View 1 chunk +30 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/animations/target-move-relative-length-invalidation-crash-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 chunk +9 lines, -2 lines 1 comment Download

Messages

Total messages: 12 (8 generated)
fs
https://codereview.chromium.org/2817913002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp File third_party/WebKit/Source/core/svg/SVGElement.cpp (right): https://codereview.chromium.org/2817913002/diff/1/third_party/WebKit/Source/core/svg/SVGElement.cpp#newcode538 third_party/WebKit/Source/core/svg/SVGElement.cpp:538: // Through an unfortunate chain of events, we can ...
3 years, 8 months ago (2017-04-13 13:11:11 UTC) #4
Stephen Chennney
In effect we're doubling the time spent walking the tree through ancestors. That's probably not ...
3 years, 8 months ago (2017-04-13 14:45:42 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/2817913002/1
3 years, 8 months ago (2017-04-13 14:48:41 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 15:19:11 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9fb4d73eca12f0a247bf8b2c36e8...

Powered by Google App Engine
This is Rietveld 408576698