Bug 248191

Summary: Simplify TypingCommand::makeEditableRootEmpty() by removing firstElementChild
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-11-21 13:47:39 PST
Hi Team,

While going through Blink commits, I came across another potential simplification:

Blink Commit - https://src.chromium.org/viewvc/blink?view=revision&revision=180673

Webkit GitHub - https://github.com/WebKit/WebKit/blob/68c7e095336e350fb25defd9c5e2cb040a0764e2/Source/WebCore/editing/TypingCommand.cpp#L620

It will simplifies HTML editing code.

Thanks!
Comment 1 EWS 2022-11-22 13:24:53 PST
Committed 256950@main (b78015aa9a05): <https://commits.webkit.org/256950@main>

Reviewed commits have been landed. Closing PR #6711 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-11-22 13:25:17 PST
<rdar://problem/102612245>