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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 | 844 |
845 // designMode support | 845 // designMode support |
846 enum InheritedBool { off = false, on = true, inherit }; | 846 enum InheritedBool { off = false, on = true, inherit }; |
847 void setDesignMode(InheritedBool value); | 847 void setDesignMode(InheritedBool value); |
848 InheritedBool getDesignMode() const; | 848 InheritedBool getDesignMode() const; |
849 bool inDesignMode() const; | 849 bool inDesignMode() const; |
850 | 850 |
851 Document* parentDocument() const; | 851 Document* parentDocument() const; |
852 Document* topDocument() const; | 852 Document* topDocument() const; |
853 | 853 |
| 854 int docID() const { return m_docID; } |
| 855 |
854 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } | 856 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
855 | 857 |
856 void applyXSLTransform(ProcessingInstruction* pi); | 858 void applyXSLTransform(ProcessingInstruction* pi); |
857 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } | 859 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } |
858 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } | 860 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } |
859 | 861 |
860 void setTransformSource(PassOwnPtr<TransformSource>); | 862 void setTransformSource(PassOwnPtr<TransformSource>); |
861 TransformSource* transformSource() const { return m_transformSource.get(); } | 863 TransformSource* transformSource() const { return m_transformSource.get(); } |
862 | 864 |
863 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } | 865 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1181 void addMutationEventListenerTypeIfEnabled(ListenerType); | 1183 void addMutationEventListenerTypeIfEnabled(ListenerType); |
1182 | 1184 |
1183 void didAssociateFormControlsTimerFired(Timer<Document>*); | 1185 void didAssociateFormControlsTimerFired(Timer<Document>*); |
1184 | 1186 |
1185 void styleResolverThrowawayTimerFired(Timer<Document>*); | 1187 void styleResolverThrowawayTimerFired(Timer<Document>*); |
1186 Timer<Document> m_styleResolverThrowawayTimer; | 1188 Timer<Document> m_styleResolverThrowawayTimer; |
1187 double m_lastStyleResolverAccessTime; | 1189 double m_lastStyleResolverAccessTime; |
1188 | 1190 |
1189 OwnPtr<StyleResolver> m_styleResolver; | 1191 OwnPtr<StyleResolver> m_styleResolver; |
1190 bool m_didCalculateStyleResolver; | 1192 bool m_didCalculateStyleResolver; |
| 1193 bool m_hasDirtyStyleResolver; |
1191 bool m_hasNodesWithPlaceholderStyle; | 1194 bool m_hasNodesWithPlaceholderStyle; |
1192 bool m_needsNotifyRemoveAllPendingStylesheet; | 1195 bool m_needsNotifyRemoveAllPendingStylesheet; |
1193 // But sometimes you need to ignore pending stylesheet count to | 1196 // But sometimes you need to ignore pending stylesheet count to |
1194 // force an immediate layout when requested by JS. | 1197 // force an immediate layout when requested by JS. |
1195 bool m_ignorePendingStylesheets; | 1198 bool m_ignorePendingStylesheets; |
1196 | 1199 |
1197 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 1200 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
1198 // to track that this happened so that we can do a full repaint when the sty
lesheets | 1201 // to track that this happened so that we can do a full repaint when the sty
lesheets |
1199 // do eventually load. | 1202 // do eventually load. |
1200 PendingSheetLayout m_pendingSheetLayout; | 1203 PendingSheetLayout m_pendingSheetLayout; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 | 1314 |
1312 RefPtr<SerializedScriptValue> m_pendingStateObject; | 1315 RefPtr<SerializedScriptValue> m_pendingStateObject; |
1313 double m_startTime; | 1316 double m_startTime; |
1314 bool m_overMinimumLayoutThreshold; | 1317 bool m_overMinimumLayoutThreshold; |
1315 | 1318 |
1316 OwnPtr<ScriptRunner> m_scriptRunner; | 1319 OwnPtr<ScriptRunner> m_scriptRunner; |
1317 | 1320 |
1318 OwnPtr<TransformSource> m_transformSource; | 1321 OwnPtr<TransformSource> m_transformSource; |
1319 RefPtr<Document> m_transformSourceDocument; | 1322 RefPtr<Document> m_transformSourceDocument; |
1320 | 1323 |
| 1324 int m_docID; // A unique document identifier used for things like document-s
pecific mapped attributes. |
| 1325 |
1321 String m_xmlEncoding; | 1326 String m_xmlEncoding; |
1322 String m_xmlVersion; | 1327 String m_xmlVersion; |
1323 unsigned m_xmlStandalone : 2; | 1328 unsigned m_xmlStandalone : 2; |
1324 unsigned m_hasXMLDeclaration : 1; | 1329 unsigned m_hasXMLDeclaration : 1; |
1325 | 1330 |
1326 String m_contentLanguage; | 1331 String m_contentLanguage; |
1327 | 1332 |
1328 RefPtr<TextResourceDecoder> m_decoder; | 1333 RefPtr<TextResourceDecoder> m_decoder; |
1329 | 1334 |
1330 InheritedBool m_designMode; | 1335 InheritedBool m_designMode; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 trackForDebugging(); | 1510 trackForDebugging(); |
1506 #endif | 1511 #endif |
1507 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 1512 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
1508 } | 1513 } |
1509 | 1514 |
1510 Node* eventTargetNodeForDocument(Document*); | 1515 Node* eventTargetNodeForDocument(Document*); |
1511 | 1516 |
1512 } // namespace WebCore | 1517 } // namespace WebCore |
1513 | 1518 |
1514 #endif // Document_h | 1519 #endif // Document_h |
OLD | NEW |