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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPathValue.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSPathValue_h 5 #ifndef CSSPathValue_h
6 #define CSSPathValue_h 6 #define CSSPathValue_h
7 7
8 #include "core/css/CSSValue.h" 8 #include "core/css/CSSValue.h"
9 #include "core/style/StylePath.h" 9 #include "core/style/StylePath.h"
10 #include "core/svg/SVGPathByteStream.h" 10 #include "core/svg/SVGPathByteStream.h"
11 #include "wtf/PassRefPtr.h" 11 #include "wtf/PassRefPtr.h"
12 #include "wtf/RefPtr.h" 12 #include "wtf/RefPtr.h"
13 #include <memory>
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class StylePath; 17 class StylePath;
17 18
18 class CSSPathValue : public CSSValue { 19 class CSSPathValue : public CSSValue {
19 public: 20 public:
20 static CSSPathValue* create(PassRefPtr<StylePath>); 21 static CSSPathValue* create(PassRefPtr<StylePath>);
21 static CSSPathValue* create(PassOwnPtr<SVGPathByteStream>); 22 static CSSPathValue* create(std::unique_ptr<SVGPathByteStream>);
22 23
23 static CSSPathValue& emptyPathValue(); 24 static CSSPathValue& emptyPathValue();
24 25
25 StylePath* stylePath() const { return m_stylePath.get(); } 26 StylePath* stylePath() const { return m_stylePath.get(); }
26 String customCSSText() const; 27 String customCSSText() const;
27 28
28 bool equals(const CSSPathValue&) const; 29 bool equals(const CSSPathValue&) const;
29 30
30 DECLARE_TRACE_AFTER_DISPATCH(); 31 DECLARE_TRACE_AFTER_DISPATCH();
31 32
32 const SVGPathByteStream& byteStream() const { return m_stylePath->byteStream (); } 33 const SVGPathByteStream& byteStream() const { return m_stylePath->byteStream (); }
33 34
34 private: 35 private:
35 CSSPathValue(PassRefPtr<StylePath>); 36 CSSPathValue(PassRefPtr<StylePath>);
36 37
37 RefPtr<StylePath> m_stylePath; 38 RefPtr<StylePath> m_stylePath;
38 }; 39 };
39 40
40 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPathValue, isPathValue()); 41 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPathValue, isPathValue());
41 42
42 } // namespace blink 43 } // namespace blink
43 44
44 #endif // CSSPathValue_h 45 #endif // CSSPathValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMatrix.h ('k') | third_party/WebKit/Source/core/css/CSSPathValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698