| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 StylePath_h | 5 #ifndef StylePath_h |
| 6 #define StylePath_h | 6 #define StylePath_h |
| 7 | 7 |
| 8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
| 9 #include "wtf/OwnPtr.h" | 9 #include "wtf/OwnPtr.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 ~StylePath(); | 23 ~StylePath(); |
| 24 | 24 |
| 25 static StylePath* emptyPath(); | 25 static StylePath* emptyPath(); |
| 26 | 26 |
| 27 const Path& path() const; | 27 const Path& path() const; |
| 28 float length() const; | 28 float length() const; |
| 29 bool isClosed() const; | 29 bool isClosed() const; |
| 30 | 30 |
| 31 const SVGPathByteStream& byteStream() const { return *m_byteStream; } | 31 const SVGPathByteStream& byteStream() const { return *m_byteStream; } |
| 32 | 32 |
| 33 PassRefPtrWillBeRawPtr<CSSValue> computedCSSValue() const; | 33 RawPtr<CSSValue> computedCSSValue() const; |
| 34 | 34 |
| 35 bool operator==(const StylePath&) const; | 35 bool operator==(const StylePath&) const; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 explicit StylePath(PassOwnPtr<SVGPathByteStream>); | 38 explicit StylePath(PassOwnPtr<SVGPathByteStream>); |
| 39 | 39 |
| 40 OwnPtr<SVGPathByteStream> m_byteStream; | 40 OwnPtr<SVGPathByteStream> m_byteStream; |
| 41 mutable OwnPtr<Path> m_path; | 41 mutable OwnPtr<Path> m_path; |
| 42 mutable float m_pathLength; | 42 mutable float m_pathLength; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif // StylePath_h | 47 #endif // StylePath_h |
| OLD | NEW |