| Index: Source/web/WebViewImpl.cpp
|
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
|
| index 700bd9ad3ec7663352592ebfba4aa1b57693d106..67e652fb1d479311d22f41f854bfd9ca3f4ccc88 100644
|
| --- a/Source/web/WebViewImpl.cpp
|
| +++ b/Source/web/WebViewImpl.cpp
|
| @@ -3007,9 +3007,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;
|
| }
|
| @@ -3019,7 +3019,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);
|
| }
|
|
|