| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/CSSURIValue.h" | 5 #include "core/css/CSSURIValue.h" |
| 6 | 6 |
| 7 #include "core/css/CSSMarkup.h" | 7 #include "core/css/CSSMarkup.h" |
| 8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/svg/SVGElementProxy.h" | 9 #include "core/svg/SVGElementProxy.h" |
| 10 #include "platform/weborigin/KURL.h" | 10 #include "platform/weborigin/KURL.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "platform/wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 CSSURIValue::CSSURIValue(const AtomicString& relative_url, | 15 CSSURIValue::CSSURIValue(const AtomicString& relative_url, |
| 16 const AtomicString& absolute_url) | 16 const AtomicString& absolute_url) |
| 17 : CSSValue(kURIClass), | 17 : CSSValue(kURIClass), |
| 18 relative_url_(relative_url), | 18 relative_url_(relative_url), |
| 19 is_local_(relative_url.StartsWith('#')), | 19 is_local_(relative_url.StartsWith('#')), |
| 20 absolute_url_(absolute_url) {} | 20 absolute_url_(absolute_url) {} |
| 21 | 21 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return (is_local_ && relative_url_ == other.relative_url_) || | 73 return (is_local_ && relative_url_ == other.relative_url_) || |
| 74 absolute_url_ == other.absolute_url_; | 74 absolute_url_ == other.absolute_url_; |
| 75 } | 75 } |
| 76 | 76 |
| 77 DEFINE_TRACE_AFTER_DISPATCH(CSSURIValue) { | 77 DEFINE_TRACE_AFTER_DISPATCH(CSSURIValue) { |
| 78 visitor->Trace(proxy_); | 78 visitor->Trace(proxy_); |
| 79 CSSValue::TraceAfterDispatch(visitor); | 79 CSSValue::TraceAfterDispatch(visitor); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace blink | 82 } // namespace blink |
| OLD | NEW |