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

Unified Diff: third_party/WebKit/Source/core/css/CSSURIValue.h

Issue 2165833006: Merge CSSSVGDocumentValue with CSSURIValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixup FilterInterpolationFunctions Created 4 years, 5 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/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());
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSURIValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698