Bug 232133 - ASSERT(node) triggered after surroundNodeRangeWithElement for node without editable style
Summary: ASSERT(node) triggered after surroundNodeRangeWithElement for node without ed...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-21 23:28 PDT by Gabriel Nava Marino
Modified: 2021-10-25 10:49 PDT (History)
5 users (show)

See Also:


Attachments
Patch (4.50 KB, patch)
2021-10-21 23:31 PDT, Gabriel Nava Marino
no flags Details | Formatted Diff | Diff
Patch (6.52 KB, patch)
2021-10-22 10:04 PDT, Gabriel Nava Marino
no flags Details | Formatted Diff | Diff
Patch (7.14 KB, patch)
2021-10-22 10:43 PDT, Gabriel Nava Marino
no flags Details | Formatted Diff | Diff
Patch (6.73 KB, patch)
2021-10-22 11:25 PDT, Gabriel Nava Marino
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Nava Marino 2021-10-21 23:28:24 PDT
There are cases where if the last styled node was not parent node of a current text node, but we wish to style the text node we will add a style span to surround the text node. We do this via createStyleSpanElement. However, in order to properly insert the span within the current node, it requires the parent node to have editable style and renderer.
Comment 1 Gabriel Nava Marino 2021-10-21 23:31:44 PDT
Created attachment 442127 [details]
Patch
Comment 2 Gabriel Nava Marino 2021-10-22 10:04:58 PDT
Created attachment 442173 [details]
Patch
Comment 3 Simon Fraser (smfr) 2021-10-22 10:20:05 PDT
Comment on attachment 442173 [details]
Patch

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

> Source/WebCore/ChangeLog:7
> +

There should be an analysis of the bug and what you did to fix it here.
Comment 4 Gabriel Nava Marino 2021-10-22 10:38:09 PDT
(In reply to Simon Fraser (smfr) from comment #3)
> Comment on attachment 442173 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=442173&action=review
> 
> > Source/WebCore/ChangeLog:7
> > +
> 
> There should be an analysis of the bug and what you did to fix it here.

Thank you, I will add an analysis here.
Comment 5 Gabriel Nava Marino 2021-10-22 10:43:20 PDT
Created attachment 442180 [details]
Patch
Comment 6 Gabriel Nava Marino 2021-10-22 11:25:51 PDT
Created attachment 442182 [details]
Patch
Comment 7 EWS 2021-10-25 10:48:31 PDT
Committed r284792 (243501@main): <https://commits.webkit.org/243501@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 442182 [details].
Comment 8 Radar WebKit Bug Importer 2021-10-25 10:49:22 PDT
<rdar://problem/84620978>