| 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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 | 984 |
| 985 void setContextFeatures(PassRefPtr<ContextFeatures>); | 985 void setContextFeatures(PassRefPtr<ContextFeatures>); |
| 986 ContextFeatures* contextFeatures() const { return m_contextFeatures.get(); } | 986 ContextFeatures* contextFeatures() const { return m_contextFeatures.get(); } |
| 987 | 987 |
| 988 DocumentSharedObjectPool* sharedObjectPool() { return m_sharedObjectPool.get
(); } | 988 DocumentSharedObjectPool* sharedObjectPool() { return m_sharedObjectPool.get
(); } |
| 989 | 989 |
| 990 void didRemoveAllPendingStylesheet(); | 990 void didRemoveAllPendingStylesheet(); |
| 991 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend
ingStylesheet = true; } | 991 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend
ingStylesheet = true; } |
| 992 void clearStyleResolver(); | 992 void clearStyleResolver(); |
| 993 | 993 |
| 994 bool inStyleRecalc() { return m_inStyleRecalc; } | 994 bool inStyleRecalc() const { return m_lifecycle.state() == DocumentLifecycle
::InStyleRecalc; } |
| 995 | 995 |
| 996 // Return a Locale for the default locale if the argument is null or empty. | 996 // Return a Locale for the default locale if the argument is null or empty. |
| 997 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 997 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
| 998 | 998 |
| 999 AnimationClock& animationClock() { return *m_animationClock; } | 999 AnimationClock& animationClock() { return *m_animationClock; } |
| 1000 DocumentTimeline* timeline() const { return m_timeline.get(); } | 1000 DocumentTimeline* timeline() const { return m_timeline.get(); } |
| 1001 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g
et(); } | 1001 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g
et(); } |
| 1002 CSSPendingAnimations& cssPendingAnimations() { return m_cssPendingAnimations
; } | 1002 CSSPendingAnimations& cssPendingAnimations() { return m_cssPendingAnimations
; } |
| 1003 | 1003 |
| 1004 void addToTopLayer(Element*, const Element* before = 0); | 1004 void addToTopLayer(Element*, const Element* before = 0); |
| 1005 void removeFromTopLayer(Element*); | 1005 void removeFromTopLayer(Element*); |
| 1006 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } | 1006 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayer
Elements; } |
| 1007 HTMLDialogElement* activeModalDialog() const; | 1007 HTMLDialogElement* activeModalDialog() const; |
| 1008 | 1008 |
| 1009 const Document* templateDocument() const; | 1009 const Document* templateDocument() const; |
| 1010 Document& ensureTemplateDocument(); | 1010 Document& ensureTemplateDocument(); |
| 1011 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc
umentHost = templateDocumentHost; } | 1011 void setTemplateDocumentHost(Document* templateDocumentHost) { m_templateDoc
umentHost = templateDocumentHost; } |
| 1012 Document* templateDocumentHost() { return m_templateDocumentHost; } | 1012 Document* templateDocumentHost() { return m_templateDocumentHost; } |
| 1013 | 1013 |
| 1014 void didAssociateFormControl(Element*); | 1014 void didAssociateFormControl(Element*); |
| 1015 | 1015 |
| 1016 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con
st String& message, unsigned long requestIdentifier); | 1016 void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, con
st String& message, unsigned long requestIdentifier); |
| 1017 | 1017 |
| 1018 virtual DOMWindow* executingWindow() OVERRIDE FINAL; | 1018 virtual DOMWindow* executingWindow() OVERRIDE FINAL; |
| 1019 virtual void userEventWasHandled() OVERRIDE FINAL { resetLastHandledUserGest
ureTimestamp(); } | 1019 virtual void userEventWasHandled() OVERRIDE FINAL { resetLastHandledUserGest
ureTimestamp(); } |
| 1020 Frame* executingFrame(); | 1020 Frame* executingFrame(); |
| 1021 | 1021 |
| 1022 DocumentLifecycleNotifier& lifecycleNotifier(); | 1022 DocumentLifecycleNotifier& lifecycleNotifier(); |
| 1023 bool isActive() const { return m_lifecycle.state() == DocumentLifecycle::Act
ive; } | 1023 bool isActive() const { return m_lifecycle.isActive(); } |
| 1024 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St
opped; } | 1024 bool isStopped() const { return m_lifecycle.state() == DocumentLifecycle::St
opped; } |
| 1025 | 1025 |
| 1026 enum HttpRefreshType { | 1026 enum HttpRefreshType { |
| 1027 HttpRefreshFromHeader, | 1027 HttpRefreshFromHeader, |
| 1028 HttpRefreshFromMetaTag | 1028 HttpRefreshFromMetaTag |
| 1029 }; | 1029 }; |
| 1030 void maybeHandleHttpRefresh(const String&, HttpRefreshType); | 1030 void maybeHandleHttpRefresh(const String&, HttpRefreshType); |
| 1031 | 1031 |
| 1032 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); | 1032 void updateSecurityOrigin(PassRefPtr<SecurityOrigin>); |
| 1033 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); | 1033 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 OwnPtr<FormController> m_formController; | 1190 OwnPtr<FormController> m_formController; |
| 1191 | 1191 |
| 1192 TextLinkColors m_textLinkColors; | 1192 TextLinkColors m_textLinkColors; |
| 1193 const OwnPtr<VisitedLinkState> m_visitedLinkState; | 1193 const OwnPtr<VisitedLinkState> m_visitedLinkState; |
| 1194 | 1194 |
| 1195 bool m_visuallyOrdered; | 1195 bool m_visuallyOrdered; |
| 1196 ReadyState m_readyState; | 1196 ReadyState m_readyState; |
| 1197 bool m_bParsing; | 1197 bool m_bParsing; |
| 1198 | 1198 |
| 1199 bool m_hasPendingStyleRecalc; | 1199 bool m_hasPendingStyleRecalc; |
| 1200 bool m_inStyleRecalc; | |
| 1201 | 1200 |
| 1202 bool m_gotoAnchorNeededAfterStylesheetsLoad; | 1201 bool m_gotoAnchorNeededAfterStylesheetsLoad; |
| 1203 bool m_isDNSPrefetchEnabled; | 1202 bool m_isDNSPrefetchEnabled; |
| 1204 bool m_haveExplicitlyDisabledDNSPrefetch; | 1203 bool m_haveExplicitlyDisabledDNSPrefetch; |
| 1205 bool m_containsValidityStyleRules; | 1204 bool m_containsValidityStyleRules; |
| 1206 bool m_updateFocusAppearanceRestoresSelection; | 1205 bool m_updateFocusAppearanceRestoresSelection; |
| 1207 bool m_containsPlugins; | 1206 bool m_containsPlugins; |
| 1208 | 1207 |
| 1209 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri
tes-counter | 1208 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri
tes-counter |
| 1210 unsigned m_ignoreDestructiveWriteCount; | 1209 unsigned m_ignoreDestructiveWriteCount; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1376 inline bool Node::isDocumentNode() const | 1375 inline bool Node::isDocumentNode() const |
| 1377 { | 1376 { |
| 1378 return this == document(); | 1377 return this == document(); |
| 1379 } | 1378 } |
| 1380 | 1379 |
| 1381 Node* eventTargetNodeForDocument(Document*); | 1380 Node* eventTargetNodeForDocument(Document*); |
| 1382 | 1381 |
| 1383 } // namespace WebCore | 1382 } // namespace WebCore |
| 1384 | 1383 |
| 1385 #endif // Document_h | 1384 #endif // Document_h |
| OLD | NEW |