| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "core/css/CSSPathValue.h" | 5 #include "core/css/CSSPathValue.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/style/StylePath.h" | 8 #include "core/style/StylePath.h" |
| 8 #include "core/svg/SVGPathUtilities.h" | 9 #include "core/svg/SVGPathUtilities.h" |
| 9 #include <memory> | |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 CSSPathValue* CSSPathValue::Create(PassRefPtr<StylePath> style_path) { | 13 CSSPathValue* CSSPathValue::Create(PassRefPtr<StylePath> style_path) { |
| 14 return new CSSPathValue(std::move(style_path)); | 14 return new CSSPathValue(std::move(style_path)); |
| 15 } | 15 } |
| 16 | 16 |
| 17 CSSPathValue* CSSPathValue::Create( | 17 CSSPathValue* CSSPathValue::Create( |
| 18 std::unique_ptr<SVGPathByteStream> path_byte_stream) { | 18 std::unique_ptr<SVGPathByteStream> path_byte_stream) { |
| 19 return CSSPathValue::Create(StylePath::Create(std::move(path_byte_stream))); | 19 return CSSPathValue::Create(StylePath::Create(std::move(path_byte_stream))); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 48 | 48 |
| 49 bool CSSPathValue::Equals(const CSSPathValue& other) const { | 49 bool CSSPathValue::Equals(const CSSPathValue& other) const { |
| 50 return ByteStream() == other.ByteStream(); | 50 return ByteStream() == other.ByteStream(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 DEFINE_TRACE_AFTER_DISPATCH(CSSPathValue) { | 53 DEFINE_TRACE_AFTER_DISPATCH(CSSPathValue) { |
| 54 CSSValue::TraceAfterDispatch(visitor); | 54 CSSValue::TraceAfterDispatch(visitor); |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| OLD | NEW |