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

Unified Diff: Source/core/svg/SVGLengthListTearOff.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert aggressive svgAttributeChanged, add NeedsRebaseline Created 6 years, 11 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
« no previous file with comments | « Source/core/svg/SVGLengthList.idl ('k') | Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « Source/core/svg/SVGLengthList.idl ('k') | Source/core/svg/SVGLengthTearOff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698