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

Unified Diff: Source/core/dom/DOMSettableTokenList.h

Issue 1035533003: Oilpan: fix build++ after r192490. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: provide null trace() for non-oilpan Created 5 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
« no previous file with comments | « no previous file | Source/core/dom/DOMSettableTokenList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMSettableTokenList.h
diff --git a/Source/core/dom/DOMSettableTokenList.h b/Source/core/dom/DOMSettableTokenList.h
index f8565c6175b81cc917cb5cbdfd8017e0d55d683d..fe274a762192acbfd04b42864a59a9889a536c80 100644
--- a/Source/core/dom/DOMSettableTokenList.h
+++ b/Source/core/dom/DOMSettableTokenList.h
@@ -35,9 +35,11 @@ namespace blink {
class ExceptionState;
-class DOMSettableTokenListObserver {
+class DOMSettableTokenListObserver : public WillBeGarbageCollectedMixin {
public:
virtual void valueChanged() = 0;
+
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
};
class DOMSettableTokenList final
@@ -72,8 +74,10 @@ public:
const SpaceSplitString& tokens() const { return m_tokens; }
void setObserver(DOMSettableTokenListObserver* observer) { m_observer = observer; };
+ DECLARE_VIRTUAL_TRACE();
+
protected:
- DOMSettableTokenList(DOMSettableTokenListObserver*);
+ explicit DOMSettableTokenList(DOMSettableTokenListObserver*);
private:
virtual void addInternal(const AtomicString&) override;
@@ -82,7 +86,7 @@ private:
AtomicString m_value;
SpaceSplitString m_tokens;
- DOMSettableTokenListObserver* m_observer;
+ RawPtrWillBeWeakMember<DOMSettableTokenListObserver> m_observer;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/core/dom/DOMSettableTokenList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698