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

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

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/FontFaceSet.h
diff --git a/third_party/WebKit/Source/core/css/FontFaceSet.h b/third_party/WebKit/Source/core/css/FontFaceSet.h
index 223864dbdf57158ea1ddf2af9a7242ea1ec3e4ab..5ef554199485e372edba412f8d1d4f12018d7412 100644
--- a/third_party/WebKit/Source/core/css/FontFaceSet.h
+++ b/third_party/WebKit/Source/core/css/FontFaceSet.h
@@ -58,7 +58,7 @@ class FontFaceCache;
class FontResource;
class ExecutionContext;
-using FontFaceSetIterable = PairIterable<RefPtrWillBeMember<FontFace>, RefPtrWillBeMember<FontFace>>;
+using FontFaceSetIterable = PairIterable<Member<FontFace>, Member<FontFace>>;
#if ENABLE(OILPAN)
class FontFaceSet final : public EventTargetWithInlineData, public HeapSupplement<Document>, public ActiveDOMObject, public FontFaceSetIterable {
@@ -81,7 +81,7 @@ public:
ScriptPromise load(ScriptState*, const String& font, const String& text);
ScriptPromise ready(ScriptState*);
- PassRefPtrWillBeRawPtr<FontFaceSet> addForBinding(ScriptState*, FontFace*, ExceptionState&);
+ RawPtr<FontFaceSet> addForBinding(ScriptState*, FontFace*, ExceptionState&);
void clearForBinding(ScriptState*, ExceptionState&);
bool deleteForBinding(ScriptState*, FontFace*, ExceptionState&);
bool hasForBinding(ScriptState*, FontFace*, ExceptionState&) const;
@@ -104,7 +104,7 @@ public:
void resume() override;
void stop() override;
- static PassRefPtrWillBeRawPtr<FontFaceSet> from(Document&);
+ static RawPtr<FontFaceSet> from(Document&);
static void didLayout(Document&);
void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*);
@@ -112,19 +112,19 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- static PassRefPtrWillBeRawPtr<FontFaceSet> create(Document& document)
+ static RawPtr<FontFaceSet> create(Document& document)
{
- return adoptRefWillBeNoop(new FontFaceSet(document));
+ return new FontFaceSet(document);
}
FontFaceSetIterable::IterationSource* startIteration(ScriptState*, ExceptionState&) override;
class IterationSource final : public FontFaceSetIterable::IterationSource {
public:
- explicit IterationSource(const WillBeHeapVector<RefPtrWillBeMember<FontFace>>& fontFaces)
+ explicit IterationSource(const HeapVector<Member<FontFace>>& fontFaces)
: m_index(0)
, m_fontFaces(fontFaces) { }
- bool next(ScriptState*, RefPtrWillBeMember<FontFace>&, RefPtrWillBeMember<FontFace>&, ExceptionState&) override;
+ bool next(ScriptState*, Member<FontFace>&, Member<FontFace>&, ExceptionState&) override;
DEFINE_INLINE_VIRTUAL_TRACE()
{
@@ -134,7 +134,7 @@ private:
private:
size_t m_index;
- WillBeHeapVector<RefPtrWillBeMember<FontFace>> m_fontFaces;
+ HeapVector<Member<FontFace>> m_fontFaces;
};
class FontLoadHistogram {
@@ -155,28 +155,28 @@ private:
FontFaceSet(Document&);
bool inActiveDocumentContext() const;
- void addToLoadingFonts(PassRefPtrWillBeRawPtr<FontFace>);
- void removeFromLoadingFonts(PassRefPtrWillBeRawPtr<FontFace>);
+ void addToLoadingFonts(RawPtr<FontFace>);
+ void removeFromLoadingFonts(RawPtr<FontFace>);
void fireLoadingEvent();
void fireDoneEventIfPossible();
bool resolveFontStyle(const String&, Font&);
void handlePendingEventsAndPromisesSoon();
void handlePendingEventsAndPromises();
- const WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>>& cssConnectedFontFaceList() const;
+ const HeapListHashSet<Member<FontFace>>& cssConnectedFontFaceList() const;
bool isCSSConnectedFontFace(FontFace*) const;
bool shouldSignalReady() const;
- using ReadyProperty = ScriptPromiseProperty<RawPtrWillBeMember<FontFaceSet>, RawPtrWillBeMember<FontFaceSet>, Member<DOMException>>;
+ using ReadyProperty = ScriptPromiseProperty<Member<FontFaceSet>, Member<FontFaceSet>, Member<DOMException>>;
- WillBeHeapHashSet<RefPtrWillBeMember<FontFace>> m_loadingFonts;
+ HeapHashSet<Member<FontFace>> m_loadingFonts;
bool m_shouldFireLoadingEvent;
bool m_isLoading;
- PersistentWillBeMember<ReadyProperty> m_ready;
+ Member<ReadyProperty> m_ready;
FontFaceArray m_loadedFonts;
FontFaceArray m_failedFonts;
- WillBeHeapListHashSet<RefPtrWillBeMember<FontFace>> m_nonCSSConnectedFaces;
+ HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces;
- PersistentWillBeMember<AsyncMethodRunner<FontFaceSet>> m_asyncRunner;
+ Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner;
FontLoadHistogram m_histogram;
};
« no previous file with comments | « third_party/WebKit/Source/core/css/FontFaceCache.cpp ('k') | third_party/WebKit/Source/core/css/FontFaceSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698