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

Unified Diff: sky/engine/web/WebViewImpl.cpp

Issue 654693004: Remove meta viewport and @viewport CSS rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« sky/engine/core/html/HTMLMetaElement.h ('K') | « sky/engine/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/web/WebViewImpl.cpp
diff --git a/sky/engine/web/WebViewImpl.cpp b/sky/engine/web/WebViewImpl.cpp
index 963e224a32fa77f00af156ea6942c5317afeda41..84ab388c8cbaa79e9aaa031656528ddf57eb0a8c 100644
--- a/sky/engine/web/WebViewImpl.cpp
+++ b/sky/engine/web/WebViewImpl.cpp
@@ -950,7 +950,6 @@ WebLocalFrameImpl* WebViewImpl::localFrameRootTemporary() const
void WebViewImpl::performResize()
{
- updatePageDefinedViewportConstraints(localFrameRootTemporary()->frame()->document()->viewportDescription());
updateMainFrameLayoutSize();
// If the virtual viewport pinch mode is enabled, the main frame will be resized
@@ -1830,26 +1829,6 @@ void WebViewImpl::setDeviceScaleFactor(float scaleFactor)
updateLayerTreeDeviceScaleFactor();
}
-void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription& description)
-{
- if (!settings()->viewportEnabled() || !page() || (!m_size.width && !m_size.height))
- return;
-
- Document* document = page()->mainFrame()->document();
-
- m_matchesHeuristicsForGpuRasterization = description.maxWidth == Length(DeviceWidth)
- && description.minZoom == 1.0
- && description.minZoomIsExplicit;
- if (m_layerTreeView)
- m_layerTreeView->heuristicsForGpuRasterizationUpdated(m_matchesHeuristicsForGpuRasterization);
-
- Length defaultMinWidth = document->viewportDefaultMinWidth();
- if (defaultMinWidth.isAuto())
- defaultMinWidth = Length(ExtendToZoom);
-
- updateMainFrameLayoutSize();
-}
-
void WebViewImpl::updateMainFrameLayoutSize()
{
if (m_fixedLayoutSizeLock || !mainFrameImpl())
« sky/engine/core/html/HTMLMetaElement.h ('K') | « sky/engine/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698