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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2472133002: Pass min/max page scale to compositor from WebFrameWidget. (Closed)
Patch Set: Add comment. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 804f75d88c2f34fe3eaec5c1db5239ab51cbd93e..5011c431b72be6420dadbd259e2d568942383938 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -261,8 +261,10 @@ void WebFrameWidgetImpl::updateLayerTreeViewport() {
if (!page() || !m_layerTreeView)
return;
- // FIXME: We need access to page scale information from the WebView.
- m_layerTreeView->setPageScaleFactorAndLimits(1, 1, 1);
+ // Pass the limits even though this is for subframes, as the limits will be
+ // needed in setting the raster scale.
+ m_layerTreeView->setPageScaleFactorAndLimits(
+ 1, view()->minimumPageScaleFactor(), view()->maximumPageScaleFactor());
}
void WebFrameWidgetImpl::updateLayerTreeBackgroundColor() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698