Bug 178923
| Summary: | Find a better way to prevent flicker on enter element fullscreen | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jeremy Jones <jeremyj-wk> |
| Component: | WebKit2 | Assignee: | Jeremy Jones <jeremyj-wk> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | Unspecified | ||
Jeremy Jones
element fullscreen swapping wkebview and the place holder view and changing the style of the WKWebView is pretty bad.
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
_repaintCallback = VoidCallback::create([self](WebKit::CallbackBase::Error) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self _manager]->willEnterFullScreen();
});
});
_page->forceRepaint(_repaintCallback.copyRef());
});
This is currently required to make sure web view is completely laid out before entering fullscreen.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |