Title: [272143] trunk/Source/WebCore
Revision
272143
Author
[email protected]
Date
2021-02-01 08:45:04 -0800 (Mon, 01 Feb 2021)

Log Message

[LFC][Integration] Fix editing/execCommand/primitive-value.html
https://bugs.webkit.org/show_bug.cgi?id=221207

Reviewed by Zalan Bujtas.

* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds):

This needs to update the layout after node removal as that can invalidate the existing one.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (272142 => 272143)


--- trunk/Source/WebCore/ChangeLog	2021-02-01 15:11:08 UTC (rev 272142)
+++ trunk/Source/WebCore/ChangeLog	2021-02-01 16:45:04 UTC (rev 272143)
@@ -1,5 +1,17 @@
 2021-02-01  Antti Koivisto  <[email protected]>
 
+        [LFC][Integration] Fix editing/execCommand/primitive-value.html
+        https://bugs.webkit.org/show_bug.cgi?id=221207
+
+        Reviewed by Zalan Bujtas.
+
+        * editing/ReplaceSelectionCommand.cpp:
+        (WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds):
+
+        This needs to update the layout after node removal as that can invalidate the existing one.
+
+2021-02-01  Antti Koivisto  <[email protected]>
+
         [LFC][Integration] RenderInline::offsetLeft needs to call ensureLineBoxes
         https://bugs.webkit.org/show_bug.cgi?id=221196
 

Modified: trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp (272142 => 272143)


--- trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp	2021-02-01 15:11:08 UTC (rev 272142)
+++ trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp	2021-02-01 16:45:04 UTC (rev 272143)
@@ -836,6 +836,8 @@
         removeNode(*lastLeafInserted);
     }
 
+    document().updateLayoutIgnorePendingStylesheets();
+
     // We don't have to make sure that firstNodeInserted isn't inside a select or script element
     // because it is a top level node in the fragment and the user can't insert into those elements.
     Node* firstNodeInserted = insertedNodes.firstNodeInserted();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to