| 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..39a094818c68ba965a86953c1994ebadc38902c2 100644
|
| --- a/Source/platform/graphics/paint/ClipPathDisplayItem.h
|
| +++ b/Source/platform/graphics/paint/ClipPathDisplayItem.h
|
| @@ -14,19 +14,16 @@
|
| namespace blink {
|
|
|
| class PLATFORM_EXPORT BeginClipPathDisplayItem : public PairedBeginDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(BeginClipPathDisplayItem);
|
| public:
|
| - static PassOwnPtr<BeginClipPathDisplayItem> create(const DisplayItemClientWrapper& client, const Path& clipPath)
|
| - {
|
| - return adoptPtr(new BeginClipPathDisplayItem(client, clipPath));
|
| - }
|
| -
|
| - BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const Path& clipPath)
|
| + BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const SkPath& clipPath)
|
| : PairedBeginDisplayItem(client, BeginClipPath)
|
| - , m_clipPath(clipPath.skPath()) { }
|
| + , m_clipPath(clipPath) { }
|
| + BeginClipPathDisplayItem(const DisplayItemClientWrapper& client, const Path& clipPath)
|
| + : BeginClipPathDisplayItem(client, clipPath.skPath()) { }
|
|
|
| virtual void replay(GraphicsContext&) override;
|
| virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
|
| + void appendByMoving(DisplayItems&) override;
|
|
|
| private:
|
| const SkPath m_clipPath;
|
| @@ -36,18 +33,13 @@ private:
|
| };
|
|
|
| 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;
|
| + void appendByMoving(DisplayItems&) override;
|
|
|
| private:
|
| #if ENABLE(ASSERT)
|
|
|