| OLD | NEW |
| 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 Loading... |
| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 void nodeChildrenWillBeRemoved(ContainerNode&); | 679 void nodeChildrenWillBeRemoved(ContainerNode&); |
| 680 // nodeWillBeRemoved is only safe when removing one node at a time. | 680 // nodeWillBeRemoved is only safe when removing one node at a time. |
| 681 void nodeWillBeRemoved(Node&); | 681 void nodeWillBeRemoved(Node&); |
| 682 bool canReplaceChild(const Node& newChild, const Node& oldChild) const; | 682 bool canReplaceChild(const Node& newChild, const Node& oldChild) const; |
| 683 | 683 |
| 684 void didInsertText(Node*, unsigned offset, unsigned length); | 684 void didInsertText(Node*, unsigned offset, unsigned length); |
| 685 void didRemoveText(Node*, unsigned offset, unsigned length); | 685 void didRemoveText(Node*, unsigned offset, unsigned length); |
| 686 void didMergeTextNodes(Text& oldNode, unsigned offset); | 686 void didMergeTextNodes(Text& oldNode, unsigned offset); |
| 687 void didSplitTextNode(Text& oldNode); | 687 void didSplitTextNode(Text& oldNode); |
| 688 | 688 |
| 689 void clearDOMWindow() { m_domWindow = 0; } | 689 void clearDOMWindow() { m_domWindow = nullptr; } |
| 690 DOMWindow* domWindow() const { return m_domWindow; } | 690 DOMWindow* domWindow() const { return m_domWindow; } |
| 691 | 691 |
| 692 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. | 692 // Helper functions for forwarding DOMWindow event related tasks to the DOMW
indow if it exists. |
| 693 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>); | 693 void setWindowAttributeEventListener(const AtomicString& eventType, PassRefP
tr<EventListener>); |
| 694 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
); | 694 EventListener* getWindowAttributeEventListener(const AtomicString& eventType
); |
| 695 | 695 |
| 696 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception
State&); | 696 PassRefPtrWillBeRawPtr<Event> createEvent(const String& eventType, Exception
State&); |
| 697 | 697 |
| 698 // keep track of what types of event listeners are registered, so we don't | 698 // keep track of what types of event listeners are registered, so we don't |
| 699 // dispatch events unnecessarily | 699 // dispatch events unnecessarily |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 | 1185 |
| 1186 bool m_hasNodesWithPlaceholderStyle; | 1186 bool m_hasNodesWithPlaceholderStyle; |
| 1187 bool m_evaluateMediaQueriesOnStyleRecalc; | 1187 bool m_evaluateMediaQueriesOnStyleRecalc; |
| 1188 | 1188 |
| 1189 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 1189 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
| 1190 // to track that this happened so that we can do a full repaint when the sty
lesheets | 1190 // to track that this happened so that we can do a full repaint when the sty
lesheets |
| 1191 // do eventually load. | 1191 // do eventually load. |
| 1192 PendingSheetLayout m_pendingSheetLayout; | 1192 PendingSheetLayout m_pendingSheetLayout; |
| 1193 | 1193 |
| 1194 LocalFrame* m_frame; | 1194 LocalFrame* m_frame; |
| 1195 DOMWindow* m_domWindow; | 1195 RawPtrWillBeMember<DOMWindow> m_domWindow; |
| 1196 HTMLImportsController* m_importsController; | 1196 HTMLImportsController* m_importsController; |
| 1197 | 1197 |
| 1198 RefPtrWillBeMember<ResourceFetcher> m_fetcher; | 1198 RefPtrWillBeMember<ResourceFetcher> m_fetcher; |
| 1199 RefPtrWillBeMember<DocumentParser> m_parser; | 1199 RefPtrWillBeMember<DocumentParser> m_parser; |
| 1200 unsigned m_activeParserCount; | 1200 unsigned m_activeParserCount; |
| 1201 RefPtrWillBeMember<ContextFeatures> m_contextFeatures; | 1201 RefPtrWillBeMember<ContextFeatures> m_contextFeatures; |
| 1202 | 1202 |
| 1203 bool m_wellFormed; | 1203 bool m_wellFormed; |
| 1204 | 1204 |
| 1205 // Document URLs. | 1205 // Document URLs. |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 inline bool Node::isDocumentNode() const | 1443 inline bool Node::isDocumentNode() const |
| 1444 { | 1444 { |
| 1445 return this == document(); | 1445 return this == document(); |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 Node* eventTargetNodeForDocument(Document*); | 1448 Node* eventTargetNodeForDocument(Document*); |
| 1449 | 1449 |
| 1450 } // namespace WebCore | 1450 } // namespace WebCore |
| 1451 | 1451 |
| 1452 #endif // Document_h | 1452 #endif // Document_h |
| OLD | NEW |