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/SVGSVGElement.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/SVGRectElement.cpp ('k') | Source/core/svg/SVGScriptElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 { 83 {
84 ScriptWrappable::init(this); 84 ScriptWrappable::init(this);
85 85
86 m_width->setDefaultValueAsString("100%"); 86 m_width->setDefaultValueAsString("100%");
87 m_height->setDefaultValueAsString("100%"); 87 m_height->setDefaultValueAsString("100%");
88 88
89 addToPropertyMap(m_x); 89 addToPropertyMap(m_x);
90 addToPropertyMap(m_y); 90 addToPropertyMap(m_y);
91 addToPropertyMap(m_width); 91 addToPropertyMap(m_width);
92 addToPropertyMap(m_height); 92 addToPropertyMap(m_height);
93 registerAnimatedPropertiesForSVGSVGElement();
94 93
95 UseCounter::count(doc, UseCounter::SVGSVGElement); 94 UseCounter::count(doc, UseCounter::SVGSVGElement);
96 } 95 }
97 96
98 PassRefPtr<SVGSVGElement> SVGSVGElement::create(Document& document) 97 PassRefPtr<SVGSVGElement> SVGSVGElement::create(Document& document)
99 { 98 {
100 return adoptRef(new SVGSVGElement(document)); 99 return adoptRef(new SVGSVGElement(document));
101 } 100 }
102 101
103 SVGSVGElement::~SVGSVGElement() 102 SVGSVGElement::~SVGSVGElement()
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 Vector<Element*>::const_iterator end = elements.end(); 845 Vector<Element*>::const_iterator end = elements.end();
847 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it ) { 846 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it ) {
848 if ((*it)->isDescendantOf(this)) 847 if ((*it)->isDescendantOf(this))
849 return *it; 848 return *it;
850 } 849 }
851 850
852 return 0; 851 return 0;
853 } 852 }
854 853
855 } 854 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698