Index: Source/core/svg/SVGLengthListTearOff.h |
diff --git a/Source/platform/graphics/GraphicsLayerDebugInfo.h b/Source/core/svg/SVGLengthListTearOff.h |
similarity index 61% |
copy from Source/platform/graphics/GraphicsLayerDebugInfo.h |
copy to Source/core/svg/SVGLengthListTearOff.h |
index 30f5a2f8a4f7d1d63402839febb65a266ce9b56a..35a062ba7c4130c15dadca2e14c152abaa20335c 100644 |
--- a/Source/platform/graphics/GraphicsLayerDebugInfo.h |
+++ b/Source/core/svg/SVGLengthListTearOff.h |
@@ -28,39 +28,31 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef GraphicsLayerDebugInfo_h |
-#define GraphicsLayerDebugInfo_h |
+#ifndef SVGLengthListTearOff_h |
+#define SVGLengthListTearOff_h |
-#include "platform/JSONValues.h" |
-#include "platform/geometry/LayoutRect.h" |
-#include "platform/graphics/CompositingReasons.h" |
-#include "public/platform/WebGraphicsLayerDebugInfo.h" |
- |
-#include "wtf/Vector.h" |
+#include "core/svg/SVGLengthList.h" |
+#include "core/svg/properties/NewSVGListPropertyTearOffHelper.h" |
namespace WebCore { |
-class GraphicsLayerDebugInfo FINAL : public blink::WebGraphicsLayerDebugInfo { |
+class SVGLengthListTearOff : |
+ public NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>, |
+ public ScriptWrappable { |
public: |
- GraphicsLayerDebugInfo(); |
- virtual ~GraphicsLayerDebugInfo(); |
- |
- virtual void appendAsTraceFormat(blink::WebString* out) const OVERRIDE; |
- |
- GraphicsLayerDebugInfo* clone() const; |
- |
- Vector<LayoutRect>& currentLayoutRects() { return m_currentLayoutRects; } |
- CompositingReasons compositingReasons() const { return m_compositingReasons; } |
- void setCompositingReasons(CompositingReasons reasons) { m_compositingReasons = reasons; } |
+ static PassRefPtr<SVGLengthListTearOff> create(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName()) |
+ { |
+ return adoptRef(new SVGLengthListTearOff(target, contextElement, propertyIsAnimVal, attributeName)); |
+ } |
private: |
- void appendLayoutRects(JSONObject*) const; |
- void appendCompositingReasons(JSONObject*) const; |
- |
- CompositingReasons m_compositingReasons; |
- Vector<LayoutRect> m_currentLayoutRects; |
+ SVGLengthListTearOff(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName()) |
+ : NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>(target, contextElement, propertyIsAnimVal, attributeName) |
+ { |
+ ScriptWrappable::init(this); |
+ } |
}; |
} // namespace WebCore |
-#endif |
+#endif // SVGLengthListTearOff_h_ |