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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.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/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 6e0ae3869f6bf868987a1961fe715a323424c1a1..4e1519861f1103a982d4c05207be8463c96ae68a 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -87,13 +87,13 @@ DEFINE_TRACE(VisualViewport)
ScrollableArea::trace(visitor);
}
-void VisualViewport::updateLayoutIgnorePendingStylesheets()
+void VisualViewport::updateStyleAndLayoutIgnorePendingStylesheets()
{
if (!mainFrame())
return;
if (Document* document = mainFrame()->document())
- document->updateLayoutIgnorePendingStylesheets();
+ document->updateStyleAndLayoutIgnorePendingStylesheets();
}
void VisualViewport::enqueueChangedEvent()
@@ -216,7 +216,7 @@ double VisualViewport::scrollLeft()
if (!mainFrame())
return 0;
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
return adjustScrollForAbsoluteZoom(visibleRect().x(), mainFrame()->pageZoomFactor());
}
@@ -226,7 +226,7 @@ double VisualViewport::scrollTop()
if (!mainFrame())
return 0;
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
return adjustScrollForAbsoluteZoom(visibleRect().y(), mainFrame()->pageZoomFactor());
}
@@ -236,7 +236,7 @@ void VisualViewport::setScrollLeft(double x)
if (!mainFrame())
return;
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
setLocation(FloatPoint(x * mainFrame()->pageZoomFactor(), location().y()));
}
@@ -246,7 +246,7 @@ void VisualViewport::setScrollTop(double y)
if (!mainFrame())
return;
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
setLocation(FloatPoint(location().x(), y * mainFrame()->pageZoomFactor()));
}
@@ -256,7 +256,7 @@ double VisualViewport::clientWidth()
if (!mainFrame())
return 0;
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
double width = adjustScrollForAbsoluteZoom(visibleSize().width(), mainFrame()->pageZoomFactor());
return width - mainFrame()->view()->verticalScrollbarWidth();
@@ -267,7 +267,7 @@ double VisualViewport::clientHeight()
if (!mainFrame())
return 0;
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
double height = adjustScrollForAbsoluteZoom(visibleSize().height(), mainFrame()->pageZoomFactor());
return height - mainFrame()->view()->horizontalScrollbarHeight();
@@ -275,7 +275,7 @@ double VisualViewport::clientHeight()
double VisualViewport::pageScale()
{
- updateLayoutIgnorePendingStylesheets();
+ updateStyleAndLayoutIgnorePendingStylesheets();
return m_scale;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.h ('k') | third_party/WebKit/Source/core/html/HTMLAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698