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

Unified Diff: third_party/WebKit/Source/core/dom/DOMTokenList.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/dom/DOMTokenList.h
diff --git a/third_party/WebKit/Source/core/dom/DOMTokenList.h b/third_party/WebKit/Source/core/dom/DOMTokenList.h
index e93e20c43d3e5e9b82d1ff641aafc39cd483684d..6e7b5fc324b490c315bab1be8bbea482d28ee866 100644
--- a/third_party/WebKit/Source/core/dom/DOMTokenList.h
+++ b/third_party/WebKit/Source/core/dom/DOMTokenList.h
@@ -37,7 +37,7 @@ namespace blink {
class Element;
class ExceptionState;
-class CORE_EXPORT DOMTokenListObserver : public WillBeGarbageCollectedMixin {
+class CORE_EXPORT DOMTokenListObserver : public GarbageCollectedMixin {
public:
// Called when the value property is set, even if the tokens in
// the set have not changed.
@@ -46,15 +46,14 @@ public:
DEFINE_INLINE_VIRTUAL_TRACE() { }
};
-class CORE_EXPORT DOMTokenList : public RefCountedWillBeGarbageCollectedFinalized<DOMTokenList>,
+class CORE_EXPORT DOMTokenList : public GarbageCollectedFinalized<DOMTokenList>,
public ScriptWrappable, public ValueIterable<String> {
DEFINE_WRAPPERTYPEINFO();
- USING_FAST_MALLOC_WILL_BE_REMOVED(DOMTokenList);
WTF_MAKE_NONCOPYABLE(DOMTokenList);
public:
- static PassRefPtrWillBeRawPtr<DOMTokenList> create(DOMTokenListObserver* observer = nullptr)
+ static RawPtr<DOMTokenList> create(DOMTokenListObserver* observer = nullptr)
{
- return adoptRefWillBeNoop(new DOMTokenList(observer));
+ return new DOMTokenList(observer);
}
virtual ~DOMTokenList() { }
@@ -112,7 +111,7 @@ private:
IterationSource* startIteration(ScriptState*, ExceptionState&) override;
SpaceSplitString m_tokens;
AtomicString m_value;
- RawPtrWillBeWeakMember<DOMTokenListObserver> m_observer;
+ WeakMember<DOMTokenListObserver> m_observer;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMStringMap.idl ('k') | third_party/WebKit/Source/core/dom/DOMTokenList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698