| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "platform/FloatConversion.h" | 58 #include "platform/FloatConversion.h" |
| 59 #include "platform/LengthFunctions.h" | 59 #include "platform/LengthFunctions.h" |
| 60 #include "platform/geometry/FloatRect.h" | 60 #include "platform/geometry/FloatRect.h" |
| 61 #include "platform/transforms/AffineTransform.h" | 61 #include "platform/transforms/AffineTransform.h" |
| 62 #include "wtf/StdLibExtras.h" | 62 #include "wtf/StdLibExtras.h" |
| 63 | 63 |
| 64 namespace WebCore { | 64 namespace WebCore { |
| 65 | 65 |
| 66 // Animated property definitions | 66 // Animated property definitions |
| 67 | 67 |
| 68 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGSVGElement) | |
| 69 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | |
| 70 END_REGISTER_ANIMATED_PROPERTIES | |
| 71 | 68 |
| 72 inline SVGSVGElement::SVGSVGElement(Document& doc) | 69 inline SVGSVGElement::SVGSVGElement(Document& doc) |
| 73 : SVGGraphicsElement(SVGNames::svgTag, doc) | 70 : SVGGraphicsElement(SVGNames::svgTag, doc) |
| 74 , SVGFitToViewBox(this) | 71 , SVGFitToViewBox(this) |
| 75 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) | 72 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth))) |
| 76 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) | 73 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight))) |
| 77 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth))) | 74 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth))) |
| 78 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight))) | 75 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight))) |
| 79 , m_useCurrentView(false) | 76 , m_useCurrentView(false) |
| 80 , m_timeContainer(SMILTimeContainer::create(this)) | 77 , m_timeContainer(SMILTimeContainer::create(this)) |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 Vector<Element*>::const_iterator end = elements.end(); | 776 Vector<Element*>::const_iterator end = elements.end(); |
| 780 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it
) { | 777 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it
) { |
| 781 if ((*it)->isDescendantOf(this)) | 778 if ((*it)->isDescendantOf(this)) |
| 782 return *it; | 779 return *it; |
| 783 } | 780 } |
| 784 | 781 |
| 785 return 0; | 782 return 0; |
| 786 } | 783 } |
| 787 | 784 |
| 788 } | 785 } |
| OLD | NEW |