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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/core/editing/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 5cc044d5f671f0c052a270cdd4ef5cd79c7124a9..5b970bf227377473fad0202c5a565754e9caa0f7 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -426,7 +426,7 @@ void Editor::writeSelectionToPasteboard()
static PassRefPtr<Image> imageFromNode(const Node& node)
{
- node.document().updateLayoutIgnorePendingStylesheets();
+ node.document().updateStyleAndLayoutIgnorePendingStylesheets();
LayoutObject* layoutObject = node.layoutObject();
if (!layoutObject)
return nullptr;
@@ -691,7 +691,7 @@ void Editor::requestSpellcheckingAfterApplyingCommand(CompositeEditCommand* cmd)
void Editor::appliedEditing(CompositeEditCommand* cmd)
{
EventQueueScope scope;
- frame().document()->updateLayout();
+ frame().document()->updateStyleAndLayout();
// Request spell checking after pasting before any further DOM change.
requestSpellcheckingAfterApplyingCommand(cmd);
@@ -724,7 +724,7 @@ void Editor::appliedEditing(CompositeEditCommand* cmd)
void Editor::unappliedEditing(EditCommandComposition* cmd)
{
EventQueueScope scope;
- frame().document()->updateLayout();
+ frame().document()->updateStyleAndLayout();
dispatchEditableContentChangedEvents(cmd->startingRootEditableElement(), cmd->endingRootEditableElement());
@@ -742,7 +742,7 @@ void Editor::unappliedEditing(EditCommandComposition* cmd)
void Editor::reappliedEditing(EditCommandComposition* cmd)
{
EventQueueScope scope;
- frame().document()->updateLayout();
+ frame().document()->updateStyleAndLayout();
dispatchEditableContentChangedEvents(cmd->startingRootEditableElement(), cmd->endingRootEditableElement());
@@ -1028,7 +1028,7 @@ void Editor::setBaseWritingDirection(WritingDirection direction)
return;
focusedElement->setAttribute(dirAttr, direction == LeftToRightWritingDirection ? "ltr" : "rtl");
focusedElement->dispatchInputEvent();
- frame().document()->updateLayoutTree();
+ frame().document()->updateStyleAndLayoutTree();
return;
}
@@ -1326,7 +1326,7 @@ void Editor::toggleOverwriteModeEnabled()
void Editor::tidyUpHTMLStructure(Document& document)
{
// hasEditableStyle() needs up-to-date ComputedStyle.
- document.updateLayoutTree();
+ document.updateStyleAndLayoutTree();
bool needsValidStructure = document.hasEditableStyle() || (document.documentElement() && document.documentElement()->hasEditableStyle());
if (!needsValidStructure)
return;
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditingUtilities.cpp ('k') | third_party/WebKit/Source/core/editing/FrameSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698