| Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| index 7ed2ae7975c54c39306c86033b4b31231e0330b5..4c419794b5e61a7302de27655cfd1cd049e32ade 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
|
| @@ -780,7 +780,7 @@ void LocalDOMWindow::alert(const String& message)
|
| }
|
| }
|
|
|
| - frame()->document()->updateLayoutTree();
|
| + frame()->document()->updateStyleAndLayoutTree();
|
|
|
| FrameHost* host = frame()->host();
|
| if (!host)
|
| @@ -802,7 +802,7 @@ bool LocalDOMWindow::confirm(const String& message)
|
| }
|
| }
|
|
|
| - frame()->document()->updateLayoutTree();
|
| + frame()->document()->updateStyleAndLayoutTree();
|
|
|
| FrameHost* host = frame()->host();
|
| if (!host)
|
| @@ -824,7 +824,7 @@ String LocalDOMWindow::prompt(const String& message, const String& defaultValue)
|
| }
|
| }
|
|
|
| - frame()->document()->updateLayoutTree();
|
| + frame()->document()->updateStyleAndLayoutTree();
|
|
|
| FrameHost* host = frame()->host();
|
| if (!host)
|
| @@ -895,12 +895,12 @@ static FloatSize getViewportSize(LocalFrame* frame)
|
| // layout, perform one now so queries during page load will use the up to
|
| // date viewport.
|
| if (host->settings().viewportEnabled() && frame->isMainFrame())
|
| - frame->document()->updateLayoutIgnorePendingStylesheets();
|
| + frame->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| // FIXME: This is potentially too much work. We really only need to know the dimensions of the parent frame's layoutObject.
|
| if (Frame* parent = frame->tree().parent()) {
|
| if (parent && parent->isLocalFrame())
|
| - toLocalFrame(parent)->document()->updateLayoutIgnorePendingStylesheets();
|
| + toLocalFrame(parent)->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| }
|
|
|
| return frame->isMainFrame() && !host->settings().inertVisualViewport()
|
| @@ -967,7 +967,7 @@ double LocalDOMWindow::scrollX() const
|
| if (!host)
|
| return 0;
|
|
|
| - frame()->document()->updateLayoutIgnorePendingStylesheets();
|
| + frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| ScrollableArea* viewport = host->settings().inertVisualViewport() ? view->layoutViewportScrollableArea() : view->getScrollableArea();
|
| double viewportX = viewport->scrollPositionDouble().x();
|
| @@ -987,7 +987,7 @@ double LocalDOMWindow::scrollY() const
|
| if (!host)
|
| return 0;
|
|
|
| - frame()->document()->updateLayoutIgnorePendingStylesheets();
|
| + frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| ScrollableArea* viewport = host->settings().inertVisualViewport() ? view->layoutViewportScrollableArea() : view->getScrollableArea();
|
| double viewportY = viewport->scrollPositionDouble().y();
|
| @@ -1075,7 +1075,7 @@ CSSRuleList* LocalDOMWindow::getMatchedCSSRules(Element* element, const String&
|
|
|
| unsigned rulesToInclude = StyleResolver::AuthorCSSRules;
|
| PseudoId pseudoId = CSSSelector::pseudoId(pseudoType);
|
| - element->document().updateLayoutTree();
|
| + element->document().updateStyleAndLayoutTree();
|
| return frame()->document()->ensureStyleResolver().pseudoCSSRulesForElement(element, pseudoId, rulesToInclude);
|
| }
|
|
|
| @@ -1092,7 +1092,7 @@ void LocalDOMWindow::scrollBy(double x, double y, ScrollBehavior scrollBehavior)
|
| if (!isCurrentlyDisplayedInFrame())
|
| return;
|
|
|
| - document()->updateLayoutIgnorePendingStylesheets();
|
| + document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| FrameView* view = frame()->view();
|
| if (!view)
|
| @@ -1145,7 +1145,7 @@ void LocalDOMWindow::scrollTo(double x, double y) const
|
| // It is only necessary to have an up-to-date layout if the position may be clamped,
|
| // which is never the case for (0, 0).
|
| if (x || y)
|
| - document()->updateLayoutIgnorePendingStylesheets();
|
| + document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
|
|
| DoublePoint layoutPos(x * frame()->pageZoomFactor(), y * frame()->pageZoomFactor());
|
| ScrollableArea* viewport = host->settings().inertVisualViewport() ? view->layoutViewportScrollableArea() : view->getScrollableArea();
|
| @@ -1171,7 +1171,7 @@ void LocalDOMWindow::scrollTo(const ScrollToOptions& scrollToOptions) const
|
| || !scrollToOptions.hasTop()
|
| || scrollToOptions.left()
|
| || scrollToOptions.top()) {
|
| - document()->updateLayoutIgnorePendingStylesheets();
|
| + document()->updateStyleAndLayoutIgnorePendingStylesheets();
|
| }
|
|
|
| double scaledX = 0.0;
|
|
|