Index: Source/core/dom/Document.h |
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h |
index 45029d3e492fd3eab9ed7b6be483e305506a040a..51c7c93e09c61109abeba70ee9307673283ff5f6 100644 |
--- a/Source/core/dom/Document.h |
+++ b/Source/core/dom/Document.h |
@@ -237,6 +237,10 @@ public: |
SelectorQueryCache& selectorQueryCache(); |
+ // Focus Management. |
+ Element* activeElement() const; |
+ bool hasFocus() const; |
+ |
// DOM methods & attributes for Document |
DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
@@ -616,8 +620,8 @@ public: |
void setHoverNode(PassRefPtr<Node>); |
Node* hoverNode() const { return m_hoverNode.get(); } |
- void setActiveElement(PassRefPtr<Element>); |
- Element* activeElement() const { return m_activeElement.get(); } |
+ void setActiveHoverElement(PassRefPtr<Element>); |
+ Element* activeHoverElement() const { return m_activeHoverElement.get(); } |
void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false); |
void hoveredNodeDetached(Node*); |
@@ -1148,7 +1152,7 @@ private: |
RefPtr<Element> m_autofocusElement; |
RefPtr<Element> m_focusedElement; |
RefPtr<Node> m_hoverNode; |
- RefPtr<Element> m_activeElement; |
+ RefPtr<Element> m_activeHoverElement; |
RefPtr<Element> m_documentElement; |
UserActionElementSet m_userActionElements; |