Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index e19f7cfd33a16e8947b7e9b36a9aef7cb2f98ee2..57c774b911523288ca953c10775d290635210a8e 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -690,7 +690,7 @@ IntRect FrameSelection::absoluteCaretBounds() |
{ |
DCHECK(selection().isValidFor(*m_frame->document())); |
DCHECK_NE(m_frame->document()->lifecycle().state(), DocumentLifecycle::InPaintInvalidation); |
- m_frame->document()->updateLayoutIgnorePendingStylesheets(); |
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
if (!isCaret()) { |
m_caretBase->clearCaretRect(); |
} else { |
@@ -937,7 +937,7 @@ void FrameSelection::focusedOrActiveStateChanged() |
if (Element* element = document->focusedElement()) |
element->focusStateChanged(); |
- document->updateLayoutTree(); |
+ document->updateStyleAndLayoutTree(); |
// Because LayoutObject::selectionBackgroundColor() and |
// LayoutObject::selectionForegroundColor() check if the frame is active, |
@@ -1118,7 +1118,7 @@ void FrameSelection::setFocusedNodeIfNeeded() |
if (Element* target = rootEditableElement()) { |
// Walk up the DOM tree to search for a node to focus. |
- m_frame->document()->updateLayoutTreeIgnorePendingStylesheets(); |
+ m_frame->document()->updateStyleAndLayoutTreeIgnorePendingStylesheets(); |
while (target) { |
// We don't want to set focus on a subframe when selecting in a parent frame, |
// so add the !isFrameElement check here. There's probably a better way to make this |
@@ -1278,7 +1278,7 @@ void FrameSelection::setShouldShowBlockCursor(bool shouldShowBlockCursor) |
{ |
m_shouldShowBlockCursor = shouldShowBlockCursor; |
- m_frame->document()->updateLayoutIgnorePendingStylesheets(); |
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
updateAppearance(); |
} |