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

Issue 327463002: SVG: no need to call |clearAnimatedType| at SVGAnimate{,Motion}Element dtor. (Closed)

Created:
6 years, 6 months ago by kouhei (in TOK)
Modified:
6 years, 6 months ago
Reviewers:
pdr., rwlbuis
CC:
blink-reviews, ed+blinkwatch_opera.com, shans, rjwright, Mike Lawther (Google), blink-reviews-animation_chromium.org, fs, kouhei+svg_chromium.org, dstockwell, Timothy Loh, krit, f(malita), gyuyoung.kim_webkit.org, darktears, Stephen Chennney, Steve Block, pdr., Eric Willigers, oilpan-reviews
Visibility:
Public.

Description

SVG: no need to call |clearAnimatedType| at SVGAnimate{,Motion}Element dtor. The deleted code was used to ensure the ASSERT(!isAnimating()) on ~SVGAnimatedProperty. The assert checks that animation is always stopped when the element is dead. However, the assert is removed now, so we don't need to ensure it. The deleted code |clearAnimatedType| in ~SVGAnimateElement was triggered when a document was unloaded and its <animate> element was destructed before its target svg element. This stopped animation on the target svg elements before the ASSERT run. BUG=370834 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175989

Patch Set 1 #

Patch Set 2 : add LayoutTest #

Total comments: 4

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -10 lines) Patch
A LayoutTests/svg/animations/animate-teardown.html View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/svg/animations/animate-teardown-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGAnimateElement.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/core/svg/SVGAnimateMotionElement.cpp View 1 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
kouhei (in TOK)
PTAL. oilpan-reviews: This removes the last FIXME comments from SVG Node hierarchy.
6 years, 6 months ago (2014-06-09 06:51:20 UTC) #1
haraken
On 2014/06/09 06:51:20, kouhei wrote: > PTAL. > > oilpan-reviews: This removes the last FIXME ...
6 years, 6 months ago (2014-06-09 07:10:23 UTC) #2
kouhei (in TOK)
On 2014/06/09 07:10:23, haraken wrote: > On 2014/06/09 06:51:20, kouhei wrote: > > PTAL. > ...
6 years, 6 months ago (2014-06-09 10:03:51 UTC) #3
kouhei (in TOK)
> haraken@ was worrying that <use> tree triggering removeChildren() may not always > invoke removedFrom. ...
6 years, 6 months ago (2014-06-09 10:04:59 UTC) #4
rwlbuis
On 2014/06/09 10:04:59, kouhei wrote: > > haraken@ was worrying that <use> tree triggering removeChildren() ...
6 years, 6 months ago (2014-06-09 16:53:58 UTC) #5
kouhei (in TOK)
Sorry, the patch is same, but the reasoning was wrong. I updated the CL description. ...
6 years, 6 months ago (2014-06-11 03:35:42 UTC) #6
rwlbuis
LGTM with nits. https://codereview.chromium.org/327463002/diff/20001/LayoutTests/svg/animations/animate-teardown.html File LayoutTests/svg/animations/animate-teardown.html (right): https://codereview.chromium.org/327463002/diff/20001/LayoutTests/svg/animations/animate-teardown.html#newcode1 LayoutTests/svg/animations/animate-teardown.html:1: <svg> Usually we have a more ...
6 years, 6 months ago (2014-06-11 19:54:22 UTC) #7
kouhei (in TOK)
Thanks for reviewing! https://codereview.chromium.org/327463002/diff/20001/LayoutTests/svg/animations/animate-teardown.html File LayoutTests/svg/animations/animate-teardown.html (right): https://codereview.chromium.org/327463002/diff/20001/LayoutTests/svg/animations/animate-teardown.html#newcode1 LayoutTests/svg/animations/animate-teardown.html:1: <svg> On 2014/06/11 19:54:21, rwlbuis wrote: ...
6 years, 6 months ago (2014-06-12 01:24:53 UTC) #8
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 6 months ago (2014-06-12 01:24:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/327463002/40001
6 years, 6 months ago (2014-06-12 01:25:39 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 05:36:20 UTC) #11
Message was sent while issue was closed.
Change committed as 175989

Powered by Google App Engine
This is Rietveld 408576698