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

Side by Side Diff: Source/WebCore/svg/SVGClipPathElement.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement)
45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) 45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
46 END_REGISTER_ANIMATED_PROPERTIES 46 END_REGISTER_ANIMATED_PROPERTIES
47 47
48 inline SVGClipPathElement::SVGClipPathElement(const QualifiedName& tagName, Docu ment* document) 48 inline SVGClipPathElement::SVGClipPathElement(const QualifiedName& tagName, Docu ment* document)
49 : SVGStyledTransformableElement(tagName, document) 49 : SVGStyledTransformableElement(tagName, document)
50 , m_clipPathUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) 50 , m_clipPathUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)
51 { 51 {
52 ASSERT(hasTagName(SVGNames::clipPathTag)); 52 ASSERT(hasTagName(SVGNames::clipPathTag));
53 ScriptWrappable::init(this);
53 registerAnimatedPropertiesForSVGClipPathElement(); 54 registerAnimatedPropertiesForSVGClipPathElement();
54 } 55 }
55 56
56 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(const QualifiedName& t agName, Document* document) 57 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(const QualifiedName& t agName, Document* document)
57 { 58 {
58 return adoptRef(new SVGClipPathElement(tagName, document)); 59 return adoptRef(new SVGClipPathElement(tagName, document));
59 } 60 }
60 61
61 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName) 62 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName)
62 { 63 {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 120 }
120 121
121 RenderObject* SVGClipPathElement::createRenderer(RenderArena* arena, RenderStyle *) 122 RenderObject* SVGClipPathElement::createRenderer(RenderArena* arena, RenderStyle *)
122 { 123 {
123 return new (arena) RenderSVGResourceClipper(this); 124 return new (arena) RenderSVGResourceClipper(this);
124 } 125 }
125 126
126 } 127 }
127 128
128 #endif // ENABLE(SVG) 129 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGCircleElement.cpp ('k') | Source/WebCore/svg/SVGComponentTransferFunctionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698