| Index: Source/platform/graphics/paint/FloatClipDisplayItem.h
|
| diff --git a/Source/platform/graphics/paint/FloatClipDisplayItem.h b/Source/platform/graphics/paint/FloatClipDisplayItem.h
|
| index 9aa0a866f4030b20d76e161964d14aba49b3ba0a..448a6747b305cdc995073d2f07096b9a65fa8861 100644
|
| --- a/Source/platform/graphics/paint/FloatClipDisplayItem.h
|
| +++ b/Source/platform/graphics/paint/FloatClipDisplayItem.h
|
| @@ -8,20 +8,13 @@
|
| #include "platform/PlatformExport.h"
|
| #include "platform/geometry/FloatRect.h"
|
| #include "platform/graphics/paint/DisplayItem.h"
|
| -#include "wtf/PassOwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| class RoundedRect;
|
|
|
| class PLATFORM_EXPORT FloatClipDisplayItem : public PairedBeginDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(FloatClipDisplayItem);
|
| public:
|
| - static PassOwnPtr<FloatClipDisplayItem> create(const DisplayItemClientWrapper& client, Type type, const FloatRect& clipRect)
|
| - {
|
| - return adoptPtr(new FloatClipDisplayItem(client, type, clipRect));
|
| - }
|
| -
|
| FloatClipDisplayItem(const DisplayItemClientWrapper& client, Type type, const FloatRect& clipRect)
|
| : PairedBeginDisplayItem(client, type)
|
| , m_clipRect(clipRect)
|
| @@ -31,6 +24,7 @@ public:
|
|
|
| virtual void replay(GraphicsContext&) override;
|
| virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
|
| + void appendByMoving(DisplayItems&) override;
|
|
|
| private:
|
| #ifndef NDEBUG
|
| @@ -41,13 +35,7 @@ private:
|
| };
|
|
|
| class PLATFORM_EXPORT EndFloatClipDisplayItem : public PairedEndDisplayItem {
|
| - WTF_MAKE_FAST_ALLOCATED(EndFloatClipDisplayItem);
|
| public:
|
| - static PassOwnPtr<EndFloatClipDisplayItem> create(const DisplayItemClientWrapper& client, Type type)
|
| - {
|
| - return adoptPtr(new EndFloatClipDisplayItem(client, type));
|
| - }
|
| -
|
| EndFloatClipDisplayItem(const DisplayItemClientWrapper& client, Type type)
|
| : PairedEndDisplayItem(client, type)
|
| {
|
| @@ -56,6 +44,7 @@ public:
|
|
|
| virtual void replay(GraphicsContext&) override;
|
| virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
|
| + void appendByMoving(DisplayItems&) override;
|
|
|
| private:
|
| #if ENABLE(ASSERT)
|
|
|