Title: [253081] trunk/Source/WebCore
- Revision
- 253081
- Author
- [email protected]
- Date
- 2019-12-03 18:36:54 -0800 (Tue, 03 Dec 2019)
Log Message
The animation of returning to inline from PiP targets wrong destination rectangle
https://bugs.webkit.org/show_bug.cgi?id=204819
Patch by Peng Liu <[email protected]> on 2019-12-03
Reviewed by Jer Noble.
We have to force AVPlayerViewController's view (which is hidden when it is returning to inline in another tab) to run layout
after we set its target size and position to make sure all layers inside the view have the correct information.
Otherwise, the return to inline animation will be incorrect.
* platform/ios/VideoFullscreenInterfaceAVKit.mm:
(VideoFullscreenInterfaceAVKit::preparedToReturnToInline):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253080 => 253081)
--- trunk/Source/WebCore/ChangeLog 2019-12-04 02:33:05 UTC (rev 253080)
+++ trunk/Source/WebCore/ChangeLog 2019-12-04 02:36:54 UTC (rev 253081)
@@ -1,3 +1,17 @@
+2019-12-03 Peng Liu <[email protected]>
+
+ The animation of returning to inline from PiP targets wrong destination rectangle
+ https://bugs.webkit.org/show_bug.cgi?id=204819
+
+ Reviewed by Jer Noble.
+
+ We have to force AVPlayerViewController's view (which is hidden when it is returning to inline in another tab) to run layout
+ after we set its target size and position to make sure all layers inside the view have the correct information.
+ Otherwise, the return to inline animation will be incorrect.
+
+ * platform/ios/VideoFullscreenInterfaceAVKit.mm:
+ (VideoFullscreenInterfaceAVKit::preparedToReturnToInline):
+
2019-12-03 Doug Kelly <[email protected]>
Assertion when encountering U_OTHER_NEUTRAL in createBidiRunsForLine at end of run
Modified: trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm (253080 => 253081)
--- trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm 2019-12-04 02:33:05 UTC (rev 253080)
+++ trunk/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm 2019-12-04 02:36:54 UTC (rev 253081)
@@ -958,6 +958,8 @@
{
LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::preparedToReturnToInline(%p) - visible(%s)", this, boolString(visible));
setInlineRect(inlineRect, visible);
+ [[m_playerViewController view] setNeedsLayout];
+ [[m_playerViewController view] layoutIfNeeded];
if (m_prepareToInlineCallback) {
WTF::Function<void(bool)> callback = WTFMove(m_prepareToInlineCallback);
callback(visible);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes