DescriptionSplit NativeThemeAura into Overlay and NonOverlay versions.
This patch moves the overlay scrollbar functionality from NativeThemeAura out
into NativeThemeAuraOverlay. This allows Views code to continue using
non-overlay scrollbars while web content uses overlays.
I've also replaced the check for overlays from ui::IsOverlayScrollbarEnabled to
a bool passed in by the caller. IsOverlayScrollbarEnabled is statically
determined and is meant to indicate behavior in stable for end-users. Based on
its value, Chrome sets the Blink overlay scrollbar RuntimeEnabledFeature.
However, tests mostly run with this REF disabled so we need some way to
determine which NativeTheme to use at runtime. Otherwise, these tests will run
with Blink thinking it's using non-overlay scrollbars but when Blink asks
NativeTheme to do some painting, NativeTheme thinks it's using the overlay
theme. Now Blink passes the value of the REF so that we always choose the
correct NativeTheme.
BUG=307091
Patch Set 1 #Patch Set 2 : Forgot to add new files #Patch Set 3 : Fix site per process test #Patch Set 4 : Fix #
Dependent Patchsets: Messages
Total messages: 16 (12 generated)
|