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

Issue 742693002: Unschedule the SVG filter layer update hack after detaching children (Closed)

Created:
6 years, 1 month ago by pdr.
Modified:
6 years, 1 month ago
Reviewers:
dsinclair, esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Project:
blink
Visibility:
Public.

Description

Unschedule the SVG filter layer update hack after detaching children This patch fixes a crash where an element is scheduled for an update while being detached. When an element is being detached it would clear the update flag then detach its children. This is problematic because children can set the update flag on elements during detach (which is expected). If a child sets an element as needing an update while that element is being detached, we'll end up with a detached element that needs a filter update which can make Document::dirtyElementsForLayerUpdate angry. When scheduling, we check that an element does not need an attach (which would handle the filter layer update) before actually scheduling. This patch moves unscheduling after the element is in a needsAttach state. Looking forward to removing this hack entirely.. R=esprehn BUG=429666 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185670

Patch Set 1 #

Patch Set 2 : thanks find-copies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
A LayoutTests/svg/filters/filter-detach-crash.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/svg/filters/filter-detach-crash-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Element.cpp View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
pdr.
6 years, 1 month ago (2014-11-19 07:01:32 UTC) #2
dsinclair
lgtm
6 years, 1 month ago (2014-11-20 14:43:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/742693002/20001
6 years, 1 month ago (2014-11-20 14:43:58 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 15:26:55 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185670

Powered by Google App Engine
This is Rietveld 408576698