Changeset 246934 in webkit
- Timestamp:
- Jun 28, 2019 1:23:12 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246931 r246934 1 2019-06-28 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r239984): pages with custom scrollbars also show normal scrollbars 4 https://bugs.webkit.org/show_bug.cgi?id=199321 5 <rdar://problem/52308095> 6 7 Reviewed by Timothy Hatcher. 8 9 Revert the part of r239984 that made isCustomScrollbar() virtual, since theme().registerScrollbar() 10 calls it from the base class constructor. 11 12 I wasn't able to make a test that tests rendering of overlay scrollbars (webkit.org/b/199323). 13 14 * platform/Scrollbar.cpp: 15 (WebCore::Scrollbar::Scrollbar): 16 * platform/Scrollbar.h: 17 (WebCore::Scrollbar::isCustomScrollbar const): 18 * rendering/RenderScrollbar.cpp: 19 (WebCore::RenderScrollbar::RenderScrollbar): 20 * rendering/RenderScrollbar.h: 21 1 22 2019-06-28 Wenson Hsieh <wenson_hsieh@apple.com> 2 23 -
trunk/Source/WebCore/platform/Scrollbar.cpp
r246488 r246934 55 55 } 56 56 57 Scrollbar::Scrollbar(ScrollableArea& scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize controlSize, ScrollbarTheme* customTheme )57 Scrollbar::Scrollbar(ScrollableArea& scrollableArea, ScrollbarOrientation orientation, ScrollbarControlSize controlSize, ScrollbarTheme* customTheme, bool isCustomScrollbar) 58 58 : m_scrollableArea(scrollableArea) 59 59 , m_orientation(orientation) 60 60 , m_controlSize(controlSize) 61 61 , m_theme(customTheme ? *customTheme : ScrollbarTheme::theme()) 62 , m_isCustomScrollbar(isCustomScrollbar) 62 63 , m_scrollTimer(*this, &Scrollbar::autoscrollTimerFired) 63 64 { -
trunk/Source/WebCore/platform/Scrollbar.h
r239984 r246934 57 57 ScrollableArea& scrollableArea() const { return m_scrollableArea; } 58 58 59 virtual bool isCustomScrollbar() const { return false; }59 bool isCustomScrollbar() const { return m_isCustomScrollbar; } 60 60 ScrollbarOrientation orientation() const { return m_orientation; } 61 61 … … 133 133 134 134 protected: 135 Scrollbar(ScrollableArea&, ScrollbarOrientation, ScrollbarControlSize, ScrollbarTheme* = nullptr );135 Scrollbar(ScrollableArea&, ScrollbarOrientation, ScrollbarControlSize, ScrollbarTheme* = nullptr, bool isCustomScrollbar = false); 136 136 137 137 void updateThumb(); … … 166 166 167 167 bool m_enabled { true }; 168 bool m_isCustomScrollbar { false }; 168 169 169 170 Timer m_scrollTimer; -
trunk/Source/WebCore/rendering/RenderScrollbar.cpp
r239984 r246934 43 43 44 44 RenderScrollbar::RenderScrollbar(ScrollableArea& scrollableArea, ScrollbarOrientation orientation, Element* ownerElement, Frame* owningFrame) 45 : Scrollbar(scrollableArea, orientation, RegularScrollbar, RenderScrollbarTheme::renderScrollbarTheme() )45 : Scrollbar(scrollableArea, orientation, RegularScrollbar, RenderScrollbarTheme::renderScrollbarTheme(), true) 46 46 , m_ownerElement(ownerElement) 47 47 , m_owningFrame(owningFrame) -
trunk/Source/WebCore/rendering/RenderScrollbar.h
r239984 r246934 62 62 RenderScrollbar(ScrollableArea&, ScrollbarOrientation, Element*, Frame*); 63 63 64 bool isCustomScrollbar() const override { return true; }65 64 bool isOverlayScrollbar() const override { return false; } 66 65
Note: See TracChangeset
for help on using the changeset viewer.