Add a mechanism to opt-out of the automatic scaling applied to not-really-responsive...
[WebKit-https.git] / Source / WebCore / page / ViewportConfiguration.h
index cbd0642456d42e9535612df5c987b0be123c8458..207de267e0a3846e43efa9dd2779939bd689f016 100644 (file)
@@ -45,6 +45,7 @@ public:
             , minimumScale(0)
             , maximumScale(0)
             , allowsUserScaling(false)
+            , allowsShrinkToFit(false)
             , widthIsSet(false)
             , heightIsSet(false)
             , initialScaleIsSet(false)
@@ -57,6 +58,7 @@ public:
         double minimumScale;
         double maximumScale;
         bool allowsUserScaling;
+        bool allowsShrinkToFit;
 
         bool widthIsSet;
         bool heightIsSet;
@@ -85,6 +87,7 @@ public:
     WEBCORE_EXPORT double minimumScale() const;
     double maximumScale() const { return m_configuration.maximumScale; }
     WEBCORE_EXPORT bool allowsUserScaling() const;
+    bool allowsShrinkToFit() const;
 
     WEBCORE_EXPORT static Parameters webpageParameters();
     WEBCORE_EXPORT static Parameters textDocumentParameters();
@@ -96,7 +99,7 @@ public:
     WTF::CString description() const;
     void dump() const;
 #endif
-    
+
 private:
     void updateConfiguration();
     double viewportArgumentsLength(double length) const;