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

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

Issue 2530493002: WebKit: make #if DCHECK_IS_ON consistent in third_party/WebKit/Source/platform/ (Closed)
Patch Set: 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 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 TransformDisplayItem_h 5 #ifndef TransformDisplayItem_h
6 #define TransformDisplayItem_h 6 #define TransformDisplayItem_h
7 7
8 #include "platform/graphics/paint/DisplayItem.h" 8 #include "platform/graphics/paint/DisplayItem.h"
9 #include "platform/transforms/AffineTransform.h" 9 #include "platform/transforms/AffineTransform.h"
10 10
(...skipping 30 matching lines...) Expand all
41 : public PairedEndDisplayItem { 41 : public PairedEndDisplayItem {
42 public: 42 public:
43 EndTransformDisplayItem(const DisplayItemClient& client) 43 EndTransformDisplayItem(const DisplayItemClient& client)
44 : PairedEndDisplayItem(client, kEndTransform, sizeof(*this)) {} 44 : PairedEndDisplayItem(client, kEndTransform, sizeof(*this)) {}
45 45
46 void replay(GraphicsContext&) const override; 46 void replay(GraphicsContext&) const override;
47 void appendToWebDisplayItemList(const IntRect&, 47 void appendToWebDisplayItemList(const IntRect&,
48 WebDisplayItemList*) const override; 48 WebDisplayItemList*) const override;
49 49
50 private: 50 private:
51 #if ENABLE(ASSERT) 51 #if DCHECK_IS_ON()
52 bool isEndAndPairedWith(DisplayItem::Type otherType) const final { 52 bool isEndAndPairedWith(DisplayItem::Type otherType) const final {
53 return otherType == kBeginTransform; 53 return otherType == kBeginTransform;
54 } 54 }
55 #endif 55 #endif
56 }; 56 };
57 57
58 } // namespace blink 58 } // namespace blink
59 59
60 #endif // TransformDisplayItem_h 60 #endif // TransformDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698