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

Side by Side Diff: Source/WebCore/svg/SVGGElement.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
« no previous file with comments | « Source/WebCore/svg/SVGForeignObjectElement.cpp ('k') | Source/WebCore/svg/SVGGlyphElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 26 matching lines...) Expand all
37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGGElement) 37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGGElement)
38 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) 38 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) 39 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement)
40 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) 40 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
41 END_REGISTER_ANIMATED_PROPERTIES 41 END_REGISTER_ANIMATED_PROPERTIES
42 42
43 SVGGElement::SVGGElement(const QualifiedName& tagName, Document* document, Const ructionType constructionType) 43 SVGGElement::SVGGElement(const QualifiedName& tagName, Document* document, Const ructionType constructionType)
44 : SVGStyledTransformableElement(tagName, document, constructionType) 44 : SVGStyledTransformableElement(tagName, document, constructionType)
45 { 45 {
46 ASSERT(hasTagName(SVGNames::gTag)); 46 ASSERT(hasTagName(SVGNames::gTag));
47 ScriptWrappable::init(this);
47 registerAnimatedPropertiesForSVGGElement(); 48 registerAnimatedPropertiesForSVGGElement();
48 } 49 }
49 50
50 PassRefPtr<SVGGElement> SVGGElement::create(const QualifiedName& tagName, Docume nt* document) 51 PassRefPtr<SVGGElement> SVGGElement::create(const QualifiedName& tagName, Docume nt* document)
51 { 52 {
52 return adoptRef(new SVGGElement(tagName, document)); 53 return adoptRef(new SVGGElement(tagName, document));
53 } 54 }
54 55
55 bool SVGGElement::isSupportedAttribute(const QualifiedName& attrName) 56 bool SVGGElement::isSupportedAttribute(const QualifiedName& attrName)
56 { 57 {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool SVGGElement::rendererIsNeeded(const NodeRenderingContext&) 112 bool SVGGElement::rendererIsNeeded(const NodeRenderingContext&)
112 { 113 {
113 // Unlike SVGStyledElement::rendererIsNeeded(), we still create renderers, e ven if 114 // Unlike SVGStyledElement::rendererIsNeeded(), we still create renderers, e ven if
114 // display is set to 'none' - which is special to SVG <g> container elements . 115 // display is set to 'none' - which is special to SVG <g> container elements .
115 return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElem ent(); 116 return parentOrShadowHostElement() && parentOrShadowHostElement()->isSVGElem ent();
116 } 117 }
117 118
118 } 119 }
119 120
120 #endif // ENABLE(SVG) 121 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGForeignObjectElement.cpp ('k') | Source/WebCore/svg/SVGGlyphElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698