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

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

Issue 292503006: Oilpan: add [WillBeGarbageCollected] for Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 7 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 Location* location() const; 316 Location* location() const;
317 317
318 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& name, Exce ptionState&); 318 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& name, Exce ptionState&);
319 PassRefPtrWillBeRawPtr<DocumentFragment> createDocumentFragment(); 319 PassRefPtrWillBeRawPtr<DocumentFragment> createDocumentFragment();
320 PassRefPtrWillBeRawPtr<Text> createTextNode(const String& data); 320 PassRefPtrWillBeRawPtr<Text> createTextNode(const String& data);
321 PassRefPtrWillBeRawPtr<Comment> createComment(const String& data); 321 PassRefPtrWillBeRawPtr<Comment> createComment(const String& data);
322 PassRefPtrWillBeRawPtr<CDATASection> createCDATASection(const String& data, ExceptionState&); 322 PassRefPtrWillBeRawPtr<CDATASection> createCDATASection(const String& data, ExceptionState&);
323 PassRefPtrWillBeRawPtr<ProcessingInstruction> createProcessingInstruction(co nst String& target, const String& data, ExceptionState&); 323 PassRefPtrWillBeRawPtr<ProcessingInstruction> createProcessingInstruction(co nst String& target, const String& data, ExceptionState&);
324 PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, Excep tionState&); 324 PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, Excep tionState&);
325 PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespace URI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamesp aceChecks = false); 325 PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespace URI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamesp aceChecks = false);
326 PassRefPtr<Node> importNode(Node* importedNode, ExceptionState&); 326 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, ExceptionState&) ;
327 PassRefPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&); 327 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, bool deep, Excep tionState&);
328 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac eURI, const AtomicString& qualifiedName, ExceptionState&); 328 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac eURI, const AtomicString& qualifiedName, ExceptionState&);
329 PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool cre atedByParser); 329 PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool cre atedByParser);
330 330
331 bool regionBasedColumnsEnabled() const; 331 bool regionBasedColumnsEnabled() const;
332 332
333 /** 333 /**
334 * Retrieve all nodes that intersect a rect in the window's document, until it is fully enclosed by 334 * Retrieve all nodes that intersect a rect in the window's document, until it is fully enclosed by
335 * the boundaries of a node. 335 * the boundaries of a node.
336 * 336 *
337 * @param centerX x reference for the rectangle in CSS pixels 337 * @param centerX x reference for the rectangle in CSS pixels
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 void nodeChildrenWillBeRemoved(ContainerNode&); 676 void nodeChildrenWillBeRemoved(ContainerNode&);
677 // nodeWillBeRemoved is only safe when removing one node at a time. 677 // nodeWillBeRemoved is only safe when removing one node at a time.
678 void nodeWillBeRemoved(Node&); 678 void nodeWillBeRemoved(Node&);
679 bool canReplaceChild(const Node& newChild, const Node& oldChild) const; 679 bool canReplaceChild(const Node& newChild, const Node& oldChild) const;
680 680
681 void didInsertText(Node*, unsigned offset, unsigned length); 681 void didInsertText(Node*, unsigned offset, unsigned length);
682 void didRemoveText(Node*, unsigned offset, unsigned length); 682 void didRemoveText(Node*, unsigned offset, unsigned length);
683 void didMergeTextNodes(Text& oldNode, unsigned offset); 683 void didMergeTextNodes(Text& oldNode, unsigned offset);
684 void didSplitTextNode(Text& oldNode); 684 void didSplitTextNode(Text& oldNode);
685 685
686 void clearDOMWindow() { m_domWindow = 0; } 686 void clearDOMWindow() { m_domWindow = nullptr; }
687 DOMWindow* domWindow() const { return m_domWindow; } 687 DOMWindow* domWindow() const { return m_domWindow; }
688 688
689 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists. 689 // Helper functions for forwarding DOMWindow event related tasks to the DOMW indow if it exists.
690 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>); 690 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP tr<EventListener>);
691 EventListener* getWindowAttributeEventListener(const AtomicString& eventType ); 691 EventListener* getWindowAttributeEventListener(const AtomicString& eventType );
692 692
693 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception State&); 693 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception State&);
694 694
695 // keep track of what types of event listeners are registered, so we don't 695 // keep track of what types of event listeners are registered, so we don't
696 // dispatch events unnecessarily 696 // dispatch events unnecessarily
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 1182
1183 bool m_hasNodesWithPlaceholderStyle; 1183 bool m_hasNodesWithPlaceholderStyle;
1184 bool m_evaluateMediaQueriesOnStyleRecalc; 1184 bool m_evaluateMediaQueriesOnStyleRecalc;
1185 1185
1186 // If we do ignore the pending stylesheet count, then we need to add a boole an 1186 // If we do ignore the pending stylesheet count, then we need to add a boole an
1187 // to track that this happened so that we can do a full repaint when the sty lesheets 1187 // to track that this happened so that we can do a full repaint when the sty lesheets
1188 // do eventually load. 1188 // do eventually load.
1189 PendingSheetLayout m_pendingSheetLayout; 1189 PendingSheetLayout m_pendingSheetLayout;
1190 1190
1191 LocalFrame* m_frame; 1191 LocalFrame* m_frame;
1192 DOMWindow* m_domWindow; 1192 RawPtrWillBeWeakMember<DOMWindow> m_domWindow;
1193 HTMLImportsController* m_importsController; 1193 HTMLImportsController* m_importsController;
1194 1194
1195 RefPtrWillBeMember<ResourceFetcher> m_fetcher; 1195 RefPtrWillBeMember<ResourceFetcher> m_fetcher;
1196 RefPtr<DocumentParser> m_parser; 1196 RefPtr<DocumentParser> m_parser;
1197 unsigned m_activeParserCount; 1197 unsigned m_activeParserCount;
1198 RefPtrWillBeMember<ContextFeatures> m_contextFeatures; 1198 RefPtrWillBeMember<ContextFeatures> m_contextFeatures;
1199 1199
1200 bool m_wellFormed; 1200 bool m_wellFormed;
1201 1201
1202 // Document URLs. 1202 // Document URLs.
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 inline bool Node::isDocumentNode() const 1440 inline bool Node::isDocumentNode() const
1441 { 1441 {
1442 return this == document(); 1442 return this == document();
1443 } 1443 }
1444 1444
1445 Node* eventTargetNodeForDocument(Document*); 1445 Node* eventTargetNodeForDocument(Document*);
1446 1446
1447 } // namespace WebCore 1447 } // namespace WebCore
1448 1448
1449 #endif // Document_h 1449 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698