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

Side by Side Diff: third_party/WebKit/Source/core/style/StylePath.h

Issue 1545713003: Add StylePath and use it to store 'd' in ComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore CSSPathValue::equals. Created 4 years, 11 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
pdr. 2016/01/07 19:47:01 2016!
fs 2016/01/08 12:14:27 Fixed.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef StylePath_h
6 #define StylePath_h
7
8 #include "platform/graphics/Path.h"
9 #include "platform/heap/Handle.h"
10 #include "wtf/PassRefPtr.h"
11 #include "wtf/RefCounted.h"
12 #include "wtf/RefPtr.h"
13
14 namespace blink {
15
16 class CSSValue;
17 class SVGPathByteStream;
18
19 class StylePath : public RefCounted<StylePath> {
20 public:
21 static PassRefPtr<StylePath> create(PassRefPtr<SVGPathByteStream>);
22 ~StylePath();
23
24 static StylePath* emptyPath();
25
26 const Path& path() const { return m_path; }
27 const SVGPathByteStream& byteStream() const;
28
29 PassRefPtrWillBeRawPtr<CSSValue> computedCSSValue() const;
30
31 bool equals(const StylePath&) const;
32
33 private:
34 explicit StylePath(PassRefPtr<SVGPathByteStream>);
35
36 RefPtr<SVGPathByteStream> m_byteStream;
37 Path m_path;
38 };
39
40 } // namespace blink
41
42 #endif // StylePath_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698