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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
817 Document* parentDocument() const; | 817 Document* parentDocument() const; |
818 Document& topDocument() const; | 818 Document& topDocument() const; |
819 WeakPtrWillBeRawPtr<Document> contextDocument(); | 819 WeakPtrWillBeRawPtr<Document> contextDocument(); |
820 | 820 |
821 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } | 821 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
822 | 822 |
823 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : nullptr; } | 823 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : nullptr; } |
824 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); | 824 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); |
825 void popCurrentScript(); | 825 void popCurrentScript(); |
826 | 826 |
827 void applyXSLTransform(ProcessingInstruction* pi); | |
828 PassRefPtrWillBeRawPtr<Document> transformSourceDocument() { return m_transf
ormSourceDocument; } | |
829 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } | |
830 | |
831 void setTransformSource(PassOwnPtr<TransformSource>); | 827 void setTransformSource(PassOwnPtr<TransformSource>); |
832 TransformSource* transformSource() const { return m_transformSource.get(); } | 828 TransformSource* transformSource() const { return m_transformSource.get(); } |
833 | 829 |
834 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m
_domTreeVersion = ++s_globalTreeVersion; } | 830 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m
_domTreeVersion = ++s_globalTreeVersion; } |
835 uint64_t domTreeVersion() const { return m_domTreeVersion; } | 831 uint64_t domTreeVersion() const { return m_domTreeVersion; } |
836 | 832 |
837 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; | 833 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; |
838 | 834 |
839 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout =
= DidLayoutWithPendingSheets; } | 835 bool didLayoutWithPendingStylesheets() const { return m_pendingSheetLayout =
= DidLayoutWithPendingSheets; } |
840 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou
t == IgnoreLayoutWithPendingSheets; } | 836 bool ignoreLayoutWithPendingStylesheets() const { return m_pendingSheetLayou
t == IgnoreLayoutWithPendingSheets; } |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 | 1273 |
1278 LoadEventProgress m_loadEventProgress; | 1274 LoadEventProgress m_loadEventProgress; |
1279 | 1275 |
1280 double m_startTime; | 1276 double m_startTime; |
1281 | 1277 |
1282 OwnPtrWillBeMember<ScriptRunner> m_scriptRunner; | 1278 OwnPtrWillBeMember<ScriptRunner> m_scriptRunner; |
1283 | 1279 |
1284 WillBeHeapVector<RefPtrWillBeMember<HTMLScriptElement>> m_currentScriptStack
; | 1280 WillBeHeapVector<RefPtrWillBeMember<HTMLScriptElement>> m_currentScriptStack
; |
1285 | 1281 |
1286 OwnPtr<TransformSource> m_transformSource; | 1282 OwnPtr<TransformSource> m_transformSource; |
1287 RefPtrWillBeMember<Document> m_transformSourceDocument; | |
1288 | 1283 |
1289 String m_xmlEncoding; | 1284 String m_xmlEncoding; |
1290 String m_xmlVersion; | 1285 String m_xmlVersion; |
1291 unsigned m_xmlStandalone : 2; | 1286 unsigned m_xmlStandalone : 2; |
1292 unsigned m_hasXMLDeclaration : 1; | 1287 unsigned m_hasXMLDeclaration : 1; |
1293 | 1288 |
1294 AtomicString m_contentLanguage; | 1289 AtomicString m_contentLanguage; |
1295 | 1290 |
1296 DocumentEncodingData m_encodingData; | 1291 DocumentEncodingData m_encodingData; |
1297 | 1292 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1428 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1434 | 1429 |
1435 } // namespace blink | 1430 } // namespace blink |
1436 | 1431 |
1437 #ifndef NDEBUG | 1432 #ifndef NDEBUG |
1438 // Outside the WebCore namespace for ease of invocation from gdb. | 1433 // Outside the WebCore namespace for ease of invocation from gdb. |
1439 void showLiveDocumentInstances(); | 1434 void showLiveDocumentInstances(); |
1440 #endif | 1435 #endif |
1441 | 1436 |
1442 #endif // Document_h | 1437 #endif // Document_h |
OLD | NEW |