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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 class HTMLCollection; | 101 class HTMLCollection; |
102 class HTMLAllCollection; | 102 class HTMLAllCollection; |
103 class HTMLDocument; | 103 class HTMLDocument; |
104 class HTMLElement; | 104 class HTMLElement; |
105 class HTMLFrameOwnerElement; | 105 class HTMLFrameOwnerElement; |
106 class HTMLHeadElement; | 106 class HTMLHeadElement; |
107 class HTMLImportsController; | 107 class HTMLImportsController; |
108 class HTMLIFrameElement; | 108 class HTMLIFrameElement; |
109 class HTMLMapElement; | 109 class HTMLMapElement; |
110 class HTMLNameCollection; | 110 class HTMLNameCollection; |
| 111 class HTMLScriptElement; |
111 class HitTestRequest; | 112 class HitTestRequest; |
112 class HitTestResult; | 113 class HitTestResult; |
113 class IntPoint; | 114 class IntPoint; |
114 class LayoutPoint; | 115 class LayoutPoint; |
115 class LayoutRect; | 116 class LayoutRect; |
116 class LiveNodeListBase; | 117 class LiveNodeListBase; |
117 class DOMWrapperWorld; | 118 class DOMWrapperWorld; |
118 class JSNode; | 119 class JSNode; |
119 class Locale; | 120 class Locale; |
120 class MediaQueryList; | 121 class MediaQueryList; |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 enum InheritedBool { off = false, on = true, inherit }; | 844 enum InheritedBool { off = false, on = true, inherit }; |
844 void setDesignMode(InheritedBool value); | 845 void setDesignMode(InheritedBool value); |
845 InheritedBool getDesignMode() const; | 846 InheritedBool getDesignMode() const; |
846 bool inDesignMode() const; | 847 bool inDesignMode() const; |
847 | 848 |
848 Document* parentDocument() const; | 849 Document* parentDocument() const; |
849 Document* topDocument() const; | 850 Document* topDocument() const; |
850 | 851 |
851 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } | 852 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
852 | 853 |
| 854 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } |
| 855 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); |
| 856 void popCurrentScript(); |
| 857 |
853 void applyXSLTransform(ProcessingInstruction* pi); | 858 void applyXSLTransform(ProcessingInstruction* pi); |
854 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } | 859 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } |
855 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } | 860 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } |
856 | 861 |
857 void setTransformSource(PassOwnPtr<TransformSource>); | 862 void setTransformSource(PassOwnPtr<TransformSource>); |
858 TransformSource* transformSource() const { return m_transformSource.get(); } | 863 TransformSource* transformSource() const { return m_transformSource.get(); } |
859 | 864 |
860 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } | 865 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } |
861 uint64_t domTreeVersion() const { return m_domTreeVersion; } | 866 uint64_t domTreeVersion() const { return m_domTreeVersion; } |
862 | 867 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 // and should be merged. | 1312 // and should be merged. |
1308 bool m_processingLoadEvent; | 1313 bool m_processingLoadEvent; |
1309 bool m_loadEventFinished; | 1314 bool m_loadEventFinished; |
1310 | 1315 |
1311 RefPtr<SerializedScriptValue> m_pendingStateObject; | 1316 RefPtr<SerializedScriptValue> m_pendingStateObject; |
1312 double m_startTime; | 1317 double m_startTime; |
1313 bool m_overMinimumLayoutThreshold; | 1318 bool m_overMinimumLayoutThreshold; |
1314 | 1319 |
1315 OwnPtr<ScriptRunner> m_scriptRunner; | 1320 OwnPtr<ScriptRunner> m_scriptRunner; |
1316 | 1321 |
| 1322 Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack; |
| 1323 |
1317 OwnPtr<TransformSource> m_transformSource; | 1324 OwnPtr<TransformSource> m_transformSource; |
1318 RefPtr<Document> m_transformSourceDocument; | 1325 RefPtr<Document> m_transformSourceDocument; |
1319 | 1326 |
1320 String m_xmlEncoding; | 1327 String m_xmlEncoding; |
1321 String m_xmlVersion; | 1328 String m_xmlVersion; |
1322 unsigned m_xmlStandalone : 2; | 1329 unsigned m_xmlStandalone : 2; |
1323 unsigned m_hasXMLDeclaration : 1; | 1330 unsigned m_hasXMLDeclaration : 1; |
1324 | 1331 |
1325 String m_contentLanguage; | 1332 String m_contentLanguage; |
1326 | 1333 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 inline bool Node::isDocumentNode() const | 1493 inline bool Node::isDocumentNode() const |
1487 { | 1494 { |
1488 return this == documentInternal(); | 1495 return this == documentInternal(); |
1489 } | 1496 } |
1490 | 1497 |
1491 Node* eventTargetNodeForDocument(Document*); | 1498 Node* eventTargetNodeForDocument(Document*); |
1492 | 1499 |
1493 } // namespace WebCore | 1500 } // namespace WebCore |
1494 | 1501 |
1495 #endif // Document_h | 1502 #endif // Document_h |
OLD | NEW |