| Index: sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/sky/engine/core/editing/ReplaceSelectionCommand.cpp b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| index ea0bd03e49983ae24feed9b8db23821c2a6e2f8a..921b37eb052a4bf6acbeff7c02d82f8c86a26b89 100644
|
| --- a/sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/sky/engine/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -222,7 +222,7 @@ PassRefPtr<HTMLElement> ReplacementFragment::insertFragmentForTestRendering(Elem
|
|
|
| holder->appendChild(m_fragment);
|
| rootEditableElement->appendChild(holder.get());
|
| - m_document->updateLayoutIgnorePendingStylesheets();
|
| + m_document->updateLayout();
|
|
|
| return holder.release();
|
| }
|
| @@ -420,7 +420,7 @@ static inline bool nodeHasVisibleRenderText(Text& text)
|
|
|
| void ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds(InsertedNodes& insertedNodes)
|
| {
|
| - document().updateLayoutIgnorePendingStylesheets();
|
| + document().updateLayout();
|
|
|
| Node* lastLeafInserted = insertedNodes.lastLeafInserted();
|
| if (lastLeafInserted && lastLeafInserted->isTextNode() && !nodeHasVisibleRenderText(toText(*lastLeafInserted))
|
|
|