Title: [251309] trunk
- Revision
- 251309
- Author
- rn...@webkit.org
- Date
- 2019-10-18 16:36:36 -0700 (Fri, 18 Oct 2019)
Log Message
[iOS] REGRESSION(r251269): fast/events/ios/rotation/do-not-shrink-to-fit-content-after-rotation.html and fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html fail
https://bugs.webkit.org/show_bug.cgi?id=203162
<rdar://problem/56418459>
Reviewed by Simon Fraser.
Source/WebKit:
Synchronously update the rendering before the orientation change and other viewport size updates.
Otherwise, resize event will be dispatched in the middle of orientation animation,
and would result in non-determistic results.
* WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::dynamicViewportSizeUpdate):
LayoutTests:
Rebaselined the test now that the order of execution of orientationchange and resize events have changed.
* fast/events/ios/rotation/layout-viewport-during-safari-type-rotation-expected.txt:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (251308 => 251309)
--- trunk/LayoutTests/ChangeLog 2019-10-18 23:34:36 UTC (rev 251308)
+++ trunk/LayoutTests/ChangeLog 2019-10-18 23:36:36 UTC (rev 251309)
@@ -1,3 +1,15 @@
+2019-10-18 Ryosuke Niwa <rn...@webkit.org>
+
+ [iOS] REGRESSION(r251269): fast/events/ios/rotation/do-not-shrink-to-fit-content-after-rotation.html and fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html fail
+ https://bugs.webkit.org/show_bug.cgi?id=203162
+ <rdar://problem/56418459>
+
+ Reviewed by Simon Fraser.
+
+ Rebaselined the test now that the order of execution of orientationchange and resize events have changed.
+
+ * fast/events/ios/rotation/layout-viewport-during-safari-type-rotation-expected.txt:
+
2019-10-18 Devin Rousso <drou...@apple.com>
Web Inspector: Elements: allow WebKit engineers to edit UserAgent shadow trees
Modified: trunk/LayoutTests/fast/events/ios/rotation/layout-viewport-during-safari-type-rotation-expected.txt (251308 => 251309)
--- trunk/LayoutTests/fast/events/ios/rotation/layout-viewport-during-safari-type-rotation-expected.txt 2019-10-18 23:34:36 UTC (rev 251308)
+++ trunk/LayoutTests/fast/events/ios/rotation/layout-viewport-during-safari-type-rotation-expected.txt 2019-10-18 23:36:36 UTC (rev 251309)
@@ -5,11 +5,11 @@
In orientationchange event handler:
(This will trigger the resize handler by forcing a layout.)
-
-In resize event handler:
layoutViewport: 0, 0 - 568 x 320
visualViewport: 0, 0 - 568 x 320
client rect of fixed object:0, 0 - 568 x 320
+
+In resize event handler:
layoutViewport: 0, 0 - 568 x 320
visualViewport: 0, 0 - 568 x 320
client rect of fixed object:0, 0 - 568 x 320
Modified: trunk/Source/WebKit/ChangeLog (251308 => 251309)
--- trunk/Source/WebKit/ChangeLog 2019-10-18 23:34:36 UTC (rev 251308)
+++ trunk/Source/WebKit/ChangeLog 2019-10-18 23:36:36 UTC (rev 251309)
@@ -1,3 +1,19 @@
+2019-10-18 Ryosuke Niwa <rn...@webkit.org>
+
+ [iOS] REGRESSION(r251269): fast/events/ios/rotation/do-not-shrink-to-fit-content-after-rotation.html and fast/events/ios/rotation/layout-viewport-during-safari-type-rotation.html fail
+ https://bugs.webkit.org/show_bug.cgi?id=203162
+ <rdar://problem/56418459>
+
+ Reviewed by Simon Fraser.
+
+ Synchronously update the rendering before the orientation change and other viewport size updates.
+
+ Otherwise, resize event will be dispatched in the middle of orientation animation,
+ and would result in non-determistic results.
+
+ * WebProcess/WebPage/ios/WebPageIOS.mm:
+ (WebKit::WebPage::dynamicViewportSizeUpdate):
+
2019-10-18 Chris Dumez <cdu...@apple.com>
[iOS] "Unexpectedly Resumed" process assertion may cause us to get terminated
Modified: trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm (251308 => 251309)
--- trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm 2019-10-18 23:34:36 UTC (rev 251308)
+++ trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm 2019-10-18 23:36:36 UTC (rev 251309)
@@ -3309,6 +3309,8 @@
setDeviceOrientation(deviceOrientation);
frameView.setScrollOffset(roundedUnobscuredContentRectPosition);
+ m_page->updateRendering();
+
#if ENABLE(VIEWPORT_RESIZING)
if (immediatelyShrinkToFitContent())
viewportConfigurationChanged();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes