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

Side by Side Diff: Source/core/svg/SVGForeignObjectElement.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: styles 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
« no previous file with comments | « Source/core/svg/SVGFontElement.cpp ('k') | Source/core/svg/SVGGElement.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) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight))) 42 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight)))
43 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth))) 43 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth)))
44 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight))) 44 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight)))
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 registerAnimatedPropertiesForSVGForeignObjectElement();
53 } 52 }
54 53
55 PassRefPtr<SVGForeignObjectElement> SVGForeignObjectElement::create(Document& do cument) 54 PassRefPtr<SVGForeignObjectElement> SVGForeignObjectElement::create(Document& do cument)
56 { 55 {
57 return adoptRef(new SVGForeignObjectElement(document)); 56 return adoptRef(new SVGForeignObjectElement(document));
58 } 57 }
59 58
60 bool SVGForeignObjectElement::isSupportedAttribute(const QualifiedName& attrName ) 59 bool SVGForeignObjectElement::isSupportedAttribute(const QualifiedName& attrName )
61 { 60 {
62 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 61 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 134
136 bool SVGForeignObjectElement::selfHasRelativeLengths() const 135 bool SVGForeignObjectElement::selfHasRelativeLengths() const
137 { 136 {
138 return m_x->currentValue()->isRelative() 137 return m_x->currentValue()->isRelative()
139 || m_y->currentValue()->isRelative() 138 || m_y->currentValue()->isRelative()
140 || m_width->currentValue()->isRelative() 139 || m_width->currentValue()->isRelative()
141 || m_height->currentValue()->isRelative(); 140 || m_height->currentValue()->isRelative();
142 } 141 }
143 142
144 } 143 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFontElement.cpp ('k') | Source/core/svg/SVGGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698