[Webkit-unassigned] [Bug 234600] New: Simplify test for startOfLastParagraph in InsertListCommand::doApply
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 22 05:52:45 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=234600
Bug ID: 234600
Summary: Simplify test for startOfLastParagraph in
InsertListCommand::doApply
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: fred.wang at free.fr
CC: wenson_hsieh at apple.com
Currently, we are doing
!startOfLastParagraph.deepEquivalent().anchorNode()->isConnected()
but it could be replaced with
startOfLastParagraph.isOrphan()
which is the same as
startOfLastParagraph.deepEquivalent().isOrphan()
and so the same as
startOfLastParagraph.deepEquivalent().anchorNode() && !startOfLastParagraph.deepEquivalent().anchorNode()->isConnected()
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211222/b5bd2e48/attachment-0001.htm>
More information about the webkit-unassigned
mailing list