Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / CSSSelectorWatch.h
index 35756c7..4c0e4fd 100644 (file)
@@ -41,7 +41,7 @@
 #include "wtf/WeakPtr.h"
 #include "wtf/text/WTFString.h"
 
-namespace WebCore {
+namespace blink {
 
 class CSSSelectorWatch FINAL : public NoBaseWillBeGarbageCollectedFinalized<CSSSelectorWatch>, public DocumentSupplement {
     WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(CSSSelectorWatch);
@@ -60,8 +60,9 @@ public:
 private:
     explicit CSSSelectorWatch(Document&);
     void callbackSelectorChangeTimerFired(Timer<CSSSelectorWatch>*);
+    Document& document() const { return *m_document; }
 
-    Document& m_document;
+    RawPtrWillBeMember<Document> m_document;
 
     WillBeHeapVector<RefPtrWillBeMember<StyleRule> > m_watchedCallbackSelectors;
 
@@ -80,6 +81,6 @@ private:
     int m_timerExpirations;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // CSSSelectorWatch_h