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

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

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: new requirements Created 6 years, 4 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') | Source/platform/Supplementable.h » ('J')
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 virtual ~DocumentVisibilityObserver(); 199 virtual ~DocumentVisibilityObserver();
200 200
201 virtual void didChangeVisibilityState(PageVisibilityState) = 0; 201 virtual void didChangeVisibilityState(PageVisibilityState) = 0;
202 202
203 // Classes that inherit Node and DocumentVisibilityObserver must have a 203 // Classes that inherit Node and DocumentVisibilityObserver must have a
204 // virtual override of Node::didMoveToNewDocument that calls 204 // virtual override of Node::didMoveToNewDocument that calls
205 // DocumentVisibilityObserver::setDocument 205 // DocumentVisibilityObserver::setDocument
206 void setObservedDocument(Document&); 206 void setObservedDocument(Document&);
207 207
208 protected: 208 protected:
209 void trace(Visitor*); 209 virtual void trace(Visitor*);
210 210
211 private: 211 private:
212 void registerObserver(Document&); 212 void registerObserver(Document&);
213 void unregisterObserver(); 213 void unregisterObserver();
214 214
215 RawPtrWillBeMember<Document> m_document; 215 RawPtrWillBeMember<Document> m_document;
216 }; 216 };
217 217
218 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext, public ExecutionContextClient 218 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext, public ExecutionContextClient
219 , public DocumentSupplementable, public LifecycleContext<Document> { 219 , public DocumentSupplementable, public LifecycleContext<Document> {
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 Node* eventTargetNodeForDocument(Document*); 1421 Node* eventTargetNodeForDocument(Document*);
1422 1422
1423 } // namespace blink 1423 } // namespace blink
1424 1424
1425 #ifndef NDEBUG 1425 #ifndef NDEBUG
1426 // Outside the WebCore namespace for ease of invocation from gdb. 1426 // Outside the WebCore namespace for ease of invocation from gdb.
1427 void showLiveDocumentInstances(); 1427 void showLiveDocumentInstances();
1428 #endif 1428 #endif
1429 1429
1430 #endif // Document_h 1430 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/platform/Supplementable.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698