| 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 7018a3bc473fb3124ca0479161f0bceaf3d82b9b..633e3bb795046beec08ea00b850b3f7a4e0e611c 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();
|
|
|