| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 5 * | 5 * |
| 6 * Other contributors: | 6 * Other contributors: |
| 7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
| 9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
| 10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 #ifndef PaintLayerScrollableArea_h | 44 #ifndef PaintLayerScrollableArea_h |
| 45 #define PaintLayerScrollableArea_h | 45 #define PaintLayerScrollableArea_h |
| 46 | 46 |
| 47 #include <memory> | 47 #include <memory> |
| 48 #include "core/CoreExport.h" | 48 #include "core/CoreExport.h" |
| 49 #include "core/layout/ScrollAnchor.h" | 49 #include "core/layout/ScrollAnchor.h" |
| 50 #include "core/page/scrolling/StickyPositionScrollingConstraints.h" | 50 #include "core/page/scrolling/StickyPositionScrollingConstraints.h" |
| 51 #include "core/paint/PaintInvalidationCapableScrollableArea.h" | 51 #include "core/paint/PaintInvalidationCapableScrollableArea.h" |
| 52 #include "core/paint/PaintLayerFragment.h" | 52 #include "core/paint/PaintLayerFragment.h" |
| 53 #include "core/paint/ScrollbarManager.h" | |
| 54 #include "platform/heap/Handle.h" | 53 #include "platform/heap/Handle.h" |
| 54 #include "platform/scroll/ScrollbarManager.h" |
| 55 #include "platform/wtf/PtrUtil.h" | 55 #include "platform/wtf/PtrUtil.h" |
| 56 | 56 |
| 57 namespace blink { | 57 namespace blink { |
| 58 | 58 |
| 59 enum ResizerHitTestType { kResizerForPointer, kResizerForTouch }; | 59 enum ResizerHitTestType { kResizerForPointer, kResizerForTouch }; |
| 60 | 60 |
| 61 class ComputedStyle; | 61 class ComputedStyle; |
| 62 class HitTestResult; | 62 class HitTestResult; |
| 63 class LayoutBox; | 63 class LayoutBox; |
| 64 class LayoutScrollbarPart; | 64 class LayoutScrollbarPart; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // causing pointless allocation/deallocation thrashing, and potentially | 132 // causing pointless allocation/deallocation thrashing, and potentially |
| 133 // leading to other problems (crbug.com/528940). | 133 // leading to other problems (crbug.com/528940). |
| 134 | 134 |
| 135 // ScrollbarManager allows a ScrollableArea to delay the destruction of a | 135 // ScrollbarManager allows a ScrollableArea to delay the destruction of a |
| 136 // scrollbar that is no longer needed, until the end of multi-pass layout. | 136 // scrollbar that is no longer needed, until the end of multi-pass layout. |
| 137 // If the scrollbar is then re-added before multi-pass layout finishes, the | 137 // If the scrollbar is then re-added before multi-pass layout finishes, the |
| 138 // previously "deleted" scrollbar will be restored, rather than constructing | 138 // previously "deleted" scrollbar will be restored, rather than constructing |
| 139 // a new one. | 139 // a new one. |
| 140 public: | 140 public: |
| 141 ScrollbarManager(PaintLayerScrollableArea& scroller) | 141 ScrollbarManager(PaintLayerScrollableArea& scroller) |
| 142 : blink::ScrollbarManager(scroller) {} | 142 : blink::ScrollbarManager() {} |
| 143 | 143 |
| 144 void SetHasHorizontalScrollbar(bool has_scrollbar) override; | 144 void SetHasHorizontalScrollbar(bool has_scrollbar) override; |
| 145 void SetHasVerticalScrollbar(bool has_scrollbar) override; | 145 void SetHasVerticalScrollbar(bool has_scrollbar) override; |
| 146 | 146 |
| 147 void DestroyDetachedScrollbars(); | 147 void DestroyDetachedScrollbars(); |
| 148 | 148 |
| 149 protected: | 149 protected: |
| 150 Scrollbar* CreateScrollbar(ScrollbarOrientation) override; | 150 Scrollbar* CreateScrollbar(ScrollbarOrientation) override; |
| 151 void DestroyScrollbar(ScrollbarOrientation) override; | 151 void DestroyScrollbar(ScrollbarOrientation) override; |
| 152 | 152 |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 601 |
| 602 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 602 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
| 603 ScrollableArea, | 603 ScrollableArea, |
| 604 scrollableArea, | 604 scrollableArea, |
| 605 scrollableArea->IsPaintLayerScrollableArea(), | 605 scrollableArea->IsPaintLayerScrollableArea(), |
| 606 scrollableArea.IsPaintLayerScrollableArea()); | 606 scrollableArea.IsPaintLayerScrollableArea()); |
| 607 | 607 |
| 608 } // namespace blink | 608 } // namespace blink |
| 609 | 609 |
| 610 #endif // LayerScrollableArea_h | 610 #endif // LayerScrollableArea_h |
| OLD | NEW |