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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 void setSelectedStylesheetSet(const String&); | 636 void setSelectedStylesheetSet(const String&); |
637 | 637 |
638 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, FocusType = FocusTyp
eNone); | 638 bool setFocusedElement(PassRefPtrWillBeRawPtr<Element>, FocusType = FocusTyp
eNone); |
639 Element* focusedElement() const { return m_focusedElement.get(); } | 639 Element* focusedElement() const { return m_focusedElement.get(); } |
640 UserActionElementSet& userActionElements() { return m_userActionElements; } | 640 UserActionElementSet& userActionElements() { return m_userActionElements; } |
641 const UserActionElementSet& userActionElements() const { return m_userAction
Elements; } | 641 const UserActionElementSet& userActionElements() const { return m_userAction
Elements; } |
642 void setNeedsFocusedElementCheck(); | 642 void setNeedsFocusedElementCheck(); |
643 void setAutofocusElement(Element*); | 643 void setAutofocusElement(Element*); |
644 Element* autofocusElement() const { return m_autofocusElement.get(); } | 644 Element* autofocusElement() const { return m_autofocusElement.get(); } |
645 | 645 |
646 void setHoverNode(PassRefPtr<Node>); | |
647 Node* hoverNode() const { return m_hoverNode.get(); } | |
648 | |
649 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>); | 646 void setActiveHoverElement(PassRefPtrWillBeRawPtr<Element>); |
650 Element* activeHoverElement() const { return m_activeHoverElement.get(); } | 647 Element* activeHoverElement() const { return m_activeHoverElement.get(); } |
651 | 648 |
652 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); | 649 void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); |
653 void hoveredNodeDetached(Node*); | 650 void hoveredNodeDetached(Node*); |
654 void activeChainNodeDetached(Node*); | 651 void activeChainNodeDetached(Node*); |
655 | 652 |
656 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM
ouseEvent* = 0); | 653 void updateHoverActiveState(const HitTestRequest&, Element*, const PlatformM
ouseEvent* = 0); |
657 | 654 |
658 // Updates for :target (CSS3 selector). | 655 // Updates for :target (CSS3 selector). |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 // The following breaks a qualified name into a prefix and a local name. | 786 // The following breaks a qualified name into a prefix and a local name. |
790 // It also does a validity check, and returns false if the qualified name | 787 // It also does a validity check, and returns false if the qualified name |
791 // is invalid. It also sets ExceptionCode when name is invalid. | 788 // is invalid. It also sets ExceptionCode when name is invalid. |
792 static bool parseQualifiedName(const AtomicString& qualifiedName, AtomicStri
ng& prefix, AtomicString& localName, ExceptionState&); | 789 static bool parseQualifiedName(const AtomicString& qualifiedName, AtomicStri
ng& prefix, AtomicString& localName, ExceptionState&); |
793 | 790 |
794 // Checks to make sure prefix and namespace do not conflict (per DOM Core 3) | 791 // Checks to make sure prefix and namespace do not conflict (per DOM Core 3) |
795 static bool hasValidNamespaceForElements(const QualifiedName&); | 792 static bool hasValidNamespaceForElements(const QualifiedName&); |
796 static bool hasValidNamespaceForAttributes(const QualifiedName&); | 793 static bool hasValidNamespaceForAttributes(const QualifiedName&); |
797 | 794 |
798 HTMLElement* body() const; | 795 HTMLElement* body() const; |
799 void setBody(PassRefPtr<HTMLElement>, ExceptionState&); | 796 void setBody(PassRefPtrWillBeRawPtr<HTMLElement>, ExceptionState&); |
800 | 797 |
801 HTMLHeadElement* head() const; | 798 HTMLHeadElement* head() const; |
802 | 799 |
803 // Decide which element is to define the viewport's overflow policy. If |roo
tStyle| is set, use | 800 // Decide which element is to define the viewport's overflow policy. If |roo
tStyle| is set, use |
804 // that as the style for the root element, rather than obtaining it on our o
wn. The reason for | 801 // that as the style for the root element, rather than obtaining it on our o
wn. The reason for |
805 // this is that style may not have been associated with the elements yet - i
n which case it may | 802 // this is that style may not have been associated with the elements yet - i
n which case it may |
806 // have been calculated on the fly (without associating it with the actual e
lement) somewhere. | 803 // have been calculated on the fly (without associating it with the actual e
lement) somewhere. |
807 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const; | 804 Element* viewportDefiningElement(RenderStyle* rootStyle = 0) const; |
808 | 805 |
809 DocumentMarkerController& markers() const { return *m_markers; } | 806 DocumentMarkerController& markers() const { return *m_markers; } |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1085 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; | 1082 virtual void didUpdateSecurityOrigin() OVERRIDE FINAL; |
1086 | 1083 |
1087 void clearXMLVersion() { m_xmlVersion = String(); } | 1084 void clearXMLVersion() { m_xmlVersion = String(); } |
1088 | 1085 |
1089 #if !ENABLE(OILPAN) | 1086 #if !ENABLE(OILPAN) |
1090 virtual void dispose() OVERRIDE; | 1087 virtual void dispose() OVERRIDE; |
1091 #endif | 1088 #endif |
1092 | 1089 |
1093 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); | 1090 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); |
1094 | 1091 |
1095 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
<ContainerNode> newContainerNode, ExceptionState&); | 1092 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); |
1096 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } | 1093 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
1097 | 1094 |
1098 private: | 1095 private: |
1099 friend class Node; | 1096 friend class Node; |
1100 friend class IgnoreDestructiveWriteCountIncrementer; | 1097 friend class IgnoreDestructiveWriteCountIncrementer; |
1101 | 1098 |
1102 ScriptedAnimationController& ensureScriptedAnimationController(); | 1099 ScriptedAnimationController& ensureScriptedAnimationController(); |
1103 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } | 1100 virtual SecurityContext& securityContext() OVERRIDE FINAL { return *this; } |
1104 virtual EventQueue* eventQueue() const OVERRIDE FINAL; | 1101 virtual EventQueue* eventQueue() const OVERRIDE FINAL; |
1105 | 1102 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 void processHttpEquivDefaultStyle(const AtomicString& content); | 1176 void processHttpEquivDefaultStyle(const AtomicString& content); |
1180 void processHttpEquivRefresh(const AtomicString& content); | 1177 void processHttpEquivRefresh(const AtomicString& content); |
1181 void processHttpEquivSetCookie(const AtomicString& content); | 1178 void processHttpEquivSetCookie(const AtomicString& content); |
1182 void processHttpEquivXFrameOptions(const AtomicString& content); | 1179 void processHttpEquivXFrameOptions(const AtomicString& content); |
1183 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); | 1180 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); |
1184 | 1181 |
1185 void didRemoveTouchEventHandler(Node*, bool clearAll); | 1182 void didRemoveTouchEventHandler(Node*, bool clearAll); |
1186 | 1183 |
1187 bool haveStylesheetsLoaded() const; | 1184 bool haveStylesheetsLoaded() const; |
1188 | 1185 |
| 1186 void setHoverNode(PassRefPtrWillBeRawPtr<Node>); |
| 1187 Node* hoverNode() const { return m_hoverNode.get(); } |
| 1188 |
1189 typedef HashSet<EventFactoryBase*> EventFactorySet; | 1189 typedef HashSet<EventFactoryBase*> EventFactorySet; |
1190 static EventFactorySet& eventFactories(); | 1190 static EventFactorySet& eventFactories(); |
1191 | 1191 |
1192 DocumentLifecycle m_lifecycle; | 1192 DocumentLifecycle m_lifecycle; |
1193 | 1193 |
1194 bool m_hasNodesWithPlaceholderStyle; | 1194 bool m_hasNodesWithPlaceholderStyle; |
1195 bool m_evaluateMediaQueriesOnStyleRecalc; | 1195 bool m_evaluateMediaQueriesOnStyleRecalc; |
1196 | 1196 |
1197 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 1197 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
1198 // to track that this happened so that we can do a full repaint when the sty
lesheets | 1198 // to track that this happened so that we can do a full repaint when the sty
lesheets |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 inline bool Node::isDocumentNode() const | 1456 inline bool Node::isDocumentNode() const |
1457 { | 1457 { |
1458 return this == document(); | 1458 return this == document(); |
1459 } | 1459 } |
1460 | 1460 |
1461 Node* eventTargetNodeForDocument(Document*); | 1461 Node* eventTargetNodeForDocument(Document*); |
1462 | 1462 |
1463 } // namespace WebCore | 1463 } // namespace WebCore |
1464 | 1464 |
1465 #endif // Document_h | 1465 #endif // Document_h |
OLD | NEW |