| Index: Source/platform/graphics/paint/ClipPathDisplayItem.h
|
| diff --git a/Source/platform/graphics/paint/ClipPathDisplayItem.h b/Source/platform/graphics/paint/ClipPathDisplayItem.h
|
| index 23238873bad2711d33a550c99e3b3c282511c4d5..7b605b1f457bf30b00eddbb166723b0a7147cb4e 100644
|
| --- a/Source/platform/graphics/paint/ClipPathDisplayItem.h
|
| +++ b/Source/platform/graphics/paint/ClipPathDisplayItem.h
|
| @@ -14,38 +14,24 @@
|
| namespace blink {
|
|
|
| class PLATFORM_EXPORT BeginClipPathDisplayItem : public PairedBeginDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(BeginClipPathDisplayItem);
|
| public:
|
| - static PassOwnPtr<BeginClipPathDisplayItem> create(const DisplayItemClientWrapper& client, const Path& clipPath)
|
| + void setNew(const Path& clipPath)
|
| {
|
| - return adoptPtr(new BeginClipPathDisplayItem(client, clipPath));
|
| + m_clipPath = clipPath.skPath();
|
| }
|
|
|
| - BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const Path& clipPath)
|
| - : PairedBeginDisplayItem(client, BeginClipPath)
|
| - , m_clipPath(clipPath.skPath()) { }
|
| -
|
| virtual void replay(GraphicsContext&) override;
|
| virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
|
|
|
| private:
|
| - const SkPath m_clipPath;
|
| + SkPath m_clipPath;
|
| #ifndef NDEBUG
|
| virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
|
| #endif
|
| };
|
|
|
| class PLATFORM_EXPORT EndClipPathDisplayItem : public PairedEndDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(EndClipPathDisplayItem);
|
| public:
|
| - static PassOwnPtr<EndClipPathDisplayItem> create(const DisplayItemClientWrapper& client)
|
| - {
|
| - return adoptPtr(new EndClipPathDisplayItem(client));
|
| - }
|
| -
|
| - EndClipPathDisplayItem(const DisplayItemClientWrapper& client)
|
| - : PairedEndDisplayItem(client, EndClipPath) { }
|
| -
|
| virtual void replay(GraphicsContext&) override;
|
| virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
|
|
|
|
|