| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef LayoutScrollbarPart_h | 26 #ifndef LayoutScrollbarPart_h |
| 27 #define LayoutScrollbarPart_h | 27 #define LayoutScrollbarPart_h |
| 28 | 28 |
| 29 #include "core/layout/LayoutBlock.h" | 29 #include "core/layout/LayoutBlock.h" |
| 30 #include "platform/scroll/ScrollTypes.h" | 30 #include "platform/scroll/ScrollTypes.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class LayoutScrollbar; | 34 class LayoutScrollbar; |
| 35 class ScrollableArea; |
| 35 | 36 |
| 36 class LayoutScrollbarPart final : public LayoutBlock { | 37 class LayoutScrollbarPart final : public LayoutBlock { |
| 37 public: | 38 public: |
| 38 static LayoutScrollbarPart* createAnonymous(Document*, ScrollableArea*, | 39 static LayoutScrollbarPart* createAnonymous(Document*, ScrollableArea*, |
| 39 LayoutScrollbar* = nullptr, ScrollbarPart = NoPart); | 40 LayoutScrollbar* = nullptr, ScrollbarPart = NoPart); |
| 40 ~LayoutScrollbarPart() override; | 41 ~LayoutScrollbarPart() override; |
| 41 | 42 |
| 42 const char* name() const override { return "LayoutScrollbarPart"; } | 43 const char* name() const override { return "LayoutScrollbarPart"; } |
| 43 | 44 |
| 44 PaintLayerType layerTypeRequired() const override { return NoPaintLayer; } | 45 PaintLayerType layerTypeRequired() const override { return NoPaintLayer; } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 UntracedMember<ScrollableArea> m_scrollableArea; | 117 UntracedMember<ScrollableArea> m_scrollableArea; |
| 117 UntracedMember<LayoutScrollbar> m_scrollbar; | 118 UntracedMember<LayoutScrollbar> m_scrollbar; |
| 118 ScrollbarPart m_part; | 119 ScrollbarPart m_part; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutScrollbarPart, isLayoutScrollbarPart()); | 122 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutScrollbarPart, isLayoutScrollbarPart()); |
| 122 | 123 |
| 123 } // namespace blink | 124 } // namespace blink |
| 124 | 125 |
| 125 #endif // LayoutScrollbarPart_h | 126 #endif // LayoutScrollbarPart_h |
| OLD | NEW |