Index: third_party/WebKit/Source/core/frame/FrameView.cpp |
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp |
index a1a94312d644f69ddbacb36edcd8409d8d7e30a2..87b251ad6e54f109f9ecf2a018b9b07dfaeae66d 100644 |
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp |
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp |
@@ -802,7 +802,7 @@ void FrameView::performPreLayoutTasks() |
document->evaluateMediaQueryList(); |
} |
- document->updateLayoutTree(); |
+ document->updateStyleAndLayoutTree(); |
lifecycle().advanceTo(DocumentLifecycle::StyleClean); |
if (m_frame->isMainFrame() && !m_viewportScrollableArea) { |
@@ -1514,7 +1514,7 @@ bool FrameView::processUrlFragmentHelper(const String& name, UrlFragmentBehavior |
// If anchorNode is not focusable or fragment scrolling is not allowed, |
// clear focus, which matches the behavior of other browsers. |
if (anchorNode) { |
- m_frame->document()->updateLayoutIgnorePendingStylesheets(); |
+ m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
if (behavior == UrlFragmentScroll && anchorNode->isFocusable()) { |
anchorNode->focus(); |
} else { |
@@ -1532,7 +1532,7 @@ void FrameView::setFragmentAnchor(Node* anchorNode) |
m_fragmentAnchor = anchorNode; |
// We need to update the layout tree before scrolling. |
- m_frame->document()->updateLayoutTree(); |
+ m_frame->document()->updateStyleAndLayoutTree(); |
// If layout is needed, we will scroll in performPostLayoutTasks. Otherwise, scroll immediately. |
LayoutView* layoutView = this->layoutView(); |
@@ -2582,7 +2582,7 @@ void FrameView::updateStyleAndLayoutIfNeededRecursiveInternal() |
// region but then become included later by the second frame adding rects to the dirty region |
// when it lays out. |
- m_frame->document()->updateLayoutTree(); |
+ m_frame->document()->updateStyleAndLayoutTree(); |
if (needsLayout()) |
layout(); |
@@ -2620,7 +2620,7 @@ void FrameView::updateStyleAndLayoutIfNeededRecursiveInternal() |
// When SVG filters are invalidated using Document::scheduleSVGFilterLayerUpdateHack() they may trigger an |
// extra style recalc. See PaintLayer::filterNeedsPaintInvalidation(). |
if (m_frame->document()->hasSVGFilterElementsRequiringLayerUpdate()) { |
- m_frame->document()->updateLayoutTree(); |
+ m_frame->document()->updateStyleAndLayoutTree(); |
if (needsLayout()) |
layout(); |