| Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
|
| index 606c563f291115167a56c1d84bb573be06fd1c5f..c09f35f39228b636edaae3530f0f52520dee3ad2 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
|
| @@ -46,9 +46,9 @@
|
|
|
| #include "core/CoreExport.h"
|
| #include "core/layout/LayoutBox.h"
|
| -#include "core/paint/PaintInvalidationCapableScrollableArea.h"
|
| #include "core/paint/PaintLayerFragment.h"
|
| #include "platform/heap/Handle.h"
|
| +#include "platform/scroll/ScrollableArea.h"
|
|
|
| namespace blink {
|
|
|
| @@ -97,7 +97,7 @@
|
| // to be painted on top of everything. Hardware accelerated overlay scrollbars
|
| // are painted by their associated GraphicsLayer that sets the paint flag
|
| // PaintLayerPaintingOverlayScrollbars.
|
| -class CORE_EXPORT PaintLayerScrollableArea final : public NoBaseWillBeGarbageCollectedFinalized<PaintLayerScrollableArea>, public PaintInvalidationCapableScrollableArea {
|
| +class CORE_EXPORT PaintLayerScrollableArea final : public NoBaseWillBeGarbageCollectedFinalized<PaintLayerScrollableArea>, public ScrollableArea {
|
| USING_FAST_MALLOC_WILL_BE_REMOVED(PaintLayerScrollableArea);
|
| WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintLayerScrollableArea);
|
| friend class Internals;
|
| @@ -140,7 +140,7 @@
|
|
|
| private:
|
| PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
|
| - void destroyScrollbar(ScrollbarOrientation);
|
| + void destroyScrollbar(ScrollbarOrientation, bool invalidate = false);
|
|
|
| private:
|
| RawPtrWillBeMember<PaintLayerScrollableArea> m_scrollableArea;
|
| @@ -188,7 +188,8 @@
|
| GraphicsLayer* layerForScrollCorner() const override;
|
|
|
| bool usesCompositedScrolling() const override;
|
| - void scrollControlWasSetNeedsPaintInvalidation() override;
|
| + void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
|
| + void invalidateScrollCornerRect(const IntRect&) override;
|
| bool shouldUseIntegerScrollOffset() const override;
|
| bool isActive() const override;
|
| bool isScrollCornerVisible() const override;
|
| @@ -260,7 +261,7 @@
|
|
|
| bool hasScrollbar() const { return hasHorizontalScrollbar() || hasVerticalScrollbar(); }
|
|
|
| - LayoutScrollbarPart* scrollCorner() const override { return m_scrollCorner; }
|
| + LayoutScrollbarPart* scrollCorner() const { return m_scrollCorner; }
|
|
|
| void resize(const PlatformEvent&, const LayoutSize&);
|
| IntSize offsetFromResizeCorner(const IntPoint& absolutePoint) const;
|
| @@ -320,7 +321,7 @@
|
| LayoutBox& box() const;
|
| PaintLayer* layer() const;
|
|
|
| - LayoutScrollbarPart* resizer() const override { return m_resizer; }
|
| + LayoutScrollbarPart* resizer() { return m_resizer; }
|
|
|
| const IntPoint& cachedOverlayScrollbarOffset() { return m_cachedOverlayScrollbarOffset; }
|
| void setCachedOverlayScrollbarOffset(const IntPoint& offset) { m_cachedOverlayScrollbarOffset = offset; }
|
| @@ -364,9 +365,6 @@
|
|
|
| void updateCompositingLayersAfterScroll();
|
|
|
| - // PaintInvalidationCapableScrollableArea
|
| - LayoutBox& boxForScrollControlPaintInvalidation() const { return box(); }
|
| -
|
| PaintLayer& m_layer;
|
|
|
| // Keeps track of whether the layer is currently resizing, so events can cause resizing to start and stop.
|
|
|