Remove WKPageSetVisibilityState
https://bugs.webkit.org/show_bug.cgi?id=128551
Reviewed by Anders Carlsson.
Source/WebKit2:
Made prerender state automatic. We should move this further
up into WebCore, but this requires refactoring for the Page
construction order.
* Shared/API/c/WKDeprecatedFunctions.cpp:
(WKPageSetVisibilityState):
- deprecated.
* UIProcess/API/C/WKPage.cpp:
- removed WKPageSetVisibilityState.
* UIProcess/API/C/WKPage.h:
- removed WKPageSetVisibilityState.
* UIProcess/WebPageProxy.cpp:
- removed setVisibilityStatePrerender.
* UIProcess/WebPageProxy.h:
- removed setVisibilityStatePrerender.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):
- removed setVisibilityStatePrerender.
- When creating a Page, automatically set the prerender state.
* WebProcess/WebPage/WebPage.h:
- removed setVisibilityStatePrerender.
* WebProcess/WebPage/WebPage.messages.in:
- removed SetVisibilityStatePrerender.
Tools:
* TestWebKitAPI/Tests/mac/PageVisibilityStateWithWindowChanges.mm:
(TestWebKitAPI::PageVisibilityStateWithWindowChanges::initializeView):
(TestWebKitAPI::PageVisibilityStateWithWindowChanges::runTest):
- visibilityState of offs-creen WKView is automatically prerender.
* WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
(WTR::InjectedBundle::setHidden):
* WebKitTestRunner/InjectedBundle/InjectedBundle.h:
* WebKitTestRunner/InjectedBundle/TestRunner.cpp:
(WTR::TestRunner::setPageVisibility):
(WTR::TestRunner::resetPageVisibility):
* WebKitTestRunner/TestController.cpp:
* WebKitTestRunner/TestController.h:
* WebKitTestRunner/TestInvocation.cpp:
(WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
- removed calls to WKPageSetVisibilityState.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@163821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed