| 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())
|
|
|