Allow WebKit clients to specify a minimum effective width for layout.
[WebKit-https.git] / Tools / WebKitTestRunner / UIScriptControllerCocoa.mm
index 9df62a1..a7b98e4 100644 (file)
@@ -45,6 +45,15 @@ void UIScriptController::setViewScale(double scale)
 #endif
 }
 
+void UIScriptController::setMinimumEffectiveWidth(double effectiveWidth)
+{
+#if WK_API_ENABLED
+    TestController::singleton().mainWebView()->platformView()._minimumEffectiveDeviceWidth = effectiveWidth;
+#else
+    UNUSED_PARAM(effectiveWidth);
+#endif
+}
+
 void UIScriptController::resignFirstResponder()
 {
 #if WK_API_ENABLED