Index: Source/web/PageScaleConstraintsSet.cpp |
diff --git a/Source/web/PageScaleConstraintsSet.cpp b/Source/web/PageScaleConstraintsSet.cpp |
index 15f6e824d27c58167a67bcd1e952c71d0b2dc37d..b361be9ce18b7a5e6c70349c10fb53d7b7f8dae8 100644 |
--- a/Source/web/PageScaleConstraintsSet.cpp |
+++ b/Source/web/PageScaleConstraintsSet.cpp |
@@ -140,7 +140,7 @@ void PageScaleConstraintsSet::adjustForAndroidWebViewQuirks(const ViewportDescri |
if (description.zoom == -1) { |
if (description.maxWidth.isAuto()) |
resetInitialScale = true; |
- if (useWideViewport || !description.maxWidth.isFixed()) |
+ if (useWideViewport || description.maxWidth == Length(100, ViewportPercentageWidth)) |
resetInitialScale = true; |
} |
if (resetInitialScale) |
@@ -156,7 +156,7 @@ void PageScaleConstraintsSet::adjustForAndroidWebViewQuirks(const ViewportDescri |
m_pageDefinedConstraints.initialScale *= targetDensityDPIFactor; |
m_pageDefinedConstraints.minimumScale *= targetDensityDPIFactor; |
m_pageDefinedConstraints.maximumScale *= targetDensityDPIFactor; |
- if (wideViewportQuirkEnabled && (!useWideViewport || !description.maxWidth.isFixed())) |
+ if (wideViewportQuirkEnabled && (!useWideViewport || description.maxWidth == Length(100, ViewportPercentageWidth))) |
adjustedLayoutSizeWidth /= targetDensityDPIFactor; |
} |