Bug 253403 - Remove deadcode from SVGResourcesCache::clientStyleChanged
Summary: Remove deadcode from SVGResourcesCache::clientStyleChanged
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Rob Buis
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-04 18:18 PST by Ahmad Saleem
Modified: 2023-10-19 06:12 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-03-04 18:18:58 PST
Hi Team,

While going through Blink's commits, I came across another potential merge:

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/3dbb235c9806036ecd531aa4eeae7ed1c4be89a7

WebKit Source Code - https://searchfox.org/wubkat/source/Source/WebCore/rendering/svg/SVGResourcesCache.cpp#169

^ Remove this IF condition and add these ASSERT at start of function:


    ASSERT(renderer);
    ASSERT(renderer.element());
    ASSERT(renderer.element()->isSVGElement());

_____

Just wanted to raise to get insight.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-03-11 18:19:14 PST
<rdar://problem/106605841>
Comment 2 Ahmad Saleem 2023-03-14 14:58:08 PDT
I tried in following PR - https://github.com/WebKit/WebKit/pull/11360

This leads to multiple test crashes on 'mac-AS-debug-wk2' instance.

Closing PR to investigate, what could be issue.
Comment 3 Rob Buis 2023-10-16 03:19:22 PDT
Pull request: https://github.com/WebKit/WebKit/pull/19110
Comment 4 Rob Buis 2023-10-16 04:51:39 PDT
(In reply to Ahmad Saleem from comment #2)
> I tried in following PR - https://github.com/WebKit/WebKit/pull/11360
> 
> This leads to multiple test crashes on 'mac-AS-debug-wk2' instance.
> 
> Closing PR to investigate, what could be issue.

My new PR seems to work, possibly the crashes were due to the ASSERT not taking into account anonymous renderers.
Comment 5 EWS 2023-10-19 06:12:19 PDT
Committed 269518@main (cd8b6c24eddd): <https://commits.webkit.org/269518@main>

Reviewed commits have been landed. Closing PR #19110 and removing active labels.