| 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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 Document& topDocument() const; | 828 Document& topDocument() const; |
| 829 WeakPtr<Document> contextDocument(); | 829 WeakPtr<Document> contextDocument(); |
| 830 | 830 |
| 831 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } | 831 ScriptRunner* scriptRunner() { return m_scriptRunner.get(); } |
| 832 | 832 |
| 833 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } | 833 HTMLScriptElement* currentScript() const { return !m_currentScriptStack.isEm
pty() ? m_currentScriptStack.last().get() : 0; } |
| 834 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); | 834 void pushCurrentScript(PassRefPtr<HTMLScriptElement>); |
| 835 void popCurrentScript(); | 835 void popCurrentScript(); |
| 836 | 836 |
| 837 void applyXSLTransform(ProcessingInstruction* pi); | 837 void applyXSLTransform(ProcessingInstruction* pi); |
| 838 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } | 838 PassRefPtrWillBeRawPtr<Document> transformSourceDocument() { return m_transf
ormSourceDocument; } |
| 839 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } | 839 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } |
| 840 | 840 |
| 841 void setTransformSource(PassOwnPtr<TransformSource>); | 841 void setTransformSource(PassOwnPtr<TransformSource>); |
| 842 TransformSource* transformSource() const { return m_transformSource.get(); } | 842 TransformSource* transformSource() const { return m_transformSource.get(); } |
| 843 | 843 |
| 844 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m
_domTreeVersion = ++s_globalTreeVersion; } | 844 void incDOMTreeVersion() { ASSERT(m_lifecycle.stateAllowsTreeMutations()); m
_domTreeVersion = ++s_globalTreeVersion; } |
| 845 uint64_t domTreeVersion() const { return m_domTreeVersion; } | 845 uint64_t domTreeVersion() const { return m_domTreeVersion; } |
| 846 | 846 |
| 847 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; | 847 enum PendingSheetLayout { NoLayoutWithPendingSheets, DidLayoutWithPendingShe
ets, IgnoreLayoutWithPendingSheets }; |
| 848 | 848 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 // Return a Locale for the default locale if the argument is null or empty. | 1020 // Return a Locale for the default locale if the argument is null or empty. |
| 1021 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 1021 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
| 1022 | 1022 |
| 1023 AnimationClock& animationClock() { return *m_animationClock; } | 1023 AnimationClock& animationClock() { return *m_animationClock; } |
| 1024 DocumentTimeline& timeline() const { return *m_timeline; } | 1024 DocumentTimeline& timeline() const { return *m_timeline; } |
| 1025 DocumentTimeline& transitionTimeline() const { return *m_transitionTimeline;
} | 1025 DocumentTimeline& transitionTimeline() const { return *m_transitionTimeline;
} |
| 1026 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } | 1026 CompositorPendingAnimations& compositorPendingAnimations() { return m_compos
itorPendingAnimations; } |
| 1027 | 1027 |
| 1028 void addToTopLayer(Element*, const Element* before = 0); | 1028 void addToTopLayer(Element*, const Element* before = 0); |
| 1029 void removeFromTopLayer(Element*); | 1029 void removeFromTopLayer(Element*); |
| 1030 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } | 1030 const WillBeHeapVector<RefPtrWillBeMember<Element> >& topLayerElements() con
st { return m_topLayerElements; } |
| 1031 HTMLDialogElement* activeModalDialog() const; | 1031 HTMLDialogElement* activeModalDialog() const; |
| 1032 | 1032 |
| 1033 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). | 1033 // A non-null m_templateDocumentHost implies that |this| was created by ensu
reTemplateDocument(). |
| 1034 bool isTemplateDocument() const { return !!m_templateDocumentHost; } | 1034 bool isTemplateDocument() const { return !!m_templateDocumentHost; } |
| 1035 Document& ensureTemplateDocument(); | 1035 Document& ensureTemplateDocument(); |
| 1036 Document* templateDocumentHost() { return m_templateDocumentHost; } | 1036 Document* templateDocumentHost() { return m_templateDocumentHost; } |
| 1037 | 1037 |
| 1038 void didAssociateFormControl(Element*); | 1038 void didAssociateFormControl(Element*); |
| 1039 | 1039 |
| 1040 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con
st String& message, unsigned long requestIdentifier); | 1040 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con
st String& message, unsigned long requestIdentifier); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. | 1202 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs
. |
| 1203 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove
r m_baseURL (but not m_baseElementURL). | 1203 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove
r m_baseURL (but not m_baseElementURL). |
| 1204 KURL m_baseElementURL; // The URL set by the <base> element. | 1204 KURL m_baseElementURL; // The URL set by the <base> element. |
| 1205 KURL m_cookieURL; // The URL to use for cookie access. | 1205 KURL m_cookieURL; // The URL to use for cookie access. |
| 1206 | 1206 |
| 1207 AtomicString m_baseTarget; | 1207 AtomicString m_baseTarget; |
| 1208 | 1208 |
| 1209 // Mime-type of the document in case it was cloned or created by XHR. | 1209 // Mime-type of the document in case it was cloned or created by XHR. |
| 1210 AtomicString m_mimeType; | 1210 AtomicString m_mimeType; |
| 1211 | 1211 |
| 1212 RefPtr<DocumentType> m_docType; | 1212 RefPtrWillBeMember<DocumentType> m_docType; |
| 1213 OwnPtr<DOMImplementation> m_implementation; | 1213 OwnPtr<DOMImplementation> m_implementation; |
| 1214 | 1214 |
| 1215 RefPtrWillBePersistent<CSSStyleSheet> m_elemSheet; | 1215 RefPtrWillBeMember<CSSStyleSheet> m_elemSheet; |
| 1216 | 1216 |
| 1217 bool m_printing; | 1217 bool m_printing; |
| 1218 bool m_paginatedForScreen; | 1218 bool m_paginatedForScreen; |
| 1219 | 1219 |
| 1220 CompatibilityMode m_compatibilityMode; | 1220 CompatibilityMode m_compatibilityMode; |
| 1221 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil
ityMode virtual. | 1221 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil
ityMode virtual. |
| 1222 | 1222 |
| 1223 bool m_hasAutofocused; | 1223 bool m_hasAutofocused; |
| 1224 Timer<Document> m_clearFocusedElementTimer; | 1224 Timer<Document> m_clearFocusedElementTimer; |
| 1225 RefPtr<Element> m_autofocusElement; | 1225 RefPtrWillBeMember<Element> m_autofocusElement; |
| 1226 RefPtr<Element> m_focusedElement; | 1226 RefPtrWillBeMember<Element> m_focusedElement; |
| 1227 RefPtr<Node> m_hoverNode; | 1227 RefPtrWillBeMember<Node> m_hoverNode; |
| 1228 RefPtr<Element> m_activeHoverElement; | 1228 RefPtrWillBeMember<Element> m_activeHoverElement; |
| 1229 RefPtr<Element> m_documentElement; | 1229 RefPtrWillBeMember<Element> m_documentElement; |
| 1230 UserActionElementSet m_userActionElements; | 1230 UserActionElementSet m_userActionElements; |
| 1231 | 1231 |
| 1232 uint64_t m_domTreeVersion; | 1232 uint64_t m_domTreeVersion; |
| 1233 static uint64_t s_globalTreeVersion; | 1233 static uint64_t s_globalTreeVersion; |
| 1234 | 1234 |
| 1235 HashSet<NodeIterator*> m_nodeIterators; | 1235 HashSet<NodeIterator*> m_nodeIterators; |
| 1236 HashSet<Range*> m_ranges; | 1236 HashSet<Range*> m_ranges; |
| 1237 | 1237 |
| 1238 unsigned short m_listenerTypes; | 1238 unsigned short m_listenerTypes; |
| 1239 | 1239 |
| 1240 MutationObserverOptions m_mutationObserverTypes; | 1240 MutationObserverOptions m_mutationObserverTypes; |
| 1241 | 1241 |
| 1242 OwnPtrWillBePersistent<StyleEngine> m_styleEngine; | 1242 OwnPtrWillBeMember<StyleEngine> m_styleEngine; |
| 1243 RefPtrWillBeMember<StyleSheetList> m_styleSheetList; | 1243 RefPtrWillBeMember<StyleSheetList> m_styleSheetList; |
| 1244 | 1244 |
| 1245 OwnPtr<FormController> m_formController; | 1245 OwnPtr<FormController> m_formController; |
| 1246 | 1246 |
| 1247 TextLinkColors m_textLinkColors; | 1247 TextLinkColors m_textLinkColors; |
| 1248 const OwnPtr<VisitedLinkState> m_visitedLinkState; | 1248 const OwnPtr<VisitedLinkState> m_visitedLinkState; |
| 1249 | 1249 |
| 1250 bool m_visuallyOrdered; | 1250 bool m_visuallyOrdered; |
| 1251 ReadyState m_readyState; | 1251 ReadyState m_readyState; |
| 1252 bool m_isParsing; | 1252 bool m_isParsing; |
| 1253 | 1253 |
| 1254 bool m_gotoAnchorNeededAfterStylesheetsLoad; | 1254 bool m_gotoAnchorNeededAfterStylesheetsLoad; |
| 1255 bool m_isDNSPrefetchEnabled; | 1255 bool m_isDNSPrefetchEnabled; |
| 1256 bool m_haveExplicitlyDisabledDNSPrefetch; | 1256 bool m_haveExplicitlyDisabledDNSPrefetch; |
| 1257 bool m_containsValidityStyleRules; | 1257 bool m_containsValidityStyleRules; |
| 1258 bool m_updateFocusAppearanceRestoresSelection; | 1258 bool m_updateFocusAppearanceRestoresSelection; |
| 1259 bool m_containsPlugins; | 1259 bool m_containsPlugins; |
| 1260 | 1260 |
| 1261 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri
tes-counter | 1261 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri
tes-counter |
| 1262 unsigned m_ignoreDestructiveWriteCount; | 1262 unsigned m_ignoreDestructiveWriteCount; |
| 1263 | 1263 |
| 1264 String m_title; | 1264 String m_title; |
| 1265 String m_rawTitle; | 1265 String m_rawTitle; |
| 1266 bool m_titleSetExplicitly; | 1266 bool m_titleSetExplicitly; |
| 1267 RefPtr<Element> m_titleElement; | 1267 RefPtrWillBeMember<Element> m_titleElement; |
| 1268 | 1268 |
| 1269 OwnPtr<AXObjectCache> m_axObjectCache; | 1269 OwnPtr<AXObjectCache> m_axObjectCache; |
| 1270 OwnPtr<DocumentMarkerController> m_markers; | 1270 OwnPtr<DocumentMarkerController> m_markers; |
| 1271 | 1271 |
| 1272 Timer<Document> m_updateFocusAppearanceTimer; | 1272 Timer<Document> m_updateFocusAppearanceTimer; |
| 1273 | 1273 |
| 1274 Element* m_cssTarget; | 1274 Element* m_cssTarget; |
| 1275 | 1275 |
| 1276 LoadEventProgress m_loadEventProgress; | 1276 LoadEventProgress m_loadEventProgress; |
| 1277 | 1277 |
| 1278 double m_startTime; | 1278 double m_startTime; |
| 1279 | 1279 |
| 1280 OwnPtr<ScriptRunner> m_scriptRunner; | 1280 OwnPtr<ScriptRunner> m_scriptRunner; |
| 1281 | 1281 |
| 1282 Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack; | 1282 WillBeHeapVector<RefPtrWillBeMember<HTMLScriptElement> > m_currentScriptStac
k; |
| 1283 | 1283 |
| 1284 OwnPtr<TransformSource> m_transformSource; | 1284 OwnPtr<TransformSource> m_transformSource; |
| 1285 RefPtr<Document> m_transformSourceDocument; | 1285 RefPtrWillBeMember<Document> m_transformSourceDocument; |
| 1286 | 1286 |
| 1287 String m_xmlEncoding; | 1287 String m_xmlEncoding; |
| 1288 String m_xmlVersion; | 1288 String m_xmlVersion; |
| 1289 unsigned m_xmlStandalone : 2; | 1289 unsigned m_xmlStandalone : 2; |
| 1290 unsigned m_hasXMLDeclaration : 1; | 1290 unsigned m_hasXMLDeclaration : 1; |
| 1291 | 1291 |
| 1292 AtomicString m_contentLanguage; | 1292 AtomicString m_contentLanguage; |
| 1293 | 1293 |
| 1294 DocumentEncodingData m_encodingData; | 1294 DocumentEncodingData m_encodingData; |
| 1295 | 1295 |
| 1296 InheritedBool m_designMode; | 1296 InheritedBool m_designMode; |
| 1297 | 1297 |
| 1298 HashSet<LiveNodeListBase*> m_listsInvalidatedAtDocument; | 1298 HashSet<LiveNodeListBase*> m_listsInvalidatedAtDocument; |
| 1299 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; | 1299 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; |
| 1300 | 1300 |
| 1301 OwnPtr<SVGDocumentExtensions> m_svgExtensions; | 1301 OwnPtr<SVGDocumentExtensions> m_svgExtensions; |
| 1302 | 1302 |
| 1303 Vector<AnnotatedRegionValue> m_annotatedRegions; | 1303 Vector<AnnotatedRegionValue> m_annotatedRegions; |
| 1304 bool m_hasAnnotatedRegions; | 1304 bool m_hasAnnotatedRegions; |
| 1305 bool m_annotatedRegionsDirty; | 1305 bool m_annotatedRegionsDirty; |
| 1306 | 1306 |
| 1307 HashMap<String, RefPtr<HTMLCanvasElement> > m_cssCanvasElements; | 1307 WillBeHeapHashMap<String, RefPtrWillBeMember<HTMLCanvasElement> > m_cssCanva
sElements; |
| 1308 | 1308 |
| 1309 OwnPtr<SelectorQueryCache> m_selectorQueryCache; | 1309 OwnPtr<SelectorQueryCache> m_selectorQueryCache; |
| 1310 | 1310 |
| 1311 bool m_useSecureKeyboardEntryWhenActive; | 1311 bool m_useSecureKeyboardEntryWhenActive; |
| 1312 | 1312 |
| 1313 DocumentClassFlags m_documentClasses; | 1313 DocumentClassFlags m_documentClasses; |
| 1314 | 1314 |
| 1315 bool m_isViewSource; | 1315 bool m_isViewSource; |
| 1316 bool m_sawElementsInKnownNamespaces; | 1316 bool m_sawElementsInKnownNamespaces; |
| 1317 bool m_isSrcdocDocument; | 1317 bool m_isSrcdocDocument; |
| 1318 bool m_isMobileDocument; | 1318 bool m_isMobileDocument; |
| 1319 | 1319 |
| 1320 RenderView* m_renderView; | 1320 RenderView* m_renderView; |
| 1321 | 1321 |
| 1322 WeakPtrFactory<Document> m_weakFactory; | 1322 WeakPtrFactory<Document> m_weakFactory; |
| 1323 WeakPtr<Document> m_contextDocument; | 1323 WeakPtr<Document> m_contextDocument; |
| 1324 | 1324 |
| 1325 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() | 1325 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() |
| 1326 | 1326 |
| 1327 Vector<RefPtr<Element> > m_topLayerElements; | 1327 WillBeHeapVector<RefPtrWillBeMember<Element> > m_topLayerElements; |
| 1328 | 1328 |
| 1329 int m_loadEventDelayCount; | 1329 int m_loadEventDelayCount; |
| 1330 Timer<Document> m_loadEventDelayTimer; | 1330 Timer<Document> m_loadEventDelayTimer; |
| 1331 Timer<Document> m_pluginLoadingTimer; | 1331 Timer<Document> m_pluginLoadingTimer; |
| 1332 | 1332 |
| 1333 ViewportDescription m_viewportDescription; | 1333 ViewportDescription m_viewportDescription; |
| 1334 ViewportDescription m_legacyViewportDescription; | 1334 ViewportDescription m_legacyViewportDescription; |
| 1335 Length m_viewportDefaultMinWidth; | 1335 Length m_viewportDefaultMinWidth; |
| 1336 | 1336 |
| 1337 bool m_didSetReferrerPolicy; | 1337 bool m_didSetReferrerPolicy; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1363 #endif | 1363 #endif |
| 1364 | 1364 |
| 1365 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; | 1365 typedef HashMap<AtomicString, OwnPtr<Locale> > LocaleIdentifierToLocaleMap; |
| 1366 LocaleIdentifierToLocaleMap m_localeCache; | 1366 LocaleIdentifierToLocaleMap m_localeCache; |
| 1367 | 1367 |
| 1368 OwnPtr<AnimationClock> m_animationClock; | 1368 OwnPtr<AnimationClock> m_animationClock; |
| 1369 RefPtr<DocumentTimeline> m_timeline; | 1369 RefPtr<DocumentTimeline> m_timeline; |
| 1370 RefPtr<DocumentTimeline> m_transitionTimeline; | 1370 RefPtr<DocumentTimeline> m_transitionTimeline; |
| 1371 CompositorPendingAnimations m_compositorPendingAnimations; | 1371 CompositorPendingAnimations m_compositorPendingAnimations; |
| 1372 | 1372 |
| 1373 RefPtr<Document> m_templateDocument; | 1373 RefPtrWillBeMember<Document> m_templateDocument; |
| 1374 Document* m_templateDocumentHost; // Manually managed weakref (backpointer f
rom m_templateDocument). | 1374 RawPtrWillBeMember<Document> m_templateDocumentHost; // Manually managed wea
kref (backpointer from m_templateDocument). |
| 1375 | 1375 |
| 1376 Timer<Document> m_didAssociateFormControlsTimer; | 1376 Timer<Document> m_didAssociateFormControlsTimer; |
| 1377 HashSet<RefPtr<Element> > m_associatedFormControls; | 1377 WillBeHeapHashSet<RefPtrWillBeMember<Element> > m_associatedFormControls; |
| 1378 | 1378 |
| 1379 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; | 1379 HashSet<SVGUseElement*> m_useElementsNeedingUpdate; |
| 1380 HashSet<Element*> m_layerUpdateElements; | 1380 HashSet<Element*> m_layerUpdateElements; |
| 1381 | 1381 |
| 1382 bool m_hasViewportUnits; | 1382 bool m_hasViewportUnits; |
| 1383 | 1383 |
| 1384 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver>
> DocumentVisibilityObserverSet; | 1384 typedef WillBeHeapHashSet<RawPtrWillBeWeakMember<DocumentVisibilityObserver>
> DocumentVisibilityObserverSet; |
| 1385 DocumentVisibilityObserverSet m_visibilityObservers; | 1385 DocumentVisibilityObserverSet m_visibilityObservers; |
| 1386 | 1386 |
| 1387 int m_styleRecalcElementCounter; | 1387 int m_styleRecalcElementCounter; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 inline bool Node::isDocumentNode() const | 1441 inline bool Node::isDocumentNode() const |
| 1442 { | 1442 { |
| 1443 return this == document(); | 1443 return this == document(); |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 Node* eventTargetNodeForDocument(Document*); | 1446 Node* eventTargetNodeForDocument(Document*); |
| 1447 | 1447 |
| 1448 } // namespace WebCore | 1448 } // namespace WebCore |
| 1449 | 1449 |
| 1450 #endif // Document_h | 1450 #endif // Document_h |
| OLD | NEW |