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

Side by Side Diff: Source/core/svg/SVGSVGElement.cpp

Issue 177703004: [SVG] Remove SVGAnimatedPropertyMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove ws 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/SVGSVGElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "core/svg/SVGViewSpec.h" 57 #include "core/svg/SVGViewSpec.h"
58 #include "core/svg/animation/SMILTimeContainer.h" 58 #include "core/svg/animation/SMILTimeContainer.h"
59 #include "platform/FloatConversion.h" 59 #include "platform/FloatConversion.h"
60 #include "platform/LengthFunctions.h" 60 #include "platform/LengthFunctions.h"
61 #include "platform/geometry/FloatRect.h" 61 #include "platform/geometry/FloatRect.h"
62 #include "platform/transforms/AffineTransform.h" 62 #include "platform/transforms/AffineTransform.h"
63 #include "wtf/StdLibExtras.h" 63 #include "wtf/StdLibExtras.h"
64 64
65 namespace WebCore { 65 namespace WebCore {
66 66
67 // Animated property definitions
68
69 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGSVGElement)
70 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
71 END_REGISTER_ANIMATED_PROPERTIES
72
73 inline SVGSVGElement::SVGSVGElement(Document& doc) 67 inline SVGSVGElement::SVGSVGElement(Document& doc)
74 : SVGGraphicsElement(SVGNames::svgTag, doc) 68 : SVGGraphicsElement(SVGNames::svgTag, doc)
75 , SVGFitToViewBox(this) 69 , SVGFitToViewBox(this)
76 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth))) 70 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth)))
77 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight))) 71 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight)))
78 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth))) 72 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth)))
79 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight))) 73 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight)))
80 , m_useCurrentView(false) 74 , m_useCurrentView(false)
81 , m_timeContainer(SMILTimeContainer::create(this)) 75 , m_timeContainer(SMILTimeContainer::create(this))
82 , m_translation(SVGPoint::create()) 76 , m_translation(SVGPoint::create())
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 Vector<Element*>::const_iterator end = elements.end(); 839 Vector<Element*>::const_iterator end = elements.end();
846 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it ) { 840 for (Vector<Element*>::const_iterator it = elements.begin(); it != end; ++it ) {
847 if ((*it)->isDescendantOf(this)) 841 if ((*it)->isDescendantOf(this))
848 return *it; 842 return *it;
849 } 843 }
850 844
851 return 0; 845 return 0;
852 } 846 }
853 847
854 } 848 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGSVGElement.h ('k') | Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698