| 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 30 matching lines...) Expand all Loading... |
| 41 #include "core/dom/ScriptExecutionContext.h" | 41 #include "core/dom/ScriptExecutionContext.h" |
| 42 #include "core/dom/TextLinkColors.h" | 42 #include "core/dom/TextLinkColors.h" |
| 43 #include "core/dom/TreeScope.h" | 43 #include "core/dom/TreeScope.h" |
| 44 #include "core/dom/UserActionElementSet.h" | 44 #include "core/dom/UserActionElementSet.h" |
| 45 #include "core/dom/ViewportArguments.h" | 45 #include "core/dom/ViewportArguments.h" |
| 46 #include "core/html/CollectionType.h" | 46 #include "core/html/CollectionType.h" |
| 47 #include "core/page/FocusDirection.h" | 47 #include "core/page/FocusDirection.h" |
| 48 #include "core/page/PageVisibilityState.h" | 48 #include "core/page/PageVisibilityState.h" |
| 49 #include "weborigin/ReferrerPolicy.h" | 49 #include "weborigin/ReferrerPolicy.h" |
| 50 #include "core/platform/Timer.h" | 50 #include "core/platform/Timer.h" |
| 51 #include "core/platform/text/StringWithDirection.h" | |
| 52 #include "core/rendering/HitTestRequest.h" | 51 #include "core/rendering/HitTestRequest.h" |
| 53 #include "wtf/Deque.h" | 52 #include "wtf/Deque.h" |
| 54 #include "wtf/HashSet.h" | 53 #include "wtf/HashSet.h" |
| 55 #include "wtf/OwnPtr.h" | 54 #include "wtf/OwnPtr.h" |
| 56 #include "wtf/PassOwnPtr.h" | 55 #include "wtf/PassOwnPtr.h" |
| 57 #include "wtf/PassRefPtr.h" | 56 #include "wtf/PassRefPtr.h" |
| 58 #include "wtf/WeakPtr.h" | 57 #include "wtf/WeakPtr.h" |
| 59 | 58 |
| 60 namespace WebCore { | 59 namespace WebCore { |
| 61 | 60 |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 void updateViewportArguments(); | 754 void updateViewportArguments(); |
| 756 void processReferrerPolicy(const String& policy); | 755 void processReferrerPolicy(const String& policy); |
| 757 | 756 |
| 758 // Returns the owning element in the parent document. | 757 // Returns the owning element in the parent document. |
| 759 // Returns 0 if this is the top level document. | 758 // Returns 0 if this is the top level document. |
| 760 HTMLFrameOwnerElement* ownerElement() const; | 759 HTMLFrameOwnerElement* ownerElement() const; |
| 761 | 760 |
| 762 HTMLIFrameElement* seamlessParentIFrame() const; | 761 HTMLIFrameElement* seamlessParentIFrame() const; |
| 763 bool shouldDisplaySeamlesslyWithParent() const; | 762 bool shouldDisplaySeamlesslyWithParent() const; |
| 764 | 763 |
| 765 // Used by DOM bindings; no direction known. | 764 String title() const { return m_title; } |
| 766 String title() const { return m_title.string(); } | |
| 767 void setTitle(const String&); | 765 void setTitle(const String&); |
| 768 | 766 |
| 769 const StringWithDirection& titleWithDirection() const { return m_title; } | |
| 770 | |
| 771 Element* titleElement() const { return m_titleElement.get(); } | 767 Element* titleElement() const { return m_titleElement.get(); } |
| 772 void setTitleElement(const StringWithDirection&, Element* titleElement); | 768 void setTitleElement(const String& title, Element* titleElement); |
| 773 void removeTitle(Element* titleElement); | 769 void removeTitle(Element* titleElement); |
| 774 | 770 |
| 775 String cookie(ExceptionState&) const; | 771 String cookie(ExceptionState&) const; |
| 776 void setCookie(const String&, ExceptionState&); | 772 void setCookie(const String&, ExceptionState&); |
| 777 | 773 |
| 778 String referrer() const; | 774 String referrer() const; |
| 779 | 775 |
| 780 String domain() const; | 776 String domain() const; |
| 781 void setDomain(const String& newDomain, ExceptionState&); | 777 void setDomain(const String& newDomain, ExceptionState&); |
| 782 | 778 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 virtual PassOwnPtr<LifecycleNotifier> createLifecycleNotifier() OVERRIDE; | 1098 virtual PassOwnPtr<LifecycleNotifier> createLifecycleNotifier() OVERRIDE; |
| 1103 | 1099 |
| 1104 virtual const KURL& virtualURL() const; // Same as url(), but needed for Scr
iptExecutionContext to implement it without a performance loss for direct calls. | 1100 virtual const KURL& virtualURL() const; // Same as url(), but needed for Scr
iptExecutionContext to implement it without a performance loss for direct calls. |
| 1105 virtual KURL virtualCompleteURL(const String&) const; // Same as completeURL
() for the same reason as above. | 1101 virtual KURL virtualCompleteURL(const String&) const; // Same as completeURL
() for the same reason as above. |
| 1106 | 1102 |
| 1107 virtual void addMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, ScriptState*); | 1103 virtual void addMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, ScriptState*); |
| 1108 void internalAddMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip
tState*); | 1104 void internalAddMessage(MessageSource, MessageLevel, const String& message,
const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack>, Scrip
tState*); |
| 1109 | 1105 |
| 1110 virtual double timerAlignmentInterval() const; | 1106 virtual double timerAlignmentInterval() const; |
| 1111 | 1107 |
| 1112 void updateTitle(const StringWithDirection&); | 1108 void updateTitle(const String&); |
| 1113 void updateFocusAppearanceTimerFired(Timer<Document>*); | 1109 void updateFocusAppearanceTimerFired(Timer<Document>*); |
| 1114 void updateBaseURL(); | 1110 void updateBaseURL(); |
| 1115 | 1111 |
| 1116 void createStyleResolver(); | 1112 void createStyleResolver(); |
| 1117 | 1113 |
| 1118 void executeScriptsWaitingForResourcesIfNeeded(); | 1114 void executeScriptsWaitingForResourcesIfNeeded(); |
| 1119 | 1115 |
| 1120 void seamlessParentUpdatedStylesheets(); | 1116 void seamlessParentUpdatedStylesheets(); |
| 1121 | 1117 |
| 1122 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; | 1118 PassRefPtr<NodeList> handleZeroPadding(const HitTestRequest&, HitTestResult&
) const; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 | 1238 |
| 1243 bool m_gotoAnchorNeededAfterStylesheetsLoad; | 1239 bool m_gotoAnchorNeededAfterStylesheetsLoad; |
| 1244 bool m_isDNSPrefetchEnabled; | 1240 bool m_isDNSPrefetchEnabled; |
| 1245 bool m_haveExplicitlyDisabledDNSPrefetch; | 1241 bool m_haveExplicitlyDisabledDNSPrefetch; |
| 1246 bool m_containsValidityStyleRules; | 1242 bool m_containsValidityStyleRules; |
| 1247 bool m_updateFocusAppearanceRestoresSelection; | 1243 bool m_updateFocusAppearanceRestoresSelection; |
| 1248 | 1244 |
| 1249 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri
tes-counter | 1245 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri
tes-counter |
| 1250 unsigned m_ignoreDestructiveWriteCount; | 1246 unsigned m_ignoreDestructiveWriteCount; |
| 1251 | 1247 |
| 1252 StringWithDirection m_title; | 1248 String m_title; |
| 1253 StringWithDirection m_rawTitle; | 1249 String m_rawTitle; |
| 1254 bool m_titleSetExplicitly; | 1250 bool m_titleSetExplicitly; |
| 1255 RefPtr<Element> m_titleElement; | 1251 RefPtr<Element> m_titleElement; |
| 1256 | 1252 |
| 1257 OwnPtr<AXObjectCache> m_axObjectCache; | 1253 OwnPtr<AXObjectCache> m_axObjectCache; |
| 1258 OwnPtr<DocumentMarkerController> m_markers; | 1254 OwnPtr<DocumentMarkerController> m_markers; |
| 1259 | 1255 |
| 1260 Timer<Document> m_updateFocusAppearanceTimer; | 1256 Timer<Document> m_updateFocusAppearanceTimer; |
| 1261 | 1257 |
| 1262 Element* m_cssTarget; | 1258 Element* m_cssTarget; |
| 1263 | 1259 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 inline bool Node::isDocumentNode() const | 1424 inline bool Node::isDocumentNode() const |
| 1429 { | 1425 { |
| 1430 return this == documentInternal(); | 1426 return this == documentInternal(); |
| 1431 } | 1427 } |
| 1432 | 1428 |
| 1433 Node* eventTargetNodeForDocument(Document*); | 1429 Node* eventTargetNodeForDocument(Document*); |
| 1434 | 1430 |
| 1435 } // namespace WebCore | 1431 } // namespace WebCore |
| 1436 | 1432 |
| 1437 #endif // Document_h | 1433 #endif // Document_h |
| OLD | NEW |