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

Side by Side Diff: Source/WebCore/svg/SVGRadialGradientElement.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/SVGPolylineElement.cpp ('k') | Source/WebCore/svg/SVGRectElement.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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 : SVGGradientElement(tagName, document) 62 : SVGGradientElement(tagName, document)
63 , m_cx(LengthModeWidth, "50%") 63 , m_cx(LengthModeWidth, "50%")
64 , m_cy(LengthModeHeight, "50%") 64 , m_cy(LengthModeHeight, "50%")
65 , m_r(LengthModeOther, "50%") 65 , m_r(LengthModeOther, "50%")
66 , m_fx(LengthModeWidth) 66 , m_fx(LengthModeWidth)
67 , m_fy(LengthModeHeight) 67 , m_fy(LengthModeHeight)
68 , m_fr(LengthModeOther, "0%") 68 , m_fr(LengthModeOther, "0%")
69 { 69 {
70 // Spec: If the cx/cy/r/fr attribute is not specified, the effect is as if a value of "50%" were specified. 70 // Spec: If the cx/cy/r/fr attribute is not specified, the effect is as if a value of "50%" were specified.
71 ASSERT(hasTagName(SVGNames::radialGradientTag)); 71 ASSERT(hasTagName(SVGNames::radialGradientTag));
72 ScriptWrappable::init(this);
72 registerAnimatedPropertiesForSVGRadialGradientElement(); 73 registerAnimatedPropertiesForSVGRadialGradientElement();
73 } 74 }
74 75
75 PassRefPtr<SVGRadialGradientElement> SVGRadialGradientElement::create(const Qual ifiedName& tagName, Document* document) 76 PassRefPtr<SVGRadialGradientElement> SVGRadialGradientElement::create(const Qual ifiedName& tagName, Document* document)
76 { 77 {
77 return adoptRef(new SVGRadialGradientElement(tagName, document)); 78 return adoptRef(new SVGRadialGradientElement(tagName, document));
78 } 79 }
79 80
80 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam e) 81 bool SVGRadialGradientElement::isSupportedAttribute(const QualifiedName& attrNam e)
81 { 82 {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 || cy().isRelative() 220 || cy().isRelative()
220 || r().isRelative() 221 || r().isRelative()
221 || fx().isRelative() 222 || fx().isRelative()
222 || fy().isRelative() 223 || fy().isRelative()
223 || fr().isRelative(); 224 || fr().isRelative();
224 } 225 }
225 226
226 } 227 }
227 228
228 #endif // ENABLE(SVG) 229 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGPolylineElement.cpp ('k') | Source/WebCore/svg/SVGRectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698