Title: [294691] trunk/Source/WebCore/editing/IndentOutdentCommand.cpp
Revision
294691
Author
[email protected]
Date
2022-05-23 15:53:13 -0700 (Mon, 23 May 2022)

Log Message

Null check split node parent in outdentParagraph
https://bugs.webkit.org/show_bug.cgi?id=240806

Patch by Rob Buis <[email protected]> on 2022-05-23
Reviewed by Wenson Hsieh.

The split node parent needs an extra null check to access its parent
before safely calling hasEditableStyle.

* Source/WebCore/editing/IndentOutdentCommand.cpp:
(WebCore::IndentOutdentCommand::outdentParagraph):

Canonical link: https://commits.webkit.org/250895@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/editing/IndentOutdentCommand.cpp (294690 => 294691)


--- trunk/Source/WebCore/editing/IndentOutdentCommand.cpp	2022-05-23 22:37:28 UTC (rev 294690)
+++ trunk/Source/WebCore/editing/IndentOutdentCommand.cpp	2022-05-23 22:53:13 UTC (rev 294691)
@@ -164,6 +164,7 @@
             if (ContainerNode* splitPointParent = splitPoint->parentNode()) {
                 if (splitPointParent->hasTagName(blockquoteTag)
                     && !splitPoint->hasTagName(blockquoteTag)
+                    && splitPointParent->parentNode()
                     && splitPointParent->parentNode()->hasEditableStyle()) // We can't outdent if there is no place to go!
                     splitElement(downcast<Element>(*splitPointParent), *splitPoint);
             }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to