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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 12a9088b9788441bf3166a28510a8601bf52ee61..1043c0e5e9b0600b44eb8cb2a8036bd420c0e2b3 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -535,13 +535,13 @@ void Node::normalize()
bool Node::isContentEditable(UserSelectAllTreatment treatment) const
{
- document().updateLayoutTree();
+ document().updateStyleAndLayoutTree();
return hasEditableStyle(Editable, treatment);
}
bool Node::isContentRichlyEditable() const
{
- document().updateLayoutTree();
+ document().updateStyleAndLayoutTree();
return hasEditableStyle(RichlyEditable, UserSelectAllIsAlwaysNonEditable);
}
@@ -2159,7 +2159,7 @@ void Node::defaultEventHandler(Event* event)
// FIXME: We should avoid synchronous layout if possible. We can
// remove this synchronous layout if we avoid synchronous layout in
// LayoutTextControlSingleLine::scrollHeight
- document().updateLayoutIgnorePendingStylesheets();
+ document().updateStyleAndLayoutIgnorePendingStylesheets();
LayoutObject* layoutObject = this->layoutObject();
while (layoutObject && (!layoutObject->isBox() || !toLayoutBox(layoutObject)->canBeScrolledAndHasScrollableArea()))
layoutObject = layoutObject->parent();

Powered by Google App Engine
This is Rietveld 408576698