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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAnimateElement.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 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 20 matching lines...) Expand all
31 #include "wtf/OwnPtr.h" 31 #include "wtf/OwnPtr.h"
32 #include <base/gtest_prod_util.h> 32 #include <base/gtest_prod_util.h>
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class SVGAnimatedTypeAnimator; 36 class SVGAnimatedTypeAnimator;
37 37
38 class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement { 38 class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement {
39 DEFINE_WRAPPERTYPEINFO(); 39 DEFINE_WRAPPERTYPEINFO();
40 public: 40 public:
41 static PassRefPtrWillBeRawPtr<SVGAnimateElement> create(Document&); 41 static RawPtr<SVGAnimateElement> create(Document&);
42 ~SVGAnimateElement() override; 42 ~SVGAnimateElement() override;
43 43
44 DECLARE_VIRTUAL_TRACE(); 44 DECLARE_VIRTUAL_TRACE();
45 45
46 bool isSVGAnimationAttributeSettingJavaScriptURL(const Attribute&) const ove rride; 46 bool isSVGAnimationAttributeSettingJavaScriptURL(const Attribute&) const ove rride;
47 47
48 AnimatedPropertyType animatedPropertyType(); 48 AnimatedPropertyType animatedPropertyType();
49 bool animatedPropertyTypeSupportsAddition(); 49 bool animatedPropertyTypeSupportsAddition();
50 50
51 static SVGElementInstances findElementInstances(SVGElement* targetElement); 51 static SVGElementInstances findElementInstances(SVGElement* targetElement);
(...skipping 15 matching lines...) Expand all
67 void setTargetElement(SVGElement*) final; 67 void setTargetElement(SVGElement*) final;
68 void setAttributeName(const QualifiedName&) final; 68 void setAttributeName(const QualifiedName&) final;
69 69
70 FRIEND_TEST_ALL_PREFIXES(UnsafeSVGAttributeSanitizationTest, stringsShouldNo tSupportAddition); 70 FRIEND_TEST_ALL_PREFIXES(UnsafeSVGAttributeSanitizationTest, stringsShouldNo tSupportAddition);
71 71
72 private: 72 private:
73 void resetAnimatedPropertyType(); 73 void resetAnimatedPropertyType();
74 74
75 bool hasValidAttributeType() override; 75 bool hasValidAttributeType() override;
76 76
77 RefPtrWillBeMember<SVGPropertyBase> m_fromProperty; 77 Member<SVGPropertyBase> m_fromProperty;
78 RefPtrWillBeMember<SVGPropertyBase> m_toProperty; 78 Member<SVGPropertyBase> m_toProperty;
79 RefPtrWillBeMember<SVGPropertyBase> m_toAtEndOfDurationProperty; 79 Member<SVGPropertyBase> m_toAtEndOfDurationProperty;
80 RefPtrWillBeMember<SVGPropertyBase> m_animatedProperty; 80 Member<SVGPropertyBase> m_animatedProperty;
81 81
82 SVGAnimatedTypeAnimator m_animator; 82 SVGAnimatedTypeAnimator m_animator;
83 }; 83 };
84 84
85 inline bool isSVGAnimateElement(const SVGElement& element) 85 inline bool isSVGAnimateElement(const SVGElement& element)
86 { 86 {
87 return element.hasTagName(SVGNames::animateTag) 87 return element.hasTagName(SVGNames::animateTag)
88 || element.hasTagName(SVGNames::animateTransformTag) 88 || element.hasTagName(SVGNames::animateTransformTag)
89 || element.hasTagName(SVGNames::setTag); 89 || element.hasTagName(SVGNames::setTag);
90 } 90 }
91 91
92 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); 92 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement);
93 93
94 } // namespace blink 94 } // namespace blink
95 95
96 #endif // SVGAnimateElement_h 96 #endif // SVGAnimateElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698