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

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

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list 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 | « Source/core/dom/Comment.cpp ('k') | Source/core/dom/DocumentFragment.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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 void unregisterObserver(); 230 void unregisterObserver();
231 Document* m_document; 231 Document* m_document;
232 }; 232 };
233 233
234 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext, public ExecutionContextClient 234 class Document : public ContainerNode, public TreeScope, public SecurityContext, public ExecutionContext, public ExecutionContextClient
235 , public DocumentSupplementable, public LifecycleContext<Document> { 235 , public DocumentSupplementable, public LifecycleContext<Document> {
236 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document); 236 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Document);
237 public: 237 public:
238 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ er = DocumentInit()) 238 static PassRefPtrWillBeRawPtr<Document> create(const DocumentInit& initializ er = DocumentInit())
239 { 239 {
240 return adoptRefWillBeRefCountedGarbageCollected(new Document(initializer )); 240 return adoptRefWillBeNoop(new Document(initializer));
241 } 241 }
242 virtual ~Document(); 242 virtual ~Document();
243 243
244 MediaQueryMatcher& mediaQueryMatcher(); 244 MediaQueryMatcher& mediaQueryMatcher();
245 245
246 void mediaQueryAffectingValueChanged(); 246 void mediaQueryAffectingValueChanged();
247 247
248 #if !ENABLE(OILPAN)
248 using ContainerNode::ref; 249 using ContainerNode::ref;
249 using ContainerNode::deref; 250 using ContainerNode::deref;
251 #endif
250 using SecurityContext::securityOrigin; 252 using SecurityContext::securityOrigin;
251 using SecurityContext::contentSecurityPolicy; 253 using SecurityContext::contentSecurityPolicy;
252 using ExecutionContextClient::addConsoleMessage; 254 using ExecutionContextClient::addConsoleMessage;
253 using TreeScope::getElementById; 255 using TreeScope::getElementById;
254 256
255 virtual bool canContainRangeEndPoint() const OVERRIDE { return true; } 257 virtual bool canContainRangeEndPoint() const OVERRIDE { return true; }
256 258
257 SelectorQueryCache& selectorQueryCache(); 259 SelectorQueryCache& selectorQueryCache();
258 260
259 // Focus Management. 261 // Focus Management.
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 inline bool Node::isDocumentNode() const 1459 inline bool Node::isDocumentNode() const
1458 { 1460 {
1459 return this == document(); 1461 return this == document();
1460 } 1462 }
1461 1463
1462 Node* eventTargetNodeForDocument(Document*); 1464 Node* eventTargetNodeForDocument(Document*);
1463 1465
1464 } // namespace WebCore 1466 } // namespace WebCore
1465 1467
1466 #endif // Document_h 1468 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/core/dom/Comment.cpp ('k') | Source/core/dom/DocumentFragment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698