DescriptionMake scrollAnimatorEnabled work on Mac like it does on other platforms
Mac currently has a separate path to enable/disable scroll animations in
Blink. Instead of using the existing Blink setting for scroll animations,
ScrollbarThemeMacCommon sets a flag scrollAnimationEnabledForSystem which
is then checked along side the Blink setting. A side-effect of this is
that --(disable|enable)-scroll-animator doesn't work on Mac and layout
tests default to scroll animations disabled with no way to turn them on.
This patch removes the scrollAnimationEnabledForSystem flag and instead
unifies this setting with how it's handled on other platforms. When Blink
settings are computed, the OSX setting is queried and set into the usual
enable_scroll_animator setting. Changes to the OSX setting cause the
browser process to recalculate and apply new Blink settings.
This allows layout tests to use internals.settings.setScrollAnimatorEnabled
to allow testing of scroll animation semantics on Mac.
BUG=
Committed: https://crrev.com/b9c004266f7f0d0380935dfc8a527bb08409627d
Cr-Commit-Position: refs/heads/master@{#376025}
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : Rebase #Patch Set 4 : Rebase #Patch Set 5 : Added DCHECK that we're querying OS settings in Browser #Patch Set 6 : Also allow IO ML for unit tests #
Total comments: 4
Patch Set 7 : Rebase #Patch Set 8 : Move from base/mac to animation_mac.mm #
Total comments: 10
Patch Set 9 : Addressed comments from avi@ #Patch Set 10 : Also add new files to GN build #Patch Set 11 : Previous patch accidentally lost new files #Messages
Total messages: 46 (17 generated)
|