Title: [207555] trunk/Source/WebKit/mac
Revision
207555
Author
simon.fra...@apple.com
Date
2016-10-19 12:07:28 -0700 (Wed, 19 Oct 2016)

Log Message

WebView needs to initialize the visualViewportEnabled Setting from WebKit preferences
https://bugs.webkit.org/show_bug.cgi?id=163680

Reviewed by Dean Jackson.

Add code to set the Setting from WebKit prefs. This code is a mess and needs to be autogenerated.

* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (207554 => 207555)


--- trunk/Source/WebKit/mac/ChangeLog	2016-10-19 19:04:35 UTC (rev 207554)
+++ trunk/Source/WebKit/mac/ChangeLog	2016-10-19 19:07:28 UTC (rev 207555)
@@ -1,3 +1,15 @@
+2016-10-19  Simon Fraser  <simon.fra...@apple.com>
+
+        WebView needs to initialize the visualViewportEnabled Setting from WebKit preferences
+        https://bugs.webkit.org/show_bug.cgi?id=163680
+
+        Reviewed by Dean Jackson.
+
+        Add code to set the Setting from WebKit prefs. This code is a mess and needs to be autogenerated.
+
+        * WebView/WebView.mm:
+        (-[WebView _preferencesChanged:]):
+
 2016-10-19  Darin Adler  <da...@apple.com>
 
         Move XPath from ExceptionCode to Exception

Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (207554 => 207555)


--- trunk/Source/WebKit/mac/WebView/WebView.mm	2016-10-19 19:04:35 UTC (rev 207554)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm	2016-10-19 19:07:28 UTC (rev 207555)
@@ -2410,6 +2410,8 @@
     settings.setAllowDisplayOfInsecureContent(shouldAllowDisplayAndRunningOfInsecureContent());
     settings.setAllowRunningOfInsecureContent(shouldAllowDisplayAndRunningOfInsecureContent());
 
+    settings.setVisualViewportEnabled([preferences visualViewportEnabled]);
+
     switch ([preferences storageBlockingPolicy]) {
     case WebAllowAllStorage:
         settings.setStorageBlockingPolicy(SecurityOrigin::AllowAllStorage);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to