Bug 233119

Summary: Stack overflow with revert-layer
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: CSSAssignee: Antti Koivisto <koivisto>
Status: RESOLVED FIXED    
Severity: Normal CC: graouts, msaboff, ntim
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Antti Koivisto 2021-11-15 00:49:05 PST
boom
Comment 1 Antti Koivisto 2021-11-15 00:51:03 PST
rdar://85342210
Comment 2 Antti Koivisto 2021-11-15 01:01:20 PST
Created attachment 444219 [details]
Patch
Comment 3 Tim Nguyen (:ntim) 2021-11-15 01:35:04 PST
Comment on attachment 444219 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=444219&action=review

> Source/WebCore/style/StyleBuilder.cpp:398
>      if (!rollbackLayerPriority)
> -        return nullptr;
> +        return ensureRollbackCascadeForRevert(cascadeLevel);

There should be tests for this, that revert-layer behaves like revert with no layers.
Comment 4 Antti Koivisto 2021-11-15 01:37:39 PST
Created attachment 444223 [details]
Patch
Comment 5 Antti Koivisto 2021-11-15 01:38:13 PST
Comment on attachment 444219 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=444219&action=review

>> Source/WebCore/style/StyleBuilder.cpp:398
>> +        return ensureRollbackCascadeForRevert(cascadeLevel);
> 
> There should be tests for this, that revert-layer behaves like revert with no layers.

I'll do the change separately.
Comment 6 EWS 2021-11-15 03:12:40 PST
Committed r285801 (244245@main): <https://commits.webkit.org/244245@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 444223 [details].
Comment 7 Antti Koivisto 2021-11-15 03:19:59 PST
*** Bug 233068 has been marked as a duplicate of this bug. ***