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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 * @param content The header value (value of the meta tag's "content" attrib
ute) | 707 * @param content The header value (value of the meta tag's "content" attrib
ute) |
708 */ | 708 */ |
709 void processHttpEquiv(const AtomicString& equiv, const AtomicString& content
); | 709 void processHttpEquiv(const AtomicString& equiv, const AtomicString& content
); |
710 void updateViewportDescription(); | 710 void updateViewportDescription(); |
711 void processReferrerPolicy(const String& policy); | 711 void processReferrerPolicy(const String& policy); |
712 | 712 |
713 // Returns the owning element in the parent document. | 713 // Returns the owning element in the parent document. |
714 // Returns 0 if this is the top level document. | 714 // Returns 0 if this is the top level document. |
715 HTMLFrameOwnerElement* ownerElement() const; | 715 HTMLFrameOwnerElement* ownerElement() const; |
716 | 716 |
717 HTMLIFrameElement* seamlessParentIFrame() const; | |
718 bool shouldDisplaySeamlesslyWithParent() const; | |
719 | |
720 String title() const { return m_title; } | 717 String title() const { return m_title; } |
721 void setTitle(const String&); | 718 void setTitle(const String&); |
722 | 719 |
723 Element* titleElement() const { return m_titleElement.get(); } | 720 Element* titleElement() const { return m_titleElement.get(); } |
724 void setTitleElement(const String& title, Element* titleElement); | 721 void setTitleElement(const String& title, Element* titleElement); |
725 void removeTitle(Element* titleElement); | 722 void removeTitle(Element* titleElement); |
726 | 723 |
727 String cookie(ExceptionState&) const; | 724 String cookie(ExceptionState&) const; |
728 void setCookie(const String&, ExceptionState&); | 725 void setCookie(const String&, ExceptionState&); |
729 | 726 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
965 void decrementActiveParserCount(); | 962 void decrementActiveParserCount(); |
966 | 963 |
967 void setContextFeatures(PassRefPtr<ContextFeatures>); | 964 void setContextFeatures(PassRefPtr<ContextFeatures>); |
968 ContextFeatures* contextFeatures() const { return m_contextFeatures.get(); } | 965 ContextFeatures* contextFeatures() const { return m_contextFeatures.get(); } |
969 | 966 |
970 DocumentSharedObjectPool* sharedObjectPool() { return m_sharedObjectPool.get
(); } | 967 DocumentSharedObjectPool* sharedObjectPool() { return m_sharedObjectPool.get
(); } |
971 | 968 |
972 void didRemoveAllPendingStylesheet(); | 969 void didRemoveAllPendingStylesheet(); |
973 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend
ingStylesheet = true; } | 970 void setNeedsNotifyRemoveAllPendingStylesheet() { m_needsNotifyRemoveAllPend
ingStylesheet = true; } |
974 void clearStyleResolver(); | 971 void clearStyleResolver(); |
975 void notifySeamlessChildDocumentsOfStylesheetUpdate() const; | |
976 | 972 |
977 bool inStyleRecalc() { return m_inStyleRecalc; } | 973 bool inStyleRecalc() { return m_inStyleRecalc; } |
978 | 974 |
979 // Return a Locale for the default locale if the argument is null or empty. | 975 // Return a Locale for the default locale if the argument is null or empty. |
980 Locale& getCachedLocale(const AtomicString& locale = nullAtom); | 976 Locale& getCachedLocale(const AtomicString& locale = nullAtom); |
981 | 977 |
982 AnimationClock& animationClock() { return *m_animationClock; } | 978 AnimationClock& animationClock() { return *m_animationClock; } |
983 DocumentTimeline* timeline() const { return m_timeline.get(); } | 979 DocumentTimeline* timeline() const { return m_timeline.get(); } |
984 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g
et(); } | 980 DocumentTimeline* transitionTimeline() const { return m_transitionTimeline.g
et(); } |
985 CSSPendingAnimations& cssPendingAnimations() { return m_cssPendingAnimations
; } | 981 CSSPendingAnimations& cssPendingAnimations() { return m_cssPendingAnimations
; } |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 void internalAddMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip
tState*); | 1064 void internalAddMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip
tState*); |
1069 | 1065 |
1070 virtual double timerAlignmentInterval() const OVERRIDE FINAL; | 1066 virtual double timerAlignmentInterval() const OVERRIDE FINAL; |
1071 | 1067 |
1072 void updateTitle(const String&); | 1068 void updateTitle(const String&); |
1073 void updateFocusAppearanceTimerFired(Timer<Document>*); | 1069 void updateFocusAppearanceTimerFired(Timer<Document>*); |
1074 void updateBaseURL(); | 1070 void updateBaseURL(); |
1075 | 1071 |
1076 void executeScriptsWaitingForResourcesIfNeeded(); | 1072 void executeScriptsWaitingForResourcesIfNeeded(); |
1077 | 1073 |
1078 void seamlessParentUpdatedStylesheets(); | |
1079 | |
1080 void recalcStyleForLayoutIgnoringPendingStylesheets(); | 1074 void recalcStyleForLayoutIgnoringPendingStylesheets(); |
1081 | 1075 |
1082 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; | 1076 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; |
1083 | 1077 |
1084 void loadEventDelayTimerFired(Timer<Document>*); | 1078 void loadEventDelayTimerFired(Timer<Document>*); |
1085 | 1079 |
1086 PageVisibilityState pageVisibilityState() const; | 1080 PageVisibilityState pageVisibilityState() const; |
1087 | 1081 |
1088 PassRefPtr<HTMLCollection> ensureCachedCollection(CollectionType); | 1082 PassRefPtr<HTMLCollection> ensureCachedCollection(CollectionType); |
1089 | 1083 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 OwnPtr<SelectorQueryCache> m_selectorQueryCache; | 1232 OwnPtr<SelectorQueryCache> m_selectorQueryCache; |
1239 | 1233 |
1240 bool m_useSecureKeyboardEntryWhenActive; | 1234 bool m_useSecureKeyboardEntryWhenActive; |
1241 | 1235 |
1242 DocumentClassFlags m_documentClasses; | 1236 DocumentClassFlags m_documentClasses; |
1243 | 1237 |
1244 bool m_isViewSource; | 1238 bool m_isViewSource; |
1245 bool m_sawElementsInKnownNamespaces; | 1239 bool m_sawElementsInKnownNamespaces; |
1246 bool m_isSrcdocDocument; | 1240 bool m_isSrcdocDocument; |
1247 bool m_isMobileDocument; | 1241 bool m_isMobileDocument; |
1248 // Set in Document::initSecurityContext() at Document creation, per: | |
1249 // http://www.whatwg.org/specs/web-apps/current-work/#attr-iframe-seamless | |
1250 bool m_mayDisplaySeamlesslyWithParent; | |
1251 | 1242 |
1252 RenderView* m_renderView; | 1243 RenderView* m_renderView; |
1253 | 1244 |
1254 WeakPtrFactory<Document> m_weakFactory; | 1245 WeakPtrFactory<Document> m_weakFactory; |
1255 WeakPtr<Document> m_contextDocument; | 1246 WeakPtr<Document> m_contextDocument; |
1256 | 1247 |
1257 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() | 1248 bool m_hasFullscreenElementStack; // For early return in FullscreenElementSt
ack::fromIfExists() |
1258 | 1249 |
1259 Vector<RefPtr<Element> > m_topLayerElements; | 1250 Vector<RefPtr<Element> > m_topLayerElements; |
1260 | 1251 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1357 inline bool Node::isDocumentNode() const | 1348 inline bool Node::isDocumentNode() const |
1358 { | 1349 { |
1359 return this == document(); | 1350 return this == document(); |
1360 } | 1351 } |
1361 | 1352 |
1362 Node* eventTargetNodeForDocument(Document*); | 1353 Node* eventTargetNodeForDocument(Document*); |
1363 | 1354 |
1364 } // namespace WebCore | 1355 } // namespace WebCore |
1365 | 1356 |
1366 #endif // Document_h | 1357 #endif // Document_h |
OLD | NEW |