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

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: 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 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 * 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 { 82 {
83 ScriptWrappable::init(this); 83 ScriptWrappable::init(this);
84 84
85 m_width->setDefaultValueAsString("100%"); 85 m_width->setDefaultValueAsString("100%");
86 m_height->setDefaultValueAsString("100%"); 86 m_height->setDefaultValueAsString("100%");
87 87
88 addToPropertyMap(m_x); 88 addToPropertyMap(m_x);
89 addToPropertyMap(m_y); 89 addToPropertyMap(m_y);
90 addToPropertyMap(m_width); 90 addToPropertyMap(m_width);
91 addToPropertyMap(m_height); 91 addToPropertyMap(m_height);
92 registerAnimatedPropertiesForSVGSVGElement();
93 92
94 UseCounter::count(doc, UseCounter::SVGSVGElement); 93 UseCounter::count(doc, UseCounter::SVGSVGElement);
95 } 94 }
96 95
97 PassRefPtr<SVGSVGElement> SVGSVGElement::create(Document& document) 96 PassRefPtr<SVGSVGElement> SVGSVGElement::create(Document& document)
98 { 97 {
99 return adoptRef(new SVGSVGElement(document)); 98 return adoptRef(new SVGSVGElement(document));
100 } 99 }
101 100
102 SVGSVGElement::~SVGSVGElement() 101 SVGSVGElement::~SVGSVGElement()
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 Vector<Element*>::const_iterator end = elements.end(); 779 Vector<Element*>::const_iterator end = elements.end();
781 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it ) { 780 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it ) {
782 if ((*it)->isDescendantOf(this)) 781 if ((*it)->isDescendantOf(this))
783 return *it; 782 return *it;
784 } 783 }
785 784
786 return 0; 785 return 0;
787 } 786 }
788 787
789 } 788 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698