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

Unified Diff: third_party/WebKit/Source/core/css/FontFaceCache.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/FontFaceCache.cpp
diff --git a/third_party/WebKit/Source/core/css/FontFaceCache.cpp b/third_party/WebKit/Source/core/css/FontFaceCache.cpp
index 512cdec110d1f8512c07e416c6c86c7a5c35e6f3..dcc3346f398e54fc03389e3ce5c139c2721c1ffc 100644
--- a/third_party/WebKit/Source/core/css/FontFaceCache.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceCache.cpp
@@ -47,17 +47,17 @@ FontFaceCache::FontFaceCache()
{
}
-void FontFaceCache::add(CSSFontSelector* cssFontSelector, const StyleRuleFontFace* fontFaceRule, PassRefPtrWillBeRawPtr<FontFace> prpFontFace)
+void FontFaceCache::add(CSSFontSelector* cssFontSelector, const StyleRuleFontFace* fontFaceRule, RawPtr<FontFace> prpFontFace)
{
- RefPtrWillBeRawPtr<FontFace> fontFace = prpFontFace;
+ RawPtr<FontFace> fontFace = prpFontFace;
if (!m_styleRuleToFontFace.add(fontFaceRule, fontFace).isNewEntry)
return;
addFontFace(cssFontSelector, fontFace, true);
}
-void FontFaceCache::addFontFace(CSSFontSelector* cssFontSelector, PassRefPtrWillBeRawPtr<FontFace> prpFontFace, bool cssConnected)
+void FontFaceCache::addFontFace(CSSFontSelector* cssFontSelector, RawPtr<FontFace> prpFontFace, bool cssConnected)
{
- RefPtrWillBeRawPtr<FontFace> fontFace = prpFontFace;
+ RawPtr<FontFace> fontFace = prpFontFace;
FamilyToTraitsMap::AddResult traitsResult = m_fontFaces.add(fontFace->family(), nullptr);
if (!traitsResult.storedValue->value)
@@ -94,7 +94,7 @@ void FontFaceCache::removeFontFace(FontFace* fontFace, bool cssConnected)
TraitsMap::iterator familyFontFacesIter = familyFontFaces->find(fontFace->traits().bitfield());
if (familyFontFacesIter == familyFontFaces->end())
return;
- RefPtrWillBeRawPtr<CSSSegmentedFontFace> segmentedFontFace = familyFontFacesIter->value;
+ RawPtr<CSSSegmentedFontFace> segmentedFontFace = familyFontFacesIter->value;
segmentedFontFace->removeFontFace(fontFace);
if (segmentedFontFace->isEmpty()) {
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFaceCache.h ('k') | third_party/WebKit/Source/core/css/FontFaceSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698