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

Side by Side Diff: Source/core/svg/SVGRectElement.cpp

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 9 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, 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 * 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L engthModeHeight))) 44 , m_ry(SVGAnimatedLength::create(this, SVGNames::ryAttr, SVGLength::create(L engthModeHeight)))
45 { 45 {
46 ScriptWrappable::init(this); 46 ScriptWrappable::init(this);
47 47
48 addToPropertyMap(m_x); 48 addToPropertyMap(m_x);
49 addToPropertyMap(m_y); 49 addToPropertyMap(m_y);
50 addToPropertyMap(m_width); 50 addToPropertyMap(m_width);
51 addToPropertyMap(m_height); 51 addToPropertyMap(m_height);
52 addToPropertyMap(m_rx); 52 addToPropertyMap(m_rx);
53 addToPropertyMap(m_ry); 53 addToPropertyMap(m_ry);
54 54
haraken 2014/03/05 14:05:27 Ditto.
kouhei (in TOK) 2014/03/06 01:55:14 Done.
55 registerAnimatedPropertiesForSVGRectElement();
56 } 55 }
57 56
58 PassRefPtr<SVGRectElement> SVGRectElement::create(Document& document) 57 PassRefPtr<SVGRectElement> SVGRectElement::create(Document& document)
59 { 58 {
60 return adoptRef(new SVGRectElement(document)); 59 return adoptRef(new SVGRectElement(document));
61 } 60 }
62 61
63 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName) 62 bool SVGRectElement::isSupportedAttribute(const QualifiedName& attrName)
64 { 63 {
65 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 64 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 || m_rx->currentValue()->isRelative() 138 || m_rx->currentValue()->isRelative()
140 || m_ry->currentValue()->isRelative(); 139 || m_ry->currentValue()->isRelative();
141 } 140 }
142 141
143 RenderObject* SVGRectElement::createRenderer(RenderStyle*) 142 RenderObject* SVGRectElement::createRenderer(RenderStyle*)
144 { 143 {
145 return new RenderSVGRect(this); 144 return new RenderSVGRect(this);
146 } 145 }
147 146
148 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698