WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
267067
Avoid duplicate null check in ReplaceSelectionCommand::pastLastLeaf()
https://bugs.webkit.org/show_bug.cgi?id=267067
Summary
Avoid duplicate null check in ReplaceSelectionCommand::pastLastLeaf()
Ahmad Saleem
Reported
2024-01-03 14:54:51 PST
Hi Team, While going through Blink's commit, I came across following: Blink Commit:
https://chromium.googlesource.com/chromium/blink/+/4c63691bebc58be7ff827759a489286b71e6d314
WebKit Source:
https://github.com/WebKit/WebKit/blob/62336f941c169dd318b33b40c0879b872533d7f0/Source/WebCore/editing/ReplaceSelectionCommand.h#L84
Following compiles: Node* pastLastLeaf() const { ASSERT(m_lastNodeInserted); return NodeTraversal::next(*m_lastNodeInserted->lastDescendant()); } __ Just wanted to raise to get input, if we need to do following change. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
EWS
Comment 1
2024-01-04 15:37:57 PST
Committed
272659@main
(eed5354f0af6): <
https://commits.webkit.org/272659@main
> Reviewed commits have been landed. Closing PR #22393 and removing active labels.
Radar WebKit Bug Importer
Comment 2
2024-01-04 15:39:13 PST
<
rdar://problem/120497738
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug