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

Side by Side Diff: Source/core/dom/Document.h

Issue 336293002: Oilpan: Trace DocumentVisibilityObserver::m_document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 DocumentVisibilityObserver(Document&); 218 DocumentVisibilityObserver(Document&);
219 virtual ~DocumentVisibilityObserver(); 219 virtual ~DocumentVisibilityObserver();
220 220
221 virtual void didChangeVisibilityState(PageVisibilityState) = 0; 221 virtual void didChangeVisibilityState(PageVisibilityState) = 0;
222 222
223 // Classes that inherit Node and DocumentVisibilityObserver must have a 223 // Classes that inherit Node and DocumentVisibilityObserver must have a
224 // virtual override of Node::didMoveToNewDocument that calls 224 // virtual override of Node::didMoveToNewDocument that calls
225 // DocumentVisibilityObserver::setDocument 225 // DocumentVisibilityObserver::setDocument
226 void setObservedDocument(Document&); 226 void setObservedDocument(Document&);
227 227
228 protected:
229 void trace(Visitor*);
230
228 private: 231 private:
229 void registerObserver(Document&); 232 void registerObserver(Document&);
230 void unregisterObserver(); 233 void unregisterObserver();
231 Document* m_document; 234
235 RawPtrWillBeMember<Document> m_document;
232 }; 236 };
233 237
234 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext, public ExecutionContextClient 238 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext, public ExecutionContextClient
235 , public DocumentSupplementable, public LifecycleContext<Document> { 239 , public DocumentSupplementable, public LifecycleContext<Document> {
236 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); 240 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document);
237 public: 241 public:
238 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ er = DocumentInit()) 242 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ er = DocumentInit())
239 { 243 {
240 return adoptRefWillBeNoop(new Document(initializer)); 244 return adoptRefWillBeNoop(new Document(initializer));
241 } 245 }
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 inline bool Node::isDocumentNode() const 1465 inline bool Node::isDocumentNode() const
1462 { 1466 {
1463 return this == document(); 1467 return this == document();
1464 } 1468 }
1465 1469
1466 Node* eventTargetNodeForDocument(Document*); 1470 Node* eventTargetNodeForDocument(Document*);
1467 1471
1468 } // namespace WebCore 1472 } // namespace WebCore
1469 1473
1470 #endif // Document_h 1474 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698