Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: sky/engine/core/editing/ReplaceSelectionCommand.cpp

Issue 834693007: Remove the remaining parts of ignorePendingStylesheets and placeholder styles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove comment. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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))
« no previous file with comments | « sky/engine/core/editing/InsertParagraphSeparatorCommand.cpp ('k') | sky/engine/core/editing/TextIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698