|
Lines 297-303
public:
a/Source/WebCore/dom/Document.h_sec1
|
| 297 |
{ |
297 |
{ |
| 298 |
return adoptRef(*new Document(frame, url, DefaultDocumentClass, NonRenderedPlaceholder)); |
298 |
return adoptRef(*new Document(frame, url, DefaultDocumentClass, NonRenderedPlaceholder)); |
| 299 |
} |
299 |
} |
| 300 |
static Ref<Document> create(ScriptExecutionContext&); |
300 |
static Ref<Document> create(Document&); |
| 301 |
|
301 |
|
| 302 |
virtual ~Document(); |
302 |
virtual ~Document(); |
| 303 |
|
303 |
|
|
Lines 771-776
public:
a/Source/WebCore/dom/Document.h_sec2
|
| 771 |
// In DOM Level 2, the Document's DOMWindow is called the defaultView. |
771 |
// In DOM Level 2, the Document's DOMWindow is called the defaultView. |
| 772 |
DOMWindow* defaultView() const { return domWindow(); } |
772 |
DOMWindow* defaultView() const { return domWindow(); } |
| 773 |
|
773 |
|
|
|
774 |
Document& contextDocument() const; |
| 775 |
void setContextDocument(Document& document) { m_contextDocument = document.createWeakPtr(); } |
| 776 |
|
| 774 |
// Helper functions for forwarding DOMWindow event related tasks to the DOMWindow if it exists. |
777 |
// Helper functions for forwarding DOMWindow event related tasks to the DOMWindow if it exists. |
| 775 |
void setWindowAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& value); |
778 |
void setWindowAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& value); |
| 776 |
void setWindowAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>); |
779 |
void setWindowAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>); |
|
Lines 1411-1416
private:
a/Source/WebCore/dom/Document.h_sec3
|
| 1411 |
|
1414 |
|
| 1412 |
Frame* m_frame; |
1415 |
Frame* m_frame; |
| 1413 |
RefPtr<DOMWindow> m_domWindow; |
1416 |
RefPtr<DOMWindow> m_domWindow; |
|
|
1417 |
WeakPtr<Document> m_contextDocument; |
| 1414 |
|
1418 |
|
| 1415 |
Ref<CachedResourceLoader> m_cachedResourceLoader; |
1419 |
Ref<CachedResourceLoader> m_cachedResourceLoader; |
| 1416 |
RefPtr<DocumentParser> m_parser; |
1420 |
RefPtr<DocumentParser> m_parser; |
|
Lines 1791-1797
inline bool Node::isDocumentNode() const
a/Source/WebCore/dom/Document.h_sec4
|
| 1791 |
|
1795 |
|
| 1792 |
inline ScriptExecutionContext* Node::scriptExecutionContext() const |
1796 |
inline ScriptExecutionContext* Node::scriptExecutionContext() const |
| 1793 |
{ |
1797 |
{ |
| 1794 |
return &document(); |
1798 |
return &document().contextDocument(); |
| 1795 |
} |
1799 |
} |
| 1796 |
|
1800 |
|
| 1797 |
Element* eventTargetElementForDocument(Document*); |
1801 |
Element* eventTargetElementForDocument(Document*); |