Changeset 194307 in webkit


Ignore:
Timestamp:
Dec 18, 2015 5:40:24 PM (8 years ago)
Author:
Simon Fraser
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):

Location:
trunk/Source/WebKit/ios
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ios/ChangeLog

    r192140 r194307  
     12015-12-18  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Turn off "shrink-to-fit" viewport scaling in UIWebViews
     4        https://bugs.webkit.org/show_bug.cgi?id=152451
     5        rdar://problem/23960882
     6
     7        Reviewed by Tim Horton.
     8       
     9        Disable the "shrink to fit" behavior in UIWebViews. This disables it entirely,
     10        even when the page has "shrink-to-fit=yes" in the viewport meta tag.
     11       
     12        Not testable because we can't test actual UIWebView scaling behavior.
     13
     14        * WebCoreSupport/WebChromeClientIOS.mm:
     15        (dictionaryForViewportArguments):
     16
    1172015-11-07  Simon Fraser  <simon.fraser@apple.com>
    218
  • trunk/Source/WebKit/ios/WebCoreSupport/WebChromeClientIOS.mm

    r191908 r194307  
    165165              @"maximum-scale":@(arguments.maxZoom),
    166166              @"user-scalable":@(arguments.userZoom),
    167               @"shrink-to-fit":@(arguments.shrinkToFit),
     167              @"shrink-to-fit":@(0),
    168168              @"width":@(arguments.width),
    169169              @"height":@(arguments.height) };
Note: See TracChangeset for help on using the changeset viewer.