Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2797173002: Document::hoverNode() is always an Element. (Closed)
Patch Set: Documentation hovered node -> hovered element. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 0b80edfff5ad3f9dae571baf96c374ecec47952c..92376ba97543a6eb988b7e143048416d834a3860 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -707,10 +707,10 @@ class CORE_EXPORT Document : public ContainerNode,
void setActiveHoverElement(Element*);
Element* activeHoverElement() const { return m_activeHoverElement.get(); }
- Node* hoverNode() const { return m_hoverNode.get(); }
+ Element* hoverElement() const { return m_hoverElement.get(); }
void removeFocusedElementOfSubtree(Node*, bool amongChildrenOnly = false);
- void hoveredNodeDetached(Element&);
+ void hoveredElementDetached(Element&);
void activeChainNodeDetached(Element&);
void updateHoverActiveState(const HitTestRequest&, Element*);
@@ -1400,7 +1400,7 @@ class CORE_EXPORT Document : public ContainerNode,
bool haveRenderBlockingStylesheetsLoaded() const;
void styleResolverMayHaveChanged();
- void setHoverNode(Node*);
+ void setHoverElement(Element*);
using EventFactorySet = HashSet<std::unique_ptr<EventFactoryBase>>;
static EventFactorySet& eventFactories();
@@ -1475,7 +1475,7 @@ class CORE_EXPORT Document : public ContainerNode,
Member<Element> m_autofocusElement;
Member<Element> m_focusedElement;
Member<Range> m_sequentialFocusNavigationStartingPoint;
- Member<Node> m_hoverNode;
+ Member<Element> m_hoverElement;
Member<Element> m_activeHoverElement;
Member<Element> m_documentElement;
UserActionElementSet m_userActionElements;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698