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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "platform/weborigin/ReferrerPolicy.h" | 53 #include "platform/weborigin/ReferrerPolicy.h" |
54 #include "wtf/HashSet.h" | 54 #include "wtf/HashSet.h" |
55 #include "wtf/OwnPtr.h" | 55 #include "wtf/OwnPtr.h" |
56 #include "wtf/PassOwnPtr.h" | 56 #include "wtf/PassOwnPtr.h" |
57 #include "wtf/PassRefPtr.h" | 57 #include "wtf/PassRefPtr.h" |
58 #include "wtf/WeakPtr.h" | 58 #include "wtf/WeakPtr.h" |
59 #include "wtf/text/TextEncoding.h" | 59 #include "wtf/text/TextEncoding.h" |
60 | 60 |
61 namespace blink { | 61 namespace blink { |
62 | 62 |
| 63 class AbstractModule; |
63 class AnimationTimeline; | 64 class AnimationTimeline; |
64 class Attr; | 65 class Attr; |
65 class CSSStyleDeclaration; | 66 class CSSStyleDeclaration; |
66 class CSSStyleSheet; | 67 class CSSStyleSheet; |
67 class CanvasRenderingContext2D; | 68 class CanvasRenderingContext2D; |
68 class Comment; | 69 class Comment; |
69 class ConsoleMessage; | 70 class ConsoleMessage; |
70 class CustomElementMicrotaskRunQueue; | 71 class CustomElementMicrotaskRunQueue; |
71 class CustomElementRegistrationContext; | 72 class CustomElementRegistrationContext; |
72 class DocumentFragment; | 73 class DocumentFragment; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 using TreeScope::getElementById; | 190 using TreeScope::getElementById; |
190 | 191 |
191 virtual bool canContainRangeEndPoint() const override { return true; } | 192 virtual bool canContainRangeEndPoint() const override { return true; } |
192 | 193 |
193 SelectorQueryCache& selectorQueryCache(); | 194 SelectorQueryCache& selectorQueryCache(); |
194 | 195 |
195 // Focus Management. | 196 // Focus Management. |
196 Element* activeElement() const; | 197 Element* activeElement() const; |
197 bool hasFocus() const; | 198 bool hasFocus() const; |
198 | 199 |
| 200 AbstractModule* module() const { return m_module; } |
| 201 void setModule(AbstractModule* module) { m_module = module; } |
| 202 |
199 // DOM methods & attributes for Document | 203 // DOM methods & attributes for Document |
200 | 204 |
201 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } | 205 Length viewportDefaultMinWidth() const { return m_viewportDefaultMinWidth; } |
202 | 206 |
203 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } | 207 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } |
204 | 208 |
205 String outgoingReferrer(); | 209 String outgoingReferrer(); |
206 | 210 |
207 Element* documentElement() const | 211 Element* documentElement() const |
208 { | 212 { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 enum PageDismissalType { | 339 enum PageDismissalType { |
336 NoDismissal = 0, | 340 NoDismissal = 0, |
337 PageHideDismissal = 2, | 341 PageHideDismissal = 2, |
338 UnloadDismissal = 3 | 342 UnloadDismissal = 3 |
339 }; | 343 }; |
340 PageDismissalType pageDismissalEventBeingDispatched() const; | 344 PageDismissalType pageDismissalEventBeingDispatched() const; |
341 | 345 |
342 const KURL& url() const { return m_url; } | 346 const KURL& url() const { return m_url; } |
343 void setURL(const KURL&); | 347 void setURL(const KURL&); |
344 | 348 |
345 ScriptValue exports() const { return m_exports; } | |
346 void setExports(ScriptValue exports) { m_exports = exports; } | |
347 | |
348 // To understand how these concepts relate to one another, please see the | 349 // To understand how these concepts relate to one another, please see the |
349 // comments surrounding their declaration. | 350 // comments surrounding their declaration. |
350 const KURL& baseURL() const { return m_baseURL; } | 351 const KURL& baseURL() const { return m_baseURL; } |
351 | 352 |
352 KURL completeURL(const String&) const; | 353 KURL completeURL(const String&) const; |
353 | 354 |
354 CSSStyleSheet& elementSheet(); | 355 CSSStyleSheet& elementSheet(); |
355 | 356 |
356 virtual PassRefPtr<DocumentParser> createParser(); | 357 virtual PassRefPtr<DocumentParser> createParser(); |
357 DocumentParser* parser() const { return m_parser.get(); } | 358 DocumentParser* parser() const { return m_parser.get(); } |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 void focusAutofocusElementTimerFired(Timer<Document>*); | 707 void focusAutofocusElementTimerFired(Timer<Document>*); |
707 | 708 |
708 void setHoverNode(PassRefPtr<Node>); | 709 void setHoverNode(PassRefPtr<Node>); |
709 Node* hoverNode() const { return m_hoverNode.get(); } | 710 Node* hoverNode() const { return m_hoverNode.get(); } |
710 | 711 |
711 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; | 712 typedef HashSet<OwnPtr<EventFactoryBase> > EventFactorySet; |
712 static EventFactorySet& eventFactories(); | 713 static EventFactorySet& eventFactories(); |
713 | 714 |
714 DocumentLifecycle m_lifecycle; | 715 DocumentLifecycle m_lifecycle; |
715 | 716 |
| 717 AbstractModule* m_module; |
| 718 |
716 bool m_hasNodesWithPlaceholderStyle; | 719 bool m_hasNodesWithPlaceholderStyle; |
717 bool m_evaluateMediaQueriesOnStyleRecalc; | 720 bool m_evaluateMediaQueriesOnStyleRecalc; |
718 | 721 |
719 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 722 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
720 // to track that this happened so that we can do a full repaint when the sty
lesheets | 723 // to track that this happened so that we can do a full repaint when the sty
lesheets |
721 // do eventually load. | 724 // do eventually load. |
722 PendingSheetLayout m_pendingSheetLayout; | 725 PendingSheetLayout m_pendingSheetLayout; |
723 | 726 |
724 LocalFrame* m_frame; | 727 LocalFrame* m_frame; |
725 RawPtr<LocalDOMWindow> m_domWindow; | 728 RawPtr<LocalDOMWindow> m_domWindow; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 | 761 |
759 unsigned short m_listenerTypes; | 762 unsigned short m_listenerTypes; |
760 | 763 |
761 MutationObserverOptions m_mutationObserverTypes; | 764 MutationObserverOptions m_mutationObserverTypes; |
762 | 765 |
763 OwnPtr<StyleEngine> m_styleEngine; | 766 OwnPtr<StyleEngine> m_styleEngine; |
764 RefPtr<StyleSheetList> m_styleSheetList; | 767 RefPtr<StyleSheetList> m_styleSheetList; |
765 | 768 |
766 TextLinkColors m_textLinkColors; | 769 TextLinkColors m_textLinkColors; |
767 | 770 |
768 ScriptValue m_exports; | |
769 | |
770 ReadyState m_readyState; | 771 ReadyState m_readyState; |
771 bool m_isParsing; | 772 bool m_isParsing; |
772 | 773 |
773 bool m_containsValidityStyleRules; | 774 bool m_containsValidityStyleRules; |
774 | 775 |
775 String m_title; | 776 String m_title; |
776 String m_rawTitle; | 777 String m_rawTitle; |
777 RefPtr<Element> m_titleElement; | 778 RefPtr<Element> m_titleElement; |
778 | 779 |
779 OwnPtr<DocumentMarkerController> m_markers; | 780 OwnPtr<DocumentMarkerController> m_markers; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 Node* eventTargetNodeForDocument(Document*); | 870 Node* eventTargetNodeForDocument(Document*); |
870 | 871 |
871 } // namespace blink | 872 } // namespace blink |
872 | 873 |
873 #ifndef NDEBUG | 874 #ifndef NDEBUG |
874 // Outside the WebCore namespace for ease of invocation from gdb. | 875 // Outside the WebCore namespace for ease of invocation from gdb. |
875 void showLiveDocumentInstances(); | 876 void showLiveDocumentInstances(); |
876 #endif | 877 #endif |
877 | 878 |
878 #endif // Document_h | 879 #endif // Document_h |
OLD | NEW |