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

Unified Diff: third_party/WebKit/Source/core/dom/CSSSelectorWatch.h

Issue 2150443002: Supplement should have a Member to the corresponding Supplementable object (Part 1) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 | third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/CSSSelectorWatch.h
diff --git a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.h b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.h
index 00e7b22bea86261780d296a5dbc95ad63c8ffac4..f36a0e5f5eac1a1b5f8221674f343e90d7cb2756 100644
--- a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.h
+++ b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.h
@@ -60,9 +60,7 @@ public:
private:
explicit CSSSelectorWatch(Document&);
void callbackSelectorChangeTimerFired(Timer<CSSSelectorWatch>*);
- Document& document() const { return *m_document; }
-
- Member<Document> m_document;
+ Document& document() const { return *host(); }
sof 2016/07/13 07:46:08 assert/check for non-nullness?
haraken 2016/07/13 07:51:25 Hmm, maybe CSSSelectorWatch does want to keep a st
sof 2016/07/13 07:54:07 How about going with "Member<T> m_host" ?
HeapVector<Member<StyleRule>> m_watchedCallbackSelectors;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698