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

Unified Diff: third_party/WebKit/Source/core/css/CSSPathValue.h

Issue 1439793003: SVG: Promote d to a property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DECLARE_VIRTUAL_TRACE Created 5 years 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 side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698