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

Issue 787563003: Fix RenderSVGResourceContainer task re-ordering bug (Closed)

Created:
6 years ago by alex clarke (OOO till 29th)
Modified:
5 years, 8 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, aandrey+blink_chromium.org, pdr+svgwatchlist_chromium.org, caseq+blink_chromium.org, krit, malch+blink_chromium.org, yurys+blink_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, rwlbuis, loislo+blink_chromium.org, zoltan1, lushnikov+blink_chromium.org, Dominik Röttsches, eustas+blink_chromium.org, paulirish+reviews_chromium.org, gyuyoung.kim_webkit.org, Stephen Chennney, blink-reviews-rendering, pdr+renderingwatchlist_chromium.org, kouhei+svg_chromium.org, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, ed+blinkwatch_opera.com, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix RenderSVGResourceContainer task re-ordering bug The bug was affecting LayoutTests/css3/filters/effect-reference-rename.html Normally document.getElementById("NotMyFilter").id = "MyFilter"; executes before RenderSVGResourceContainer::registerResource adds MyFilter. With the scheduler these can happen in the opposite order leading to the assert because a non SVG element (the Filter) gets added to the cache of pending clients and the second call to RenderSVGResourceContainer::registerResource chokes because it calls SVGResourcesCache::clientStyleChanged on that element. BUG=432129

Patch Set 1 #

Patch Set 2 : Remove unwanted change #

Total comments: 6

Patch Set 3 : New fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M Source/core/rendering/svg/SVGResourcesCache.cpp View 1 2 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 28 (4 generated)
alex clarke (OOO till 29th)
This patch fixes the assert and image diff for css3/filters/effect-reference-rename.html with the scheduler. Unfortunately there ...
6 years ago (2014-12-08 10:40:03 UTC) #2
kouhei (in TOK)
+Florin https://codereview.chromium.org/787563003/diff/20001/LayoutTests/css3/filters/effect-reference-rename.html File LayoutTests/css3/filters/effect-reference-rename.html (right): https://codereview.chromium.org/787563003/diff/20001/LayoutTests/css3/filters/effect-reference-rename.html#newcode16 LayoutTests/css3/filters/effect-reference-rename.html:16: document.getElementById("NotMyFilter").id = "MyFilter"; Would you add a comment ...
6 years ago (2014-12-08 11:11:17 UTC) #4
Sami
Thanks for the fix Alex. https://codereview.chromium.org/787563003/diff/20001/Source/core/rendering/svg/RenderSVGResourceContainer.cpp File Source/core/rendering/svg/RenderSVGResourceContainer.cpp (right): https://codereview.chromium.org/787563003/diff/20001/Source/core/rendering/svg/RenderSVGResourceContainer.cpp#newcode226 Source/core/rendering/svg/RenderSVGResourceContainer.cpp:226: StyleDifference diff; Looks like ...
6 years ago (2014-12-08 11:27:34 UTC) #5
fs
Based on the description it sounds like could've previously (scheduler-less) been triggered by just delaying ...
6 years ago (2014-12-08 12:22:01 UTC) #7
f(malita)
+senorblanco On 2014/12/08 12:22:01, fs wrote: > > a non SVG element (the Filter) > ...
6 years ago (2014-12-08 14:48:11 UTC) #9
alex clarke (OOO till 29th)
On 2014/12/08 14:48:11, Florin Malita wrote: > +senorblanco > > On 2014/12/08 12:22:01, fs wrote: ...
6 years ago (2014-12-08 14:56:10 UTC) #10
fs
On 2014/12/08 14:56:10, alexclarke1 wrote: > On 2014/12/08 14:48:11, Florin Malita wrote: > > +senorblanco ...
6 years ago (2014-12-08 15:13:03 UTC) #11
Stephen White
On 2014/12/08 14:48:11, Florin Malita wrote: > +senorblanco > > On 2014/12/08 12:22:01, fs wrote: ...
6 years ago (2014-12-08 15:15:52 UTC) #12
dsinclair
On 2014/12/08 15:15:52, Stephen White wrote: > (Tangentially, filterNeedsPaintInvalidation() is a pretty big hammer, and ...
6 years ago (2014-12-08 15:22:27 UTC) #13
Stephen White
On 2014/12/08 15:22:27, dsinclair wrote: > On 2014/12/08 15:15:52, Stephen White wrote: > > (Tangentially, ...
6 years ago (2014-12-08 15:26:21 UTC) #14
alex clarke (OOO till 29th)
On 2014/12/08 12:22:01, fs wrote: > Based on the description it sounds like could've previously ...
6 years ago (2014-12-08 16:02:46 UTC) #15
fs
On 2014/12/08 16:02:46, alexclarke1 wrote: > On 2014/12/08 12:22:01, fs wrote: > > Based on ...
6 years ago (2014-12-08 16:15:28 UTC) #16
alex clarke (OOO till 29th)
On 2014/12/08 16:15:28, fs wrote: > On 2014/12/08 16:02:46, alexclarke1 wrote: > > On 2014/12/08 ...
6 years ago (2014-12-08 18:21:29 UTC) #17
alex clarke (OOO till 29th)
On 2014/12/08 18:21:29, alexclarke1 wrote: > On 2014/12/08 16:15:28, fs wrote: > > On 2014/12/08 ...
6 years ago (2014-12-09 16:00:26 UTC) #18
alex clarke (OOO till 29th)
Ooops I hit send too soon, anyway, I think I can see what's going on ...
6 years ago (2014-12-09 16:02:58 UTC) #19
fs
On 2014/12/09 16:02:58, alexclarke1 wrote: ... > In a failed run the order of operations ...
6 years ago (2014-12-09 17:19:16 UTC) #20
alex clarke (OOO till 29th)
After a bit more instrumentation I was able to find out why the order of ...
6 years ago (2014-12-10 10:58:07 UTC) #21
fs
On 2014/12/10 10:58:07, alexclarke1 wrote: > After a bit more instrumentation I was able to ...
6 years ago (2014-12-10 12:32:46 UTC) #22
alex clarke (OOO till 29th)
On 2014/12/10 12:32:46, fs wrote: > On 2014/12/10 10:58:07, alexclarke1 wrote: > > After a ...
6 years ago (2014-12-17 17:16:44 UTC) #23
alex clarke (OOO till 29th)
BUMP :) https://codereview.chromium.org/787563003/diff/20001/LayoutTests/css3/filters/effect-reference-rename.html File LayoutTests/css3/filters/effect-reference-rename.html (right): https://codereview.chromium.org/787563003/diff/20001/LayoutTests/css3/filters/effect-reference-rename.html#newcode16 LayoutTests/css3/filters/effect-reference-rename.html:16: document.getElementById("NotMyFilter").id = "MyFilter"; On 2014/12/08 11:11:17, kouhei ...
5 years, 10 months ago (2015-01-28 16:09:58 UTC) #24
kouhei (in TOK)
Would you add a pointer to the LayoutTests/css3/filters/effect-reference-rename.html test in description? I'm not completely sure ...
5 years, 10 months ago (2015-01-29 06:54:14 UTC) #25
alex clarke (OOO till 29th)
On 2015/01/29 06:54:14, kouhei wrote: > Would you add a pointer to the > LayoutTests/css3/filters/effect-reference-rename.html ...
5 years, 10 months ago (2015-01-30 13:44:00 UTC) #26
fs
On 2015/01/30 13:44:00, alexclarke1 wrote: > On 2015/01/29 06:54:14, kouhei wrote: > > Would you ...
5 years, 10 months ago (2015-01-30 14:11:27 UTC) #27
fs
5 years, 8 months ago (2015-04-08 16:05:57 UTC) #28
Picked up and continued in https://codereview.chromium.org/1068073005/

Powered by Google App Engine
This is Rietveld 408576698