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

Unified Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.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/frame/LocalDOMWindow.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
index acb4cfcd292594344964e315ca59425eaed2fd62..266bc350393a766fa0b37f8908a6fad67e8bd8c0 100644
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp
@@ -796,7 +796,7 @@ void LocalDOMWindow::alert(ScriptState* scriptState, const String& message)
}
}
- frame()->document()->updateLayoutTree();
+ frame()->document()->updateStyleAndLayoutTree();
FrameHost* host = frame()->host();
if (!host)
@@ -826,7 +826,7 @@ bool LocalDOMWindow::confirm(ScriptState* scriptState, const String& message)
}
}
- frame()->document()->updateLayoutTree();
+ frame()->document()->updateStyleAndLayoutTree();
FrameHost* host = frame()->host();
if (!host)
@@ -856,7 +856,7 @@ String LocalDOMWindow::prompt(ScriptState* scriptState, const String& message, c
}
}
- frame()->document()->updateLayoutTree();
+ frame()->document()->updateStyleAndLayoutTree();
FrameHost* host = frame()->host();
if (!host)
@@ -927,12 +927,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()
@@ -999,7 +999,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();
@@ -1019,7 +1019,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();
@@ -1107,7 +1107,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);
}
@@ -1124,7 +1124,7 @@ void LocalDOMWindow::scrollBy(double x, double y, ScrollBehavior scrollBehavior)
if (!isCurrentlyDisplayedInFrame())
return;
- document()->updateLayoutIgnorePendingStylesheets();
+ document()->updateStyleAndLayoutIgnorePendingStylesheets();
FrameView* view = frame()->view();
if (!view)
@@ -1177,7 +1177,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();
@@ -1203,7 +1203,7 @@ void LocalDOMWindow::scrollTo(const ScrollToOptions& scrollToOptions) const
|| !scrollToOptions.hasTop()
|| scrollToOptions.left()
|| scrollToOptions.top()) {
- document()->updateLayoutIgnorePendingStylesheets();
+ document()->updateStyleAndLayoutIgnorePendingStylesheets();
}
double scaledX = 0.0;

Powered by Google App Engine
This is Rietveld 408576698