mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
browser(webkit): correctly report outerWidth/Height on Mac (#3131)
This commit is contained in:
parent
c1032ae483
commit
74941340be
@ -1,2 +1,2 @@
|
|||||||
1315
|
1316
|
||||||
Changed: lushnikov@chromium.org Thu Jul 23 09:56:07 PDT 2020
|
Changed: yurys@chromium.org Thu Jul 23 16:12:30 PDT 2020
|
||||||
|
@ -368,6 +368,11 @@ const NSActivityOptions ActivityOptions =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)_webView:(WKWebView *)webView getWindowFrameWithCompletionHandler:(void (^)(CGRect))completionHandler
|
||||||
|
{
|
||||||
|
completionHandler([webView.window frame]);
|
||||||
|
}
|
||||||
|
|
||||||
- (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler
|
- (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler
|
||||||
{
|
{
|
||||||
WebViewDialog* dialog = [[WebViewDialog alloc] autorelease];
|
WebViewDialog* dialog = [[WebViewDialog alloc] autorelease];
|
||||||
|
@ -421,6 +421,11 @@ static BOOL areEssentiallyEqual(double a, double b)
|
|||||||
[self.window close];
|
[self.window close];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)_webView:(WKWebView *)webView getWindowFrameWithCompletionHandler:(void (^)(CGRect))completionHandler
|
||||||
|
{
|
||||||
|
completionHandler([self.window frame]);
|
||||||
|
}
|
||||||
|
|
||||||
#define DefaultMinimumZoomFactor (.5)
|
#define DefaultMinimumZoomFactor (.5)
|
||||||
#define DefaultMaximumZoomFactor (3.0)
|
#define DefaultMaximumZoomFactor (3.0)
|
||||||
#define DefaultZoomFactorRatio (1.2)
|
#define DefaultZoomFactorRatio (1.2)
|
||||||
|
Loading…
Reference in New Issue
Block a user