Title: [291561] trunk/Source/WebCore
Revision
291561
Author
commit-qu...@webkit.org
Date
2022-03-21 10:15:30 -0700 (Mon, 21 Mar 2022)

Log Message

Null check style in Editor::applyParagraphStyle
https://bugs.webkit.org/show_bug.cgi?id=238137

Patch by Rob Buis <rb...@igalia.com> on 2022-03-21
Reviewed by Wenson Hsieh.

Null check style in Editor::applyParagraphStyle.

* editing/Editor.cpp:
(WebCore::Editor::applyParagraphStyle):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (291560 => 291561)


--- trunk/Source/WebCore/ChangeLog	2022-03-21 16:57:10 UTC (rev 291560)
+++ trunk/Source/WebCore/ChangeLog	2022-03-21 17:15:30 UTC (rev 291561)
@@ -1,3 +1,15 @@
+2022-03-21  Rob Buis  <rb...@igalia.com>
+
+        Null check style in Editor::applyParagraphStyle
+        https://bugs.webkit.org/show_bug.cgi?id=238137
+
+        Reviewed by Wenson Hsieh.
+
+        Null check style in Editor::applyParagraphStyle.
+
+        * editing/Editor.cpp:
+        (WebCore::Editor::applyParagraphStyle):
+
 2022-03-21  Jonathan Bedard  <jbed...@apple.com>
 
         Unreviewed, reverting r291558.

Modified: trunk/Source/WebCore/editing/Editor.cpp (291560 => 291561)


--- trunk/Source/WebCore/editing/Editor.cpp	2022-03-21 16:57:10 UTC (rev 291560)
+++ trunk/Source/WebCore/editing/Editor.cpp	2022-03-21 17:15:30 UTC (rev 291561)
@@ -1009,7 +1009,8 @@
 
     ApplyStyleCommand::create(document(), EditingStyle::create(style).ptr(), editingAction, ApplyStyleCommand::ForceBlockProperties)->apply();
 
-    client()->didApplyStyle();
+    if (client())
+        client()->didApplyStyle();
     if (element)
         dispatchInputEvent(*element, inputTypeName, inputEventData);
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to