Changeset 272143 in webkit


Ignore:
Timestamp:
Feb 1, 2021 8:45:04 AM (3 years ago)
Author:
Antti Koivisto
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r272142 r272143  
     12021-02-01  Antti Koivisto  <antti@apple.com>
     2
     3        [LFC][Integration] Fix editing/execCommand/primitive-value.html
     4        https://bugs.webkit.org/show_bug.cgi?id=221207
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * editing/ReplaceSelectionCommand.cpp:
     9        (WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds):
     10
     11        This needs to update the layout after node removal as that can invalidate the existing one.
     12
    1132021-02-01  Antti Koivisto  <antti@apple.com>
    214
  • trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp

    r271787 r272143  
    837837    }
    838838
     839    document().updateLayoutIgnorePendingStylesheets();
     840
    839841    // We don't have to make sure that firstNodeInserted isn't inside a select or script element
    840842    // because it is a top level node in the fragment and the user can't insert into those elements.
Note: See TracChangeset for help on using the changeset viewer.