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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.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/ClipPathDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
index 721b1ee5b7f6fc467dbb2221b10ccb9e37681398..f679bb31fa90724425f7b16fb30f7d5540087b74 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/ClipPathDisplayItem.h
@@ -15,7 +15,7 @@ namespace blink {
class PLATFORM_EXPORT BeginClipPathDisplayItem final : public PairedBeginDisplayItem {
public:
BeginClipPathDisplayItem(const DisplayItemClient& client, const Path& clipPath)
- : PairedBeginDisplayItem(client, BeginClipPath, sizeof(*this))
+ : PairedBeginDisplayItem(client, kBeginClipPath, sizeof(*this))
, m_clipPath(clipPath.getSkPath()) { }
void replay(GraphicsContext&) const override;
@@ -40,14 +40,14 @@ private:
class PLATFORM_EXPORT EndClipPathDisplayItem final : public PairedEndDisplayItem {
public:
EndClipPathDisplayItem(const DisplayItemClient& client)
- : PairedEndDisplayItem(client, EndClipPath, sizeof(*this)) { }
+ : PairedEndDisplayItem(client, kEndClipPath, 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 == BeginClipPath; }
+ bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return otherType == kBeginClipPath; }
#endif
};

Powered by Google App Engine
This is Rietveld 408576698