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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/SVGAnimateElement.h ('k') | Source/core/svg/SVGAnimateMotionElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
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 17 matching lines...) Expand all
28 #include "SVGNames.h" 28 #include "SVGNames.h"
29 #include "core/css/CSSParser.h" 29 #include "core/css/CSSParser.h"
30 #include "core/css/StylePropertySet.h" 30 #include "core/css/StylePropertySet.h"
31 #include "core/dom/QualifiedName.h" 31 #include "core/dom/QualifiedName.h"
32 #include "core/svg/SVGAnimatedType.h" 32 #include "core/svg/SVGAnimatedType.h"
33 #include "core/svg/SVGAnimatedTypeAnimator.h" 33 #include "core/svg/SVGAnimatedTypeAnimator.h"
34 #include "core/svg/SVGAnimatorFactory.h" 34 #include "core/svg/SVGAnimatorFactory.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document* doc ument) 38 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document& doc ument)
39 : SVGAnimationElement(tagName, document) 39 : SVGAnimationElement(tagName, document)
40 , m_animatedPropertyType(AnimatedString) 40 , m_animatedPropertyType(AnimatedString)
41 { 41 {
42 ASSERT(hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::setTag) || h asTagName(SVGNames::animateColorTag) || hasTagName(SVGNames::animateTransformTag )); 42 ASSERT(hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::setTag) || h asTagName(SVGNames::animateColorTag) || hasTagName(SVGNames::animateTransformTag ));
43 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
44 } 44 }
45 45
46 PassRefPtr<SVGAnimateElement> SVGAnimateElement::create(const QualifiedName& tag Name, Document* document) 46 PassRefPtr<SVGAnimateElement> SVGAnimateElement::create(const QualifiedName& tag Name, Document& document)
47 { 47 {
48 return adoptRef(new SVGAnimateElement(tagName, document)); 48 return adoptRef(new SVGAnimateElement(tagName, document));
49 } 49 }
50 50
51 SVGAnimateElement::~SVGAnimateElement() 51 SVGAnimateElement::~SVGAnimateElement()
52 { 52 {
53 } 53 }
54 54
55 bool SVGAnimateElement::hasValidAttributeType() 55 bool SVGAnimateElement::hasValidAttributeType()
56 { 56 {
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() 421 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator()
422 { 422 {
423 if (!m_animator) 423 if (!m_animator)
424 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate dPropertyType); 424 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate dPropertyType);
425 ASSERT(m_animatedPropertyType == m_animator->type()); 425 ASSERT(m_animatedPropertyType == m_animator->type());
426 return m_animator.get(); 426 return m_animator.get();
427 } 427 }
428 428
429 } 429 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateElement.h ('k') | Source/core/svg/SVGAnimateMotionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698