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

Issue 1068073005: Handle layer clients in LayoutSVGResourceContainer::registerResource (Closed)

Created:
5 years, 8 months ago by fs
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, Dominik Röttsches, ed+blinkwatch_opera.com, krit, f(malita), jchaffraix+rendering, gyuyoung2, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Handle layer clients in LayoutSVGResourceContainer::registerResource When registering pending clients on a newly discovered (filter) resource, make sure to invalidate via the DeprectatedPaintLayer if the client has one, or the client won't be updated properly. Make SVGResourcesCache::clientStyleChanged handle non-SVG elements. This was exposed by scheduler changes that caused flaky behavior in LayoutTests/css3/filters/effect-reference-rename.html, where the script: document.getElementById("NotMyFilter").id = "MyFilter"; would normally execute before the call to registerResource() that added MyFilter. With the scheduler these could happen in the opposite order and trigger the "layoutObject->node()->isSVGElement()" assert. BUG=453019, 432129 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193438

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix typo. #

Patch Set 3 : Continue in loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
A LayoutTests/css3/filters/effect-reference-rename-2.html View 1 chunk +13 lines, -0 lines 0 comments Download
A LayoutTests/css3/filters/effect-reference-rename-2-expected.html View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/layout/svg/LayoutSVGResourceContainer.cpp View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
fs
5 years, 8 months ago (2015-04-08 17:03:56 UTC) #2
alex clarke (OOO till 29th)
Thanks for picking this up! Unfortunately I don't know this code well enough to provide ...
5 years, 8 months ago (2015-04-08 17:08:50 UTC) #3
kouhei (in TOK)
Thanks for fixing this! https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode226 Source/core/layout/svg/LayoutSVGResourceContainer.cpp:226: // If the client is ...
5 years, 8 months ago (2015-04-08 17:14:41 UTC) #5
fs
https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode226 Source/core/layout/svg/LayoutSVGResourceContainer.cpp:226: // If the client is has a layer (is ...
5 years, 8 months ago (2015-04-08 17:26:04 UTC) #6
kouhei (in TOK)
https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode229 Source/core/layout/svg/LayoutSVGResourceContainer.cpp:229: toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInvalidation(); On 2015/04/08 17:26:04, fs wrote: > On 2015/04/08 ...
5 years, 8 months ago (2015-04-08 17:28:50 UTC) #7
fs
https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode229 Source/core/layout/svg/LayoutSVGResourceContainer.cpp:229: toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInvalidation(); On 2015/04/08 17:28:50, kouhei wrote: > On 2015/04/08 ...
5 years, 8 months ago (2015-04-08 17:34:16 UTC) #8
fs
https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp File Source/core/layout/svg/LayoutSVGResourceContainer.cpp (right): https://codereview.chromium.org/1068073005/diff/1/Source/core/layout/svg/LayoutSVGResourceContainer.cpp#newcode229 Source/core/layout/svg/LayoutSVGResourceContainer.cpp:229: toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInvalidation(); On 2015/04/08 17:14:41, kouhei wrote: > Would it ...
5 years, 8 months ago (2015-04-09 10:21:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1068073005/40001
5 years, 8 months ago (2015-04-09 10:22:06 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 11:23:56 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193438

Powered by Google App Engine
This is Rietveld 408576698