| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 66df1cc5168ea1fc2f90ec2e324f743a4aacc1d3..6e449429a0ee5324e43932d8edc4db1af56b5fb3 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -2898,9 +2898,9 @@ void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription
|
| adjustedDescription.maxWidth = Length(); // auto
|
| const int legacyWidthSnappingMagicNumber = 320;
|
| if (adjustedDescription.maxWidth.isFixed() && adjustedDescription.maxWidth.value() <= legacyWidthSnappingMagicNumber)
|
| - adjustedDescription.maxWidth = Length(100, ViewportPercentageWidth);
|
| + adjustedDescription.maxWidth = Length(DeviceWidth);
|
| if (adjustedDescription.maxHeight.isFixed() && adjustedDescription.maxWidth.value() <= m_size.height)
|
| - adjustedDescription.maxHeight = Length(100, ViewportPercentageHeight);
|
| + adjustedDescription.maxHeight = Length(DeviceHeight);
|
| adjustedDescription.minWidth = adjustedDescription.maxWidth;
|
| adjustedDescription.minHeight = adjustedDescription.maxHeight;
|
| }
|
| @@ -2910,7 +2910,7 @@ void WebViewImpl::updatePageDefinedViewportConstraints(const ViewportDescription
|
| if (settingsImpl()->clobberUserAgentInitialScaleQuirk()
|
| && m_pageScaleConstraintsSet.userAgentConstraints().initialScale != -1
|
| && m_pageScaleConstraintsSet.userAgentConstraints().initialScale * deviceScaleFactor() <= 1) {
|
| - if (description.maxWidth == Length(100, ViewportPercentageWidth)
|
| + if (description.maxWidth == Length(DeviceWidth)
|
| || (description.maxWidth.type() == ExtendToZoom && m_pageScaleConstraintsSet.pageDefinedConstraints().initialScale == 1.0f))
|
| setInitialPageScaleOverride(-1);
|
| }
|
|
|