| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |