| 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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 // designMode support | 825 // designMode support |
| 826 enum InheritedBool { off = false, on = true, inherit }; | 826 enum InheritedBool { off = false, on = true, inherit }; |
| 827 void setDesignMode(InheritedBool value); | 827 void setDesignMode(InheritedBool value); |
| 828 InheritedBool getDesignMode() const; | 828 InheritedBool getDesignMode() const; |
| 829 bool inDesignMode() const; | 829 bool inDesignMode() const; |
| 830 String designMode() const; | 830 String designMode() const; |
| 831 void setDesignMode(const String&); | 831 void setDesignMode(const String&); |
| 832 | 832 |
| 833 Document* parentDocument() const; | 833 Document* parentDocument() const; |
| 834 Document& topDocument() const; | 834 Document& topDocument() const; |
| 835 WeakPtr<Document> contextDocument(); | 835 WeakPtrWillBeRawPtr<Document> contextDocument(); |
| 836 | 836 |
| 837 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } | 837 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
| 838 | 838 |
| 839 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } | 839 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } |
| 840 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); | 840 void pushCurrentScript(PassRefPtrWillBeRawPtr<HTMLScriptElement>); |
| 841 void popCurrentScript(); | 841 void popCurrentScript(); |
| 842 | 842 |
| 843 void applyXSLTransform(ProcessingInstruction* pi); | 843 void applyXSLTransform(ProcessingInstruction* pi); |
| 844 PassRefPtrWillBeRawPtr<Document> transformSourceDocument() { return m_transf
ormSourceDocument; } | 844 PassRefPtrWillBeRawPtr<Document> transformSourceDocument() { return m_transf
ormSourceDocument; } |
| 845 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } | 845 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 DocumentClassFlags m_documentClasses; | 1334 DocumentClassFlags m_documentClasses; |
| 1335 | 1335 |
| 1336 bool m_isViewSource; | 1336 bool m_isViewSource; |
| 1337 bool m_sawElementsInKnownNamespaces; | 1337 bool m_sawElementsInKnownNamespaces; |
| 1338 bool m_isSrcdocDocument; | 1338 bool m_isSrcdocDocument; |
| 1339 bool m_isMobileDocument; | 1339 bool m_isMobileDocument; |
| 1340 bool m_isTransitionDocument; | 1340 bool m_isTransitionDocument; |
| 1341 | 1341 |
| 1342 RenderView* m_renderView; | 1342 RenderView* m_renderView; |
| 1343 | 1343 |
| 1344 // FIXME: Oilpan: We should use a real weak pointer here. | 1344 #if !ENABLE(OILPAN) |
| 1345 WeakPtrFactory<Document> m_weakFactory; | 1345 WeakPtrFactory<Document> m_weakFactory; |
| 1346 WeakPtr<Document> m_contextDocument; | 1346 #endif |
| 1347 WeakPtrWillBeWeakMember<Document> m_contextDocument; |
| 1347 | 1348 |
| 1348 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() | 1349 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() |
| 1349 | 1350 |
| 1350 WillBeHeapVector<RefPtrWillBeMember<Element> > m_topLayerElements; | 1351 WillBeHeapVector<RefPtrWillBeMember<Element> > m_topLayerElements; |
| 1351 | 1352 |
| 1352 int m_loadEventDelayCount; | 1353 int m_loadEventDelayCount; |
| 1353 Timer<Document> m_loadEventDelayTimer; | 1354 Timer<Document> m_loadEventDelayTimer; |
| 1354 Timer<Document> m_pluginLoadingTimer; | 1355 Timer<Document> m_pluginLoadingTimer; |
| 1355 | 1356 |
| 1356 ViewportDescription m_viewportDescription; | 1357 ViewportDescription m_viewportDescription; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1449 inline bool Node::isDocumentNode() const | 1450 inline bool Node::isDocumentNode() const |
| 1450 { | 1451 { |
| 1451 return this == document(); | 1452 return this == document(); |
| 1452 } | 1453 } |
| 1453 | 1454 |
| 1454 Node* eventTargetNodeForDocument(Document*); | 1455 Node* eventTargetNodeForDocument(Document*); |
| 1455 | 1456 |
| 1456 } // namespace WebCore | 1457 } // namespace WebCore |
| 1457 | 1458 |
| 1458 #endif // Document_h | 1459 #endif // Document_h |
| OLD | NEW |