-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare <input type=checkbox switch> for multiple animation types
https://bugs.webkit.org/show_bug.cgi?id=265937 Reviewed by Aditya Keerthi. On iOS the switch control will perform two separate types of animations. Make it so that the infrastructure supports that in principle. Also prepare for supporting non-mouse events. * Source/WebCore/html/CheckboxInputType.cpp: (WebCore::CheckboxInputType::handleMouseDownEvent): (WebCore::CheckboxInputType::handleMouseMoveEvent): (WebCore::CheckboxInputType::willDispatchClick): (WebCore::CheckboxInputType::startSwitchPointerTracking): (WebCore::CheckboxInputType::disabledStateChanged): (WebCore::CheckboxInputType::willUpdateCheckedness): (WebCore::switchAnimationUpdateInterval): (WebCore::switchAnimationDuration): (WebCore::CheckboxInputType::switchAnimationStartTime const): (WebCore::CheckboxInputType::setSwitchAnimationStartTime): (WebCore::CheckboxInputType::isSwitchAnimating const): (WebCore::CheckboxInputType::performSwitchAnimation): (WebCore::CheckboxInputType::stopSwitchAnimation): (WebCore::CheckboxInputType::switchAnimationProgress const): (WebCore::CheckboxInputType::switchAnimationVisuallyOnProgress const): (WebCore::CheckboxInputType::updateIsSwitchVisuallyOnFromAbsoluteLocation): (WebCore::CheckboxInputType::switchAnimationTimerFired): (WebCore::switchCheckedChangeAnimationUpdateInterval): Deleted. (WebCore::CheckboxInputType::performSwitchCheckedChangeAnimation): Deleted. (WebCore::CheckboxInputType::stopSwitchCheckedChangeAnimation): Deleted. (WebCore::CheckboxInputType::switchCheckedChangeAnimationProgress const): Deleted. (WebCore::CheckboxInputType::switchCheckedChangeAnimationTimerFired): Deleted. * Source/WebCore/html/CheckboxInputType.h: * Source/WebCore/html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::switchAnimationVisuallyOnProgress const): (WebCore::HTMLInputElement::switchCheckedChangeAnimationProgress const): Deleted. * Source/WebCore/html/HTMLInputElement.h: * Source/WebCore/rendering/RenderTheme.cpp: (WebCore::updateSwitchThumbPartForRenderer): (WebCore::updateSwitchTrackPartForRenderer): * Source/WebCore/rendering/RenderTheme.h: (WebCore::RenderTheme::switchAnimationVisuallyOnDuration const): (WebCore::RenderTheme::switchCheckedChangeAnimationDuration const): Deleted. * Source/WebCore/rendering/RenderThemeMac.h: Canonical link: https://commits.webkit.org/271607@main
- Loading branch information
Showing
7 changed files
with
109 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters