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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPath.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/svg/SVGParsingError.h" 35 #include "core/svg/SVGParsingError.h"
36 #include "core/svg/SVGPathByteStream.h" 36 #include "core/svg/SVGPathByteStream.h"
37 #include "core/svg/properties/SVGProperty.h" 37 #include "core/svg/properties/SVGProperty.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class SVGPath : public SVGPropertyBase { 41 class SVGPath : public SVGPropertyBase {
42 public: 42 public:
43 typedef void TearOffType; 43 typedef void TearOffType;
44 44
45 static PassRefPtrWillBeRawPtr<SVGPath> create() 45 static RawPtr<SVGPath> create()
46 { 46 {
47 return adoptRefWillBeNoop(new SVGPath()); 47 return new SVGPath();
48 } 48 }
49 static PassRefPtrWillBeRawPtr<SVGPath> create(PassRefPtrWillBeRawPtr<CSSPath Value> pathValue) 49 static RawPtr<SVGPath> create(RawPtr<CSSPathValue> pathValue)
50 { 50 {
51 return adoptRefWillBeNoop(new SVGPath(pathValue)); 51 return new SVGPath(pathValue);
52 } 52 }
53 53
54 ~SVGPath() override; 54 ~SVGPath() override;
55 55
56 const SVGPathByteStream& byteStream() const { return m_pathValue->byteStream (); } 56 const SVGPathByteStream& byteStream() const { return m_pathValue->byteStream (); }
57 StylePath* stylePath() const { return m_pathValue->stylePath(); } 57 StylePath* stylePath() const { return m_pathValue->stylePath(); }
58 CSSPathValue* pathValue() const { return m_pathValue.get(); } 58 CSSPathValue* pathValue() const { return m_pathValue.get(); }
59 59
60 // SVGPropertyBase: 60 // SVGPropertyBase:
61 PassRefPtrWillBeRawPtr<SVGPath> clone() const; 61 RawPtr<SVGPath> clone() const;
62 PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const String&) con st override; 62 RawPtr<SVGPropertyBase> cloneForAnimation(const String&) const override;
63 String valueAsString() const override; 63 String valueAsString() const override;
64 SVGParsingError setValueAsString(const String&); 64 SVGParsingError setValueAsString(const String&);
65 65
66 void add(PassRefPtrWillBeRawPtr<SVGPropertyBase>, SVGElement*) override; 66 void add(RawPtr<SVGPropertyBase>, SVGElement*) override;
67 void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fromValue, PassRefPtrWillB eRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toAtEn dOfDurationValue, SVGElement*) override; 67 void calculateAnimatedValue(SVGAnimationElement*, float percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<SVGPropertyBase> toValue , RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) override;
68 float calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGEleme nt*) override; 68 float calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement*) override;
69 69
70 static AnimatedPropertyType classType() { return AnimatedPath; } 70 static AnimatedPropertyType classType() { return AnimatedPath; }
71 71
72 DECLARE_VIRTUAL_TRACE(); 72 DECLARE_VIRTUAL_TRACE();
73 73
74 private: 74 private:
75 SVGPath(); 75 SVGPath();
76 explicit SVGPath(PassRefPtrWillBeRawPtr<CSSPathValue>); 76 explicit SVGPath(RawPtr<CSSPathValue>);
77 77
78 RefPtrWillBeMember<CSSPathValue> m_pathValue; 78 Member<CSSPathValue> m_pathValue;
79 }; 79 };
80 80
81 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPath); 81 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGPath);
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif 85 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGNumberTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698