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

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

Issue 2530493002: WebKit: make #if DCHECK_IS_ON consistent in third_party/WebKit/Source/platform/ (Closed)
Patch Set: Created 4 years 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"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 EndFloatClipDisplayItem(const DisplayItemClient& client, Type type) 45 EndFloatClipDisplayItem(const DisplayItemClient& client, Type type)
46 : PairedEndDisplayItem(client, type, sizeof(*this)) { 46 : PairedEndDisplayItem(client, type, sizeof(*this)) {
47 ASSERT(isEndFloatClipType(type)); 47 ASSERT(isEndFloatClipType(type));
48 } 48 }
49 49
50 void replay(GraphicsContext&) const override; 50 void replay(GraphicsContext&) const override;
51 void appendToWebDisplayItemList(const IntRect&, 51 void appendToWebDisplayItemList(const IntRect&,
52 WebDisplayItemList*) const override; 52 WebDisplayItemList*) const override;
53 53
54 private: 54 private:
55 #if ENABLE(ASSERT) 55 #if DCHECK_IS_ON()
56 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { 56 bool isEndAndPairedWith(DisplayItem::Type otherType) const final {
57 return DisplayItem::isFloatClipType(otherType); 57 return DisplayItem::isFloatClipType(otherType);
58 } 58 }
59 #endif 59 #endif
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // FloatClipDisplayItem_h 64 #endif // FloatClipDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698