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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Fix build. Update after review. Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 ClipPathDisplayItem_h 5 #ifndef ClipPathDisplayItem_h
6 #define ClipPathDisplayItem_h 6 #define ClipPathDisplayItem_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/Path.h" 9 #include "platform/graphics/Path.h"
10 #include "platform/graphics/paint/DisplayItem.h" 10 #include "platform/graphics/paint/DisplayItem.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 : public PairedEndDisplayItem { 43 : public PairedEndDisplayItem {
44 public: 44 public:
45 EndClipPathDisplayItem(const DisplayItemClient& client) 45 EndClipPathDisplayItem(const DisplayItemClient& client)
46 : PairedEndDisplayItem(client, kEndClipPath, sizeof(*this)) {} 46 : PairedEndDisplayItem(client, kEndClipPath, sizeof(*this)) {}
47 47
48 void replay(GraphicsContext&) const override; 48 void replay(GraphicsContext&) const override;
49 void appendToWebDisplayItemList(const IntRect&, 49 void appendToWebDisplayItemList(const IntRect&,
50 WebDisplayItemList*) const override; 50 WebDisplayItemList*) const override;
51 51
52 private: 52 private:
53 #if ENABLE(ASSERT) 53 #ifdef NDEBUG
54 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { 54 bool isEndAndPairedWith(DisplayItem::Type otherType) const final {
Alexander Alekseev 2016/11/18 22:32:15 This is declared in the base class only if DCHECK_
55 return otherType == kBeginClipPath; 55 return otherType == kBeginClipPath;
56 } 56 }
57 #endif 57 #endif
58 }; 58 };
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // ClipPathDisplayItem_h 62 #endif // ClipPathDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698