Title: [289235] trunk/Source
- Revision
- 289235
- Author
- [email protected]
- Date
- 2022-02-07 11:42:44 -0800 (Mon, 07 Feb 2022)
Log Message
[model] improve sizing on iOS
https://bugs.webkit.org/show_bug.cgi?id=236234
<rdar://problem/88569898>
Reviewed by Darin Adler.
Source/WebCore/PAL:
Add newly-used -[ASVInlinePreview setFrameWithinFencedTransaction:] SPI on iOS.
* pal/spi/ios/SystemPreviewSPI.h:
Source/WebKit:
We must install the fence and invalidate it on the main queue and call
-[ASVInlinePreview setFrameWithinFencedTransaction:] to complete the
resizing process on iOS.
* UIProcess/ios/WKModelView.mm:
(-[WKModelView updateBounds]):
Modified Paths
Diff
Modified: trunk/Source/WebCore/PAL/ChangeLog (289234 => 289235)
--- trunk/Source/WebCore/PAL/ChangeLog 2022-02-07 19:36:36 UTC (rev 289234)
+++ trunk/Source/WebCore/PAL/ChangeLog 2022-02-07 19:42:44 UTC (rev 289235)
@@ -1,3 +1,15 @@
+2022-02-07 Antoine Quint <[email protected]>
+
+ [model] improve sizing on iOS
+ https://bugs.webkit.org/show_bug.cgi?id=236234
+ <rdar://problem/88569898>
+
+ Reviewed by Darin Adler.
+
+ Add newly-used -[ASVInlinePreview setFrameWithinFencedTransaction:] SPI on iOS.
+
+ * pal/spi/ios/SystemPreviewSPI.h:
+
2022-02-02 Alex Christensen <[email protected]>
Use private relay for all subresources if the main document main resource was loaded using private relay
Modified: trunk/Source/WebCore/PAL/pal/spi/ios/SystemPreviewSPI.h (289234 => 289235)
--- trunk/Source/WebCore/PAL/pal/spi/ios/SystemPreviewSPI.h 2022-02-07 19:36:36 UTC (rev 289234)
+++ trunk/Source/WebCore/PAL/pal/spi/ios/SystemPreviewSPI.h 2022-02-07 19:42:44 UTC (rev 289235)
@@ -97,6 +97,7 @@
- (void)setupRemoteConnectionWithCompletionHandler:(void (^)(NSError * _Nullable error))handler;
- (void)preparePreviewOfFileAtURL:(NSURL *)url completionHandler:(void (^)(NSError * _Nullable error))handler;
- (void)updateFrame:(CGRect)newFrame completionHandler:(void (^)(CAFenceHandle * _Nullable fenceHandle, NSError * _Nullable error))handler;
+- (void)setFrameWithinFencedTransaction:(CGRect)frame;
- (void)createFullscreenInstanceWithInitialFrame:(CGRect)initialFrame previewOptions:(NSDictionary *)previewOptions completionHandler:(void (^)(UIViewController *remoteViewController, CAFenceHandle * _Nullable fenceHandle, NSError * _Nullable error))handler;
- (void)observeDismissFullscreenWithCompletionHandler:(void (^)(CAFenceHandle * _Nullable fenceHandle, NSDictionary * _Nonnull payload, NSError * _Nullable error))handler;
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event;
Modified: trunk/Source/WebKit/ChangeLog (289234 => 289235)
--- trunk/Source/WebKit/ChangeLog 2022-02-07 19:36:36 UTC (rev 289234)
+++ trunk/Source/WebKit/ChangeLog 2022-02-07 19:42:44 UTC (rev 289235)
@@ -1,3 +1,18 @@
+2022-02-07 Antoine Quint <[email protected]>
+
+ [model] improve sizing on iOS
+ https://bugs.webkit.org/show_bug.cgi?id=236234
+ <rdar://problem/88569898>
+
+ Reviewed by Darin Adler.
+
+ We must install the fence and invalidate it on the main queue and call
+ -[ASVInlinePreview setFrameWithinFencedTransaction:] to complete the
+ resizing process on iOS.
+
+ * UIProcess/ios/WKModelView.mm:
+ (-[WKModelView updateBounds]):
+
2022-02-07 Per Arne Vollan <[email protected]>
[iOS][WP] Enable sandbox state rules for Mach messages
Modified: trunk/Source/WebKit/UIProcess/ios/WKModelView.mm (289234 => 289235)
--- trunk/Source/WebKit/UIProcess/ios/WKModelView.mm 2022-02-07 19:36:36 UTC (rev 289234)
+++ trunk/Source/WebKit/UIProcess/ios/WKModelView.mm 2022-02-07 19:42:44 UTC (rev 289235)
@@ -157,8 +157,11 @@
return;
}
- [self.layer.context addFence:fenceHandle];
- [fenceHandle invalidate];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [self.layer.context addFence:fenceHandle];
+ [_preview setFrameWithinFencedTransaction:bounds];
+ [fenceHandle invalidate];
+ });
}];
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes