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

Unified Diff: Source/core/dom/Document.cpp

Issue 27544002: Have Document::fonts() return a raw pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index a8c4b570081df7616853c961040b1b1b14286b59..9fc08756eca221c36896e0e3f912adb02e741130 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5252,11 +5252,11 @@ Document& Document::ensureTemplateDocument()
return *m_templateDocument.get();
}
-PassRefPtr<FontFaceSet> Document::fonts()
+FontFaceSet* Document::fonts()
{
if (!m_fonts)
m_fonts = FontFaceSet::create(this);
- return m_fonts;
+ return m_fonts.get();
}
void Document::didAssociateFormControl(Element* element)
« no previous file with comments | « Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698