Title: [246357] trunk/Source/WebKit
Revision
246357
Author
[email protected]
Date
2019-06-12 09:45:39 -0700 (Wed, 12 Jun 2019)

Log Message

Many layout tests are failing on iPad simulator due to unexpected viewport dimensions
https://bugs.webkit.org/show_bug.cgi?id=198789
<rdar://problem/51595519>

Reviewed by Simon Fraser.

Prevent the shrink-to-fit-content timer from activating on layout tests that use the testing viewport
configuration.

* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::immediatelyShrinkToFitContent):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (246356 => 246357)


--- trunk/Source/WebKit/ChangeLog	2019-06-12 16:29:38 UTC (rev 246356)
+++ trunk/Source/WebKit/ChangeLog	2019-06-12 16:45:39 UTC (rev 246357)
@@ -1,3 +1,17 @@
+2019-06-12  Wenson Hsieh  <[email protected]>
+
+        Many layout tests are failing on iPad simulator due to unexpected viewport dimensions
+        https://bugs.webkit.org/show_bug.cgi?id=198789
+        <rdar://problem/51595519>
+
+        Reviewed by Simon Fraser.
+
+        Prevent the shrink-to-fit-content timer from activating on layout tests that use the testing viewport
+        configuration.
+
+        * WebProcess/WebPage/ios/WebPageIOS.mm:
+        (WebKit::WebPage::immediatelyShrinkToFitContent):
+
 2019-06-12  Michael Catanzaro  <[email protected]>
 
         [WPE][GTK] Deprecate WebSQL APIs

Modified: trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm (246356 => 246357)


--- trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm	2019-06-12 16:29:38 UTC (rev 246356)
+++ trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm	2019-06-12 16:45:39 UTC (rev 246357)
@@ -3269,6 +3269,9 @@
     if (!m_page->settings().allowViewportShrinkToFitContent())
         return false;
 
+    if (m_useTestingViewportConfiguration)
+        return false;
+
     if (!shouldIgnoreMetaViewport())
         return false;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to