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

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

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
index 185245856b9fca5c56ce3f6662cbb1b4a7fa91cf..0f366824b45c3d001b376011d42db806610eec2b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformDisplayItem.h
@@ -13,7 +13,7 @@ namespace blink {
class PLATFORM_EXPORT BeginTransformDisplayItem final : public PairedBeginDisplayItem {
public:
BeginTransformDisplayItem(const DisplayItemClient& client, const AffineTransform& transform)
- : PairedBeginDisplayItem(client, BeginTransform, sizeof(*this))
+ : PairedBeginDisplayItem(client, kBeginTransform, sizeof(*this))
, m_transform(transform) { }
void replay(GraphicsContext&) const override;
@@ -39,14 +39,14 @@ private:
class PLATFORM_EXPORT EndTransformDisplayItem final : public PairedEndDisplayItem {
public:
EndTransformDisplayItem(const DisplayItemClient& client)
- : PairedEndDisplayItem(client, EndTransform, sizeof(*this)) { }
+ : PairedEndDisplayItem(client, kEndTransform, sizeof(*this)) { }
void replay(GraphicsContext&) const override;
void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const override;
private:
#if ENABLE(ASSERT)
- bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return otherType == BeginTransform; }
+ bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return otherType == kBeginTransform; }
#endif
};

Powered by Google App Engine
This is Rietveld 408576698