Title: [186223] trunk/Source/WebKit
Revision
186223
Author
timothy_hor...@apple.com
Date
2015-07-02 00:36:19 -0700 (Thu, 02 Jul 2015)

Log Message

iOS WebKitLegacy should match WebKit2's viewport behavior
https://bugs.webkit.org/show_bug.cgi?id=146540
<rdar://problem/20574017>

Reviewed by Dan Bernstein.

A number of changes have been made to WebKit2's viewport behavior
to make it possible to scale "responsive" sites that misbehave (lay out
in a non-responsive way).

* History/WebHistoryItem.mm:
* History/WebHistoryItemPrivate.h:
Add the plumbing required to implement these new behaviors in WebKit1.

* WebKit.iOS.exp:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ios/ChangeLog (186222 => 186223)


--- trunk/Source/WebKit/ios/ChangeLog	2015-07-02 07:27:27 UTC (rev 186222)
+++ trunk/Source/WebKit/ios/ChangeLog	2015-07-02 07:36:19 UTC (rev 186223)
@@ -1,3 +1,13 @@
+2015-07-02  Timothy Horton  <timothy_hor...@apple.com>
+
+        iOS WebKitLegacy should match WebKit2's viewport behavior
+        https://bugs.webkit.org/show_bug.cgi?id=146540
+        <rdar://problem/20574017>
+
+        Reviewed by Dan Bernstein.
+
+        * WebKit.iOS.exp:
+
 2015-06-25  Joseph Pecoraro  <pecor...@apple.com>
 
         Unreviewed, attempt to fix the iOS build after r185968.

Modified: trunk/Source/WebKit/ios/WebKit.iOS.exp (186222 => 186223)


--- trunk/Source/WebKit/ios/WebKit.iOS.exp	2015-07-02 07:27:27 UTC (rev 186222)
+++ trunk/Source/WebKit/ios/WebKit.iOS.exp	2015-07-02 07:36:19 UTC (rev 186223)
@@ -21,6 +21,7 @@
 _WebViewportMaximumScaleKey
 _WebViewportMinimumScaleKey
 _WebViewportUserScalableKey
+_WebViewportShrinkToFitKey
 _WebViewportWidthKey
 
 # So that we can use the MemoryMeasure class in MobileSafari

Modified: trunk/Source/WebKit/mac/ChangeLog (186222 => 186223)


--- trunk/Source/WebKit/mac/ChangeLog	2015-07-02 07:27:27 UTC (rev 186222)
+++ trunk/Source/WebKit/mac/ChangeLog	2015-07-02 07:36:19 UTC (rev 186223)
@@ -1,3 +1,19 @@
+2015-07-02  Timothy Horton  <timothy_hor...@apple.com>
+
+        iOS WebKitLegacy should match WebKit2's viewport behavior
+        https://bugs.webkit.org/show_bug.cgi?id=146540
+        <rdar://problem/20574017>
+
+        Reviewed by Dan Bernstein.
+
+        A number of changes have been made to WebKit2's viewport behavior
+        to make it possible to scale "responsive" sites that misbehave (lay out
+        in a non-responsive way).
+
+        * History/WebHistoryItem.mm:
+        * History/WebHistoryItemPrivate.h:
+        Add the plumbing required to implement these new behaviors in WebKit1.
+
 2015-07-01  Dean Jackson  <d...@apple.com>
 
         Disable the experimental WebGL2 implementation

Modified: trunk/Source/WebKit/mac/History/WebHistoryItem.mm (186222 => 186223)


--- trunk/Source/WebKit/mac/History/WebHistoryItem.mm	2015-07-02 07:27:27 UTC (rev 186222)
+++ trunk/Source/WebKit/mac/History/WebHistoryItem.mm	2015-07-02 07:36:19 UTC (rev 186223)
@@ -62,6 +62,7 @@
 NSString *WebViewportMinimumScaleKey = @"minimum-scale";
 NSString *WebViewportMaximumScaleKey = @"maximum-scale";
 NSString *WebViewportUserScalableKey = @"user-scalable";
+NSString *WebViewportShrinkToFitKey  = @"shrink-to-fit";
 NSString *WebViewportWidthKey        = @"width";
 NSString *WebViewportHeightKey       = @"height";
 
@@ -613,6 +614,7 @@
     [argumentsDictionary setObject:[NSNumber numberWithFloat:viewportArguments.width] forKey:WebViewportWidthKey];
     [argumentsDictionary setObject:[NSNumber numberWithFloat:viewportArguments.height] forKey:WebViewportHeightKey];
     [argumentsDictionary setObject:[NSNumber numberWithFloat:viewportArguments.userZoom] forKey:WebViewportUserScalableKey];
+    [argumentsDictionary setObject:[NSNumber numberWithFloat:viewportArguments.shrinkToFit] forKey:WebViewportShrinkToFitKey];
     return argumentsDictionary;
 }
 
@@ -625,6 +627,7 @@
     viewportArguments.width = [[arguments objectForKey:WebViewportWidthKey] floatValue];
     viewportArguments.height = [[arguments objectForKey:WebViewportHeightKey] floatValue];
     viewportArguments.userZoom = [[arguments objectForKey:WebViewportUserScalableKey] floatValue];
+    viewportArguments.shrinkToFit = [[arguments objectForKey:WebViewportShrinkToFitKey] floatValue];
     core(_private)->setViewportArguments(viewportArguments);
 }
 

Modified: trunk/Source/WebKit/mac/History/WebHistoryItemPrivate.h (186222 => 186223)


--- trunk/Source/WebKit/mac/History/WebHistoryItemPrivate.h	2015-07-02 07:27:27 UTC (rev 186222)
+++ trunk/Source/WebKit/mac/History/WebHistoryItemPrivate.h	2015-07-02 07:36:19 UTC (rev 186223)
@@ -33,6 +33,7 @@
 extern NSString *WebViewportMinimumScaleKey;
 extern NSString *WebViewportMaximumScaleKey;
 extern NSString *WebViewportUserScalableKey;
+extern NSString *WebViewportShrinkToFitKey;
 extern NSString *WebViewportWidthKey;
 extern NSString *WebViewportHeightKey;
 #endif
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to