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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPoint.cpp

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 29 matching lines...) Expand all
40 40
41 SVGPoint::SVGPoint() 41 SVGPoint::SVGPoint()
42 { 42 {
43 } 43 }
44 44
45 SVGPoint::SVGPoint(const FloatPoint& point) 45 SVGPoint::SVGPoint(const FloatPoint& point)
46 : m_value(point) 46 : m_value(point)
47 { 47 {
48 } 48 }
49 49
50 PassRefPtrWillBeRawPtr<SVGPoint> SVGPoint::clone() const 50 RawPtr<SVGPoint> SVGPoint::clone() const
51 { 51 {
52 return SVGPoint::create(m_value); 52 return SVGPoint::create(m_value);
53 } 53 }
54 54
55 template<typename CharType> 55 template<typename CharType>
56 SVGParsingError SVGPoint::parse(const CharType*& ptr, const CharType* end) 56 SVGParsingError SVGPoint::parse(const CharType*& ptr, const CharType* end)
57 { 57 {
58 float x = 0; 58 float x = 0;
59 float y = 0; 59 float y = 0;
60 if (!parseNumber(ptr, end, x) 60 if (!parseNumber(ptr, end, x)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 String SVGPoint::valueAsString() const 97 String SVGPoint::valueAsString() const
98 { 98 {
99 StringBuilder builder; 99 StringBuilder builder;
100 builder.appendNumber(x()); 100 builder.appendNumber(x());
101 builder.append(' '); 101 builder.append(' ');
102 builder.appendNumber(y()); 102 builder.appendNumber(y());
103 return builder.toString(); 103 return builder.toString();
104 } 104 }
105 105
106 void SVGPoint::add(PassRefPtrWillBeRawPtr<SVGPropertyBase> other, SVGElement*) 106 void SVGPoint::add(RawPtr<SVGPropertyBase> other, SVGElement*)
107 { 107 {
108 // SVGPoint is not animated by itself 108 // SVGPoint is not animated by itself
109 ASSERT_NOT_REACHED(); 109 ASSERT_NOT_REACHED();
110 } 110 }
111 111
112 void SVGPoint::calculateAnimatedValue(SVGAnimationElement* animationElement, flo at percentage, unsigned repeatCount, PassRefPtrWillBeRawPtr<SVGPropertyBase> fro mValue, PassRefPtrWillBeRawPtr<SVGPropertyBase> toValue, PassRefPtrWillBeRawPtr< SVGPropertyBase> toAtEndOfDurationValue, SVGElement*) 112 void SVGPoint::calculateAnimatedValue(SVGAnimationElement* animationElement, flo at percentage, unsigned repeatCount, RawPtr<SVGPropertyBase> fromValue, RawPtr<S VGPropertyBase> toValue, RawPtr<SVGPropertyBase> toAtEndOfDurationValue, SVGElem ent*)
113 { 113 {
114 // SVGPoint is not animated by itself 114 // SVGPoint is not animated by itself
115 ASSERT_NOT_REACHED(); 115 ASSERT_NOT_REACHED();
116 } 116 }
117 117
118 float SVGPoint::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SV GElement* contextElement) 118 float SVGPoint::calculateDistance(RawPtr<SVGPropertyBase> to, SVGElement* contex tElement)
119 { 119 {
120 // SVGPoint is not animated by itself 120 // SVGPoint is not animated by itself
121 ASSERT_NOT_REACHED(); 121 ASSERT_NOT_REACHED();
122 return 0.0f; 122 return 0.0f;
123 } 123 }
124 124
125 } // namespace blink 125 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPoint.h ('k') | third_party/WebKit/Source/core/svg/SVGPoint.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698