Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: Source/core/dom/Document.h

Issue 16276002: Clean up the initializer mess in Document. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix logic error. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
856 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } 854 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); }
857 855
858 void applyXSLTransform(ProcessingInstruction* pi); 856 void applyXSLTransform(ProcessingInstruction* pi);
859 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc ument; } 857 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc ument; }
860 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; } 858 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument = doc; }
861 859
862 void setTransformSource(PassOwnPtr<TransformSource>); 860 void setTransformSource(PassOwnPtr<TransformSource>);
863 TransformSource* transformSource() const { return m_transformSource.get(); } 861 TransformSource* transformSource() const { return m_transformSource.get(); }
864 862
865 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } 863 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; }
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 void addMutationEventListenerTypeIfEnabled(ListenerType); 1181 void addMutationEventListenerTypeIfEnabled(ListenerType);
1184 1182
1185 void didAssociateFormControlsTimerFired(Timer<Document>*); 1183 void didAssociateFormControlsTimerFired(Timer<Document>*);
1186 1184
1187 void styleResolverThrowawayTimerFired(Timer<Document>*); 1185 void styleResolverThrowawayTimerFired(Timer<Document>*);
1188 Timer<Document> m_styleResolverThrowawayTimer; 1186 Timer<Document> m_styleResolverThrowawayTimer;
1189 double m_lastStyleResolverAccessTime; 1187 double m_lastStyleResolverAccessTime;
1190 1188
1191 OwnPtr<StyleResolver> m_styleResolver; 1189 OwnPtr<StyleResolver> m_styleResolver;
1192 bool m_didCalculateStyleResolver; 1190 bool m_didCalculateStyleResolver;
1193 bool m_hasDirtyStyleResolver;
1194 bool m_hasNodesWithPlaceholderStyle; 1191 bool m_hasNodesWithPlaceholderStyle;
1195 bool m_needsNotifyRemoveAllPendingStylesheet; 1192 bool m_needsNotifyRemoveAllPendingStylesheet;
1196 // But sometimes you need to ignore pending stylesheet count to 1193 // But sometimes you need to ignore pending stylesheet count to
1197 // force an immediate layout when requested by JS. 1194 // force an immediate layout when requested by JS.
1198 bool m_ignorePendingStylesheets; 1195 bool m_ignorePendingStylesheets;
1199 1196
1200 // If we do ignore the pending stylesheet count, then we need to add a boole an 1197 // If we do ignore the pending stylesheet count, then we need to add a boole an
1201 // to track that this happened so that we can do a full repaint when the sty lesheets 1198 // to track that this happened so that we can do a full repaint when the sty lesheets
1202 // do eventually load. 1199 // do eventually load.
1203 PendingSheetLayout m_pendingSheetLayout; 1200 PendingSheetLayout m_pendingSheetLayout;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 1311
1315 RefPtr<SerializedScriptValue> m_pendingStateObject; 1312 RefPtr<SerializedScriptValue> m_pendingStateObject;
1316 double m_startTime; 1313 double m_startTime;
1317 bool m_overMinimumLayoutThreshold; 1314 bool m_overMinimumLayoutThreshold;
1318 1315
1319 OwnPtr<ScriptRunner> m_scriptRunner; 1316 OwnPtr<ScriptRunner> m_scriptRunner;
1320 1317
1321 OwnPtr<TransformSource> m_transformSource; 1318 OwnPtr<TransformSource> m_transformSource;
1322 RefPtr<Document> m_transformSourceDocument; 1319 RefPtr<Document> m_transformSourceDocument;
1323 1320
1324 int m_docID; // A unique document identifier used for things like document-s pecific mapped attributes.
1325
1326 String m_xmlEncoding; 1321 String m_xmlEncoding;
1327 String m_xmlVersion; 1322 String m_xmlVersion;
1328 unsigned m_xmlStandalone : 2; 1323 unsigned m_xmlStandalone : 2;
1329 unsigned m_hasXMLDeclaration : 1; 1324 unsigned m_hasXMLDeclaration : 1;
1330 1325
1331 String m_contentLanguage; 1326 String m_contentLanguage;
1332 1327
1333 RefPtr<TextResourceDecoder> m_decoder; 1328 RefPtr<TextResourceDecoder> m_decoder;
1334 1329
1335 InheritedBool m_designMode; 1330 InheritedBool m_designMode;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 trackForDebugging(); 1505 trackForDebugging();
1511 #endif 1506 #endif
1512 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); 1507 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter);
1513 } 1508 }
1514 1509
1515 Node* eventTargetNodeForDocument(Document*); 1510 Node* eventTargetNodeForDocument(Document*);
1516 1511
1517 } // namespace WebCore 1512 } // namespace WebCore
1518 1513
1519 #endif // Document_h 1514 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698