You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reviewed by Sam Weinig.
Add the ability for PageOverlays to fade in and out
https://bugs.webkit.org/show_bug.cgi?id=58694
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageUninstallPageOverlay):
WebPage::uninstallPageOverlay now takes a boolean. Default to false for now.
* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::findString):
Pass false to uninstallPageOverlay.
(WebKit::FindController::hideFindUI):
Pass true to uninstallPageOverlay.
* WebProcess/WebPage/PageOverlay.cpp:
(WebKit::PageOverlay::PageOverlay):
Initialize new member variables.
(WebKit::PageOverlay::bounds):
Get rid of an unnecessary webPage() getter.
(WebKit::PageOverlay::setPage):
Stop the animation timer.
(WebKit::PageOverlay::startFadeInAnimation):
Update m_fractionFadedIn and call startFadeAnimation.
(WebKit::PageOverlay::startFadeOutAnimation):
Ditto.
(WebKit::PageOverlay::startFadeAnimation):
Initialize m_fadeAnimationStartTime and start the fade animation timer.
(WebKit::PageOverlay::fadeAnimationTimerFired):
Update m_fractionFadedIn and call setNeedsDisplay().
* WebProcess/WebPage/PageOverlay.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::uninstallPageOverlay):
If fadeOut is true, tell the page overlay to start the fade out animation.
When the fade animation is complete, the page overlay will uninstall itself.
Canonical link: https://commits.webkit.org/73776@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0 commit comments