Bug 263341 - Deeply nested SVG patterns can take minutes to invalidate the target element
Summary: Deeply nested SVG patterns can take minutes to invalidate the target element
Status: RESOLVED DUPLICATE of bug 263349
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 263280 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-10-18 15:14 PDT by Said Abou-Hallawa
Modified: 2023-10-18 17:21 PDT (History)
3 users (show)

See Also:


Attachments
test case (will hang for 3-4 minutes) (2.11 KB, text/html)
2023-10-18 15:14 PDT, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2023-10-18 15:14:33 PDT
Created attachment 468267 [details]
test case (will hang for 3-4 minutes)

Open the attached test case.

Result: WebKit takes 3-4 minutes to show the page.
Expected: The page is updated in reasonable time.

NOTE: This test page uses a deeply nested pattern to fill an ellipse. When a <rect> is added to the deepest nested pattern, it causes 10^9 invalidation. This is due to pattern rect elements nesting relationship.

NOTE: This can be fixed by marking the invalidated renderers as visited so they can be skipped if they are revisited.
Comment 1 Said Abou-Hallawa 2023-10-18 15:16:52 PDT
*** Bug 263280 has been marked as a duplicate of this bug. ***
Comment 2 Said Abou-Hallawa 2023-10-18 17:11:38 PDT
rdar://116532387
Comment 3 Said Abou-Hallawa 2023-10-18 17:21:40 PDT
I could not create the PR using this bug. So I created bug 263349.

*** This bug has been marked as a duplicate of bug 263349 ***