| Index: third_party/WebKit/Source/core/css/CSSURIValue.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSURIValue.h b/third_party/WebKit/Source/core/css/CSSURIValue.h
|
| index c647160f0eb13d55dbe326438014e201f3f14d3f..acd783d0ecae47b1c4945fdf77d0889e76a0746d 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSURIValue.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSURIValue.h
|
| @@ -6,31 +6,41 @@
|
| #define CSSURIValue_h
|
|
|
| #include "core/css/CSSValue.h"
|
| +#include "core/fetch/DocumentResource.h"
|
|
|
| namespace blink {
|
|
|
| +class Document;
|
| +
|
| class CSSURIValue : public CSSValue {
|
| public:
|
| static CSSURIValue* create(const String& str)
|
| {
|
| return new CSSURIValue(str);
|
| }
|
| + ~CSSURIValue();
|
| +
|
| + DocumentResource* cachedDocument() const { return m_document; }
|
| + DocumentResource* load(Document&) const;
|
|
|
| - String value() const { return m_string; }
|
| + const String& value() const { return m_url; }
|
| + const String& url() const { return m_url; }
|
|
|
| String customCSSText() const;
|
|
|
| - bool equals(const CSSURIValue& other) const
|
| - {
|
| - return m_string == other.m_string;
|
| - }
|
| + bool loadRequested() const { return m_loadRequested; }
|
| + bool equals(const CSSURIValue&) const;
|
|
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
|
|
| private:
|
| CSSURIValue(const String&);
|
|
|
| - String m_string;
|
| + String m_url;
|
| +
|
| + // Document cache.
|
| + mutable Member<DocumentResource> m_document;
|
| + mutable bool m_loadRequested;
|
| };
|
|
|
| DEFINE_CSS_VALUE_TYPE_CASTS(CSSURIValue, isURIValue());
|
|
|