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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPathElement.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, 10 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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 12 matching lines...) Expand all
23 #include "core/layout/svg/LayoutSVGPath.h" 23 #include "core/layout/svg/LayoutSVGPath.h"
24 #include "core/svg/SVGMPathElement.h" 24 #include "core/svg/SVGMPathElement.h"
25 #include "core/svg/SVGPathQuery.h" 25 #include "core/svg/SVGPathQuery.h"
26 #include "core/svg/SVGPathUtilities.h" 26 #include "core/svg/SVGPathUtilities.h"
27 #include "core/svg/SVGPointTearOff.h" 27 #include "core/svg/SVGPointTearOff.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class SVGAnimatedPathLength final : public SVGAnimatedNumber { 31 class SVGAnimatedPathLength final : public SVGAnimatedNumber {
32 public: 32 public:
33 static PassRefPtrWillBeRawPtr<SVGAnimatedPathLength> create(SVGPathElement* contextElement) 33 static RawPtr<SVGAnimatedPathLength> create(SVGPathElement* contextElement)
34 { 34 {
35 return adoptRefWillBeNoop(new SVGAnimatedPathLength(contextElement)); 35 return (new SVGAnimatedPathLength(contextElement));
36 } 36 }
37 37
38 SVGParsingError setBaseValueAsString(const String& value) override 38 SVGParsingError setBaseValueAsString(const String& value) override
39 { 39 {
40 SVGParsingError parseStatus = SVGAnimatedNumber::setBaseValueAsString(va lue); 40 SVGParsingError parseStatus = SVGAnimatedNumber::setBaseValueAsString(va lue);
41 if (parseStatus == SVGParseStatus::NoError && baseValue()->value() < 0) 41 if (parseStatus == SVGParseStatus::NoError && baseValue()->value() < 0)
42 parseStatus = SVGParseStatus::NegativeValue; 42 parseStatus = SVGParseStatus::NegativeValue;
43 return parseStatus; 43 return parseStatus;
44 } 44 }
45 45
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 return m_path->currentValue()->byteStream(); 88 return m_path->currentValue()->byteStream();
89 } 89 }
90 90
91 float SVGPathElement::getTotalLength() 91 float SVGPathElement::getTotalLength()
92 { 92 {
93 document().updateLayoutIgnorePendingStylesheets(); 93 document().updateLayoutIgnorePendingStylesheets();
94 return SVGPathQuery(pathByteStream()).getTotalLength(); 94 return SVGPathQuery(pathByteStream()).getTotalLength();
95 } 95 }
96 96
97 PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGPathElement::getPointAtLength(float l ength) 97 RawPtr<SVGPointTearOff> SVGPathElement::getPointAtLength(float length)
98 { 98 {
99 document().updateLayoutIgnorePendingStylesheets(); 99 document().updateLayoutIgnorePendingStylesheets();
100 FloatPoint point = SVGPathQuery(pathByteStream()).getPointAtLength(length); 100 FloatPoint point = SVGPathQuery(pathByteStream()).getPointAtLength(length);
101 return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnim Val); 101 return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnim Val);
102 } 102 }
103 103
104 unsigned SVGPathElement::getPathSegAtLength(float length) 104 unsigned SVGPathElement::getPathSegAtLength(float length)
105 { 105 {
106 document().updateLayoutIgnorePendingStylesheets(); 106 document().updateLayoutIgnorePendingStylesheets();
107 return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length); 107 return SVGPathQuery(pathByteStream()).getPathSegIndexAtLength(length);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return InsertionDone; 182 return InsertionDone;
183 } 183 }
184 184
185 void SVGPathElement::removedFrom(ContainerNode* rootParent) 185 void SVGPathElement::removedFrom(ContainerNode* rootParent)
186 { 186 {
187 SVGGeometryElement::removedFrom(rootParent); 187 SVGGeometryElement::removedFrom(rootParent);
188 invalidateMPathDependencies(); 188 invalidateMPathDependencies();
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698