Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/FloatClipDisplayItem.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 FloatClipDisplayItem_h 5 #ifndef FloatClipDisplayItem_h
6 #define FloatClipDisplayItem_h 6 #define FloatClipDisplayItem_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/geometry/FloatRect.h" 9 #include "platform/geometry/FloatRect.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
11 #include "wtf/PassOwnPtr.h"
12 11
13 namespace blink { 12 namespace blink {
14 13
15 class RoundedRect; 14 class RoundedRect;
16 15
17 class PLATFORM_EXPORT FloatClipDisplayItem final : public PairedBeginDisplayItem { 16 class PLATFORM_EXPORT FloatClipDisplayItem final : public PairedBeginDisplayItem {
18 public: 17 public:
19 FloatClipDisplayItem(const DisplayItemClient& client, Type type, const Float Rect& clipRect) 18 FloatClipDisplayItem(const DisplayItemClient& client, Type type, const Float Rect& clipRect)
20 : PairedBeginDisplayItem(client, type, sizeof(*this)) 19 : PairedBeginDisplayItem(client, type, sizeof(*this))
21 , m_clipRect(clipRect) 20 , m_clipRect(clipRect)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 53
55 private: 54 private:
56 #if ENABLE(ASSERT) 55 #if ENABLE(ASSERT)
57 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di splayItem::isFloatClipType(otherType); } 56 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return Di splayItem::isFloatClipType(otherType); }
58 #endif 57 #endif
59 }; 58 };
60 59
61 } // namespace blink 60 } // namespace blink
62 61
63 #endif // FloatClipDisplayItem_h 62 #endif // FloatClipDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698