Chromium Code Reviews| 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..ba8145e662390b1712c1955fc9fb2cad6462f78e |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/style/StylePath.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
pdr.
2016/01/07 19:47:01
2016!
fs
2016/01/08 12:14:27
Fixed.
|
| +// 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 |