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

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

Issue 1876843002: Introduce few const getters for dom classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/StyleSheetList.h
diff --git a/third_party/WebKit/Source/core/css/StyleSheetList.h b/third_party/WebKit/Source/core/css/StyleSheetList.h
index d1280cc800c23f36e958d2ab04447e78f1e8d5e1..6ef21b6b42b21c354c1fc9f6ee99905ba11331a2 100644
--- a/third_party/WebKit/Source/core/css/StyleSheetList.h
+++ b/third_party/WebKit/Source/core/css/StyleSheetList.h
@@ -44,7 +44,7 @@ public:
HTMLStyleElement* getNamedItem(const AtomicString&) const;
- Document* document() { return m_treeScope ? &m_treeScope->document() : nullptr; }
+ Document* document() const { return m_treeScope ? &m_treeScope->document() : nullptr; }
#if !ENABLE(OILPAN)
void detachFromDocument();
@@ -56,7 +56,7 @@ public:
private:
explicit StyleSheetList(TreeScope*);
- const HeapVector<Member<StyleSheet>>& styleSheets();
+ const HeapVector<Member<StyleSheet>>& styleSheets() const;
Member<TreeScope> m_treeScope;
#if !ENABLE(OILPAN)
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/StyleSheetList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698