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

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

Issue 2038443003: Made ElementStyleResources store const CSSSVGDocumentValues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@+delete_nonconst_cssvaluelist_item_function
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h b/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h
index fea4004be858ff9f87215e20e55ff664352cdc7d..da2185ed9bf107e4458d5a72f0a66ee9e10e4af5 100644
--- a/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h
+++ b/third_party/WebKit/Source/core/css/CSSSVGDocumentValue.h
@@ -41,7 +41,7 @@ public:
~CSSSVGDocumentValue();
DocumentResource* cachedSVGDocument() const { return m_document.get(); }
- DocumentResource* load(Document*);
+ DocumentResource* load(Document*) const;
String customCSSText() const;
const String& url() const { return m_url; }
@@ -58,8 +58,10 @@ private:
CSSSVGDocumentValue(const String& url);
String m_url;
- Member<DocumentResource> m_document;
- bool m_loadRequested;
+
+ // Document cache.
+ mutable Member<DocumentResource> m_document;
+ mutable bool m_loadRequested;
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSSVGDocumentValue, isSVGDocumentValue());
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSSVGDocumentValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698