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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 23691017: [Android WebView] Treat zero values in viewport arguments specially (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 1e5aa3af58a2902e3ace01f86a5140ad362ea37b..f687b005b332cf6ce95f17225d90580e46b65105 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -3015,8 +3015,8 @@ void WebViewImpl::updatePageDefinedPageScaleConstraints(const ViewportArguments&
return;
ViewportArguments adjustedArguments = arguments;
- if (settingsImpl()->viewportMetaLayoutSizeQuirk() && adjustedArguments.type == ViewportArguments::ViewportMeta)
- adjustedArguments.type = ViewportArguments::ViewportMetaLayoutSizeQuirk;
+ if (settingsImpl()->viewportMetaLayoutSizeAndZeroValuesQuirk() && adjustedArguments.type == ViewportArguments::ViewportMeta)
+ adjustedArguments.type = ViewportArguments::ViewportMetaLayoutSizeAndZeroValuesQuirk;
m_pageScaleConstraintsSet.updatePageDefinedConstraints(adjustedArguments, m_size, page()->settings().layoutFallbackWidth());
if (settingsImpl()->supportDeprecatedTargetDensityDPI())

Powered by Google App Engine
This is Rietveld 408576698