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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2405793002: documentStyleSheetCollection() is always non-null. (Closed)
Patch Set: Removed unnecessary get()s. Created 4 years, 2 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/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/StyleEngine.h
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.h b/third_party/WebKit/Source/core/dom/StyleEngine.h
index 409ec046e19a0cc45a3fb3f07598883d3a8cbf2b..9d4e6a4c96581dfe2a76e7e6506904acd264e1c8 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.h
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.h
@@ -254,12 +254,14 @@ class CORE_EXPORT StyleEngine final
const String& text,
TextPosition startPosition);
- const DocumentStyleSheetCollection* documentStyleSheetCollection() const {
- return m_documentStyleSheetCollection.get();
+ const DocumentStyleSheetCollection& documentStyleSheetCollection() const {
+ DCHECK(m_documentStyleSheetCollection);
+ return *m_documentStyleSheetCollection;
}
- DocumentStyleSheetCollection* documentStyleSheetCollection() {
- return m_documentStyleSheetCollection.get();
+ DocumentStyleSheetCollection& documentStyleSheetCollection() {
+ DCHECK(m_documentStyleSheetCollection);
+ return *m_documentStyleSheetCollection;
}
void updateActiveStyleSheetsInShadow(
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698