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

Unified Diff: Source/core/css/FontFaceSet.h

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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: Source/core/css/FontFaceSet.h
diff --git a/Source/core/css/FontFaceSet.h b/Source/core/css/FontFaceSet.h
index 9b50984be60ee58a85520a76952cb5eb600fd070..1aa00b68c4ee033fb104966cddd07765dca45b93 100644
--- a/Source/core/css/FontFaceSet.h
+++ b/Source/core/css/FontFaceSet.h
@@ -96,15 +96,15 @@ public:
virtual void resume() OVERRIDE;
virtual void stop() OVERRIDE;
- static PassRefPtr<FontFaceSet> from(Document*);
- static void didLayout(Document*);
+ static PassRefPtr<FontFaceSet> from(Document&);
+ static void didLayout(Document&);
void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*);
private:
typedef RefCountedSupplement<Document, FontFaceSet> SupplementType;
- static PassRefPtr<FontFaceSet> create(Document* document)
+ static PassRefPtr<FontFaceSet> create(Document& document)
{
return adoptRef<FontFaceSet>(new FontFaceSet(document));
}
@@ -120,7 +120,7 @@ private:
bool m_recorded;
};
- FontFaceSet(Document*);
+ FontFaceSet(Document&);
bool hasLoadedFonts() const { return !m_loadedFonts.isEmpty() || !m_failedFonts.isEmpty(); }

Powered by Google App Engine
This is Rietveld 408576698