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

Issue 2689713003: Don't clear 'web animations dirty' flag if we have no rare data (Closed)

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

Description

Don't clear 'web animations dirty' flag if we have no rare data If an SVGElement has an instantiated ElementAnimations object and animation time has progressed, but no actual animation has been applied (and hence no SVGElementRareData has been created), we don't need to clear the dirty bit in the rare data. The initial trigger for this seems to be the Element.computedName implementation for a detached node, which tries to compute style in this case, triggering a DCHECK in Node::containingTreeScope when doing so. BUG=686424 Review-Url: https://codereview.chromium.org/2689713003 Cr-Commit-Position: refs/heads/master@{#450689} Committed: https://chromium.googlesource.com/chromium/src/+/49bd1e63cb077e88db6d89f5a3db801dec55e743

Patch Set 1 #

Patch Set 2 : Don't compute style for node that isn't in the document #

Total comments: 3

Patch Set 3 : Use testharness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -7 lines) Patch
A third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 1 chunk +10 lines, -7 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
fs
https://codereview.chromium.org/2689713003/diff/20001/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html File third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html (right): https://codereview.chromium.org/2689713003/diff/20001/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html#newcode18 third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html:18: element.computedName; This would trigger the DCHECK in Node::containingTreeScope, fixed ...
3 years, 10 months ago (2017-02-13 19:16:07 UTC) #11
dmazzoni
Changes lgtm, but I can't think of a way to resolve a style from a ...
3 years, 10 months ago (2017-02-13 19:24:54 UTC) #12
fs
On 2017/02/13 at 19:24:54, dmazzoni wrote: > Changes lgtm, but I can't think of a ...
3 years, 10 months ago (2017-02-13 20:13:30 UTC) #13
alancutter (OOO until 2018)
lgtm with nits. testharness.js is preferred. https://codereview.chromium.org/2689713003/diff/20001/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html File third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html (right): https://codereview.chromium.org/2689713003/diff/20001/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html#newcode21 third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html:21: ; I wonder ...
3 years, 10 months ago (2017-02-15 04:11:45 UTC) #14
fs
On 2017/02/15 at 04:11:45, alancutter wrote: ... > testharness.js is preferred. Test changed. https://codereview.chromium.org/2689713003/diff/20001/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html File ...
3 years, 10 months ago (2017-02-15 14:18:30 UTC) #19
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/2689713003/40001
3 years, 10 months ago (2017-02-15 14:18:57 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 14:25:22 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/49bd1e63cb077e88db6d89f5a3db...

Powered by Google App Engine
This is Rietveld 408576698