OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ScrollDisplayItem_h | 5 #ifndef ScrollDisplayItem_h |
6 #define ScrollDisplayItem_h | 6 #define ScrollDisplayItem_h |
7 | 7 |
8 #include "platform/geometry/IntSize.h" | 8 #include "platform/geometry/IntSize.h" |
9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
10 #include "wtf/FastAllocBase.h" | 10 #include "wtf/Allocator.h" |
11 #include "wtf/PassOwnPtr.h" | 11 #include "wtf/PassOwnPtr.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class PLATFORM_EXPORT BeginScrollDisplayItem final : public PairedBeginDisplayIt
em { | 15 class PLATFORM_EXPORT BeginScrollDisplayItem final : public PairedBeginDisplayIt
em { |
16 public: | 16 public: |
17 BeginScrollDisplayItem(const DisplayItemClientWrapper& client, Type type, co
nst IntSize& currentOffset) | 17 BeginScrollDisplayItem(const DisplayItemClientWrapper& client, Type type, co
nst IntSize& currentOffset) |
18 : PairedBeginDisplayItem(client, type, sizeof(*this)) | 18 : PairedBeginDisplayItem(client, type, sizeof(*this)) |
19 , m_currentOffset(currentOffset) | 19 , m_currentOffset(currentOffset) |
20 { | 20 { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 private: | 55 private: |
56 #if ENABLE(ASSERT) | 56 #if ENABLE(ASSERT) |
57 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di
splayItem::isScrollType(otherType); } | 57 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di
splayItem::isScrollType(otherType); } |
58 #endif | 58 #endif |
59 }; | 59 }; |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // ScrollDisplayItem_h | 63 #endif // ScrollDisplayItem_h |
OLD | NEW |