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

Unified 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: 2015->2016; Remove unnecessary explicit. 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/style/StylePath.h
diff --git a/third_party/WebKit/Source/core/style/StylePath.h b/third_party/WebKit/Source/core/style/StylePath.h
new file mode 100644
index 0000000000000000000000000000000000000000..f8d5781ef9a6a008739d664c3f72e72e730a8995
--- /dev/null
+++ b/third_party/WebKit/Source/core/style/StylePath.h
@@ -0,0 +1,42 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef StylePath_h
+#define StylePath_h
+
+#include "platform/graphics/Path.h"
+#include "platform/heap/Handle.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
+#include "wtf/RefPtr.h"
+
+namespace blink {
+
+class CSSValue;
+class SVGPathByteStream;
+
+class StylePath : public RefCounted<StylePath> {
+public:
+ static PassRefPtr<StylePath> create(PassRefPtr<SVGPathByteStream>);
+ ~StylePath();
+
+ static StylePath* emptyPath();
+
+ const Path& path() const { return m_path; }
+ const SVGPathByteStream& byteStream() const;
+
+ PassRefPtrWillBeRawPtr<CSSValue> computedCSSValue() const;
+
+ bool equals(const StylePath&) const;
+
+private:
+ explicit StylePath(PassRefPtr<SVGPathByteStream>);
+
+ RefPtr<SVGPathByteStream> m_byteStream;
+ Path m_path;
+};
+
+} // namespace blink
+
+#endif // StylePath_h
« no previous file with comments | « third_party/WebKit/Source/core/style/SVGComputedStyleDefs.cpp ('k') | third_party/WebKit/Source/core/style/StylePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698