Index: third_party/WebKit/Source/core/css/CSSPathValue.h |
diff --git a/third_party/WebKit/Source/core/css/CSSPathValue.h b/third_party/WebKit/Source/core/css/CSSPathValue.h |
index 7121ebb710c11f906faa15cd2424132ef09c1696..21d6a361415c4d347cea150a9b83bdd56e04739e 100644 |
--- a/third_party/WebKit/Source/core/css/CSSPathValue.h |
+++ b/third_party/WebKit/Source/core/css/CSSPathValue.h |
@@ -6,6 +6,8 @@ |
#define CSSPathValue_h |
#include "core/css/CSSValue.h" |
+#include "core/svg/SVGPathByteStream.h" |
+#include "platform/graphics/Path.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefPtr.h" |
@@ -13,23 +15,30 @@ namespace blink { |
class CSSPathValue : public CSSValue { |
public: |
- static PassRefPtrWillBeRawPtr<CSSPathValue> create(const String& pathString) |
+ static PassRefPtrWillBeRawPtr<CSSPathValue> create(PassOwnPtr<SVGPathByteStream> pathByteStream) |
{ |
- return adoptRefWillBeNoop(new CSSPathValue(pathString)); |
+ return adoptRefWillBeNoop(new CSSPathValue(pathByteStream)); |
} |
+ static PassRefPtrWillBeRawPtr<CSSPathValue> create(const String&); |
+ |
+ static CSSPathValue* emptyPathValue(); |
+ |
String customCSSText() const; |
bool equals(const CSSPathValue&) const; |
DECLARE_TRACE_AFTER_DISPATCH(); |
- const String& pathString() const { return m_pathString; } |
+ const SVGPathByteStream& byteStream() const { return *m_pathByteStream; } |
+ String pathString() const; |
+ const Path& path() const { return m_path; } |
private: |
- CSSPathValue(const String& pathString); |
+ CSSPathValue(PassOwnPtr<SVGPathByteStream>); |
- String m_pathString; |
+ OwnPtr<SVGPathByteStream> m_pathByteStream; |
+ Path m_path; |
}; |
DEFINE_CSS_VALUE_TYPE_CASTS(CSSPathValue, isPathValue()); |