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

Side by Side Diff: Source/core/svg/SVGPatternElement.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/SVGPathElement.cpp ('k') | Source/core/svg/SVGPolyElement.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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 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) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 ScriptWrappable::init(this); 53 ScriptWrappable::init(this);
54 54
55 addToPropertyMap(m_x); 55 addToPropertyMap(m_x);
56 addToPropertyMap(m_y); 56 addToPropertyMap(m_y);
57 addToPropertyMap(m_width); 57 addToPropertyMap(m_width);
58 addToPropertyMap(m_height); 58 addToPropertyMap(m_height);
59 addToPropertyMap(m_patternTransform); 59 addToPropertyMap(m_patternTransform);
60 addToPropertyMap(m_patternUnits); 60 addToPropertyMap(m_patternUnits);
61 addToPropertyMap(m_patternContentUnits); 61 addToPropertyMap(m_patternContentUnits);
62 registerAnimatedPropertiesForSVGPatternElement();
63 } 62 }
64 63
65 PassRefPtr<SVGPatternElement> SVGPatternElement::create(Document& document) 64 PassRefPtr<SVGPatternElement> SVGPatternElement::create(Document& document)
66 { 65 {
67 return adoptRef(new SVGPatternElement(document)); 66 return adoptRef(new SVGPatternElement(document));
68 } 67 }
69 68
70 bool SVGPatternElement::isSupportedAttribute(const QualifiedName& attrName) 69 bool SVGPatternElement::isSupportedAttribute(const QualifiedName& attrName)
71 { 70 {
72 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 71 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 220
222 bool SVGPatternElement::selfHasRelativeLengths() const 221 bool SVGPatternElement::selfHasRelativeLengths() const
223 { 222 {
224 return m_x->currentValue()->isRelative() 223 return m_x->currentValue()->isRelative()
225 || m_y->currentValue()->isRelative() 224 || m_y->currentValue()->isRelative()
226 || m_width->currentValue()->isRelative() 225 || m_width->currentValue()->isRelative()
227 || m_height->currentValue()->isRelative(); 226 || m_height->currentValue()->isRelative();
228 } 227 }
229 228
230 } 229 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGPolyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698