Title: [194307] trunk/Source/WebKit/ios
Revision
194307
Author
[email protected]
Date
2015-12-18 17:40:24 -0800 (Fri, 18 Dec 2015)

Log Message

Turn off "shrink-to-fit" viewport scaling in UIWebViews
https://bugs.webkit.org/show_bug.cgi?id=152451
rdar://problem/23960882

Reviewed by Tim Horton.

Disable the "shrink to fit" behavior in UIWebViews. This disables it entirely,
even when the page has "shrink-to-fit=yes" in the viewport meta tag.

Not testable because we can't test actual UIWebView scaling behavior.

* WebCoreSupport/WebChromeClientIOS.mm:
(dictionaryForViewportArguments):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ios/ChangeLog (194306 => 194307)


--- trunk/Source/WebKit/ios/ChangeLog	2015-12-19 01:31:50 UTC (rev 194306)
+++ trunk/Source/WebKit/ios/ChangeLog	2015-12-19 01:40:24 UTC (rev 194307)
@@ -1,3 +1,19 @@
+2015-12-18  Simon Fraser  <[email protected]>
+
+        Turn off "shrink-to-fit" viewport scaling in UIWebViews
+        https://bugs.webkit.org/show_bug.cgi?id=152451
+        rdar://problem/23960882
+
+        Reviewed by Tim Horton.
+        
+        Disable the "shrink to fit" behavior in UIWebViews. This disables it entirely,
+        even when the page has "shrink-to-fit=yes" in the viewport meta tag.
+        
+        Not testable because we can't test actual UIWebView scaling behavior.
+
+        * WebCoreSupport/WebChromeClientIOS.mm:
+        (dictionaryForViewportArguments):
+
 2015-11-07  Simon Fraser  <[email protected]>
 
         Remove ColorSpace argument to all the drawing calls

Modified: trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm (194306 => 194307)


--- trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm	2015-12-19 01:31:50 UTC (rev 194306)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm	2015-12-19 01:40:24 UTC (rev 194307)
@@ -164,7 +164,7 @@
               @"minimum-scale":@(arguments.minZoom),
               @"maximum-scale":@(arguments.maxZoom),
               @"user-scalable":@(arguments.userZoom),
-              @"shrink-to-fit":@(arguments.shrinkToFit),
+              @"shrink-to-fit":@(0),
               @"width":@(arguments.width),
               @"height":@(arguments.height) };
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to