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

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

Issue 14248006: A focused element should lose focus when it becomes unfocusable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index f10187a3445e7ddd6d9f0129cea9e0f26a06b2f5..d2c65e793de3af5478cccab4db43662f44e420aa 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -637,7 +637,7 @@ public:
Node* focusedNode() const { return m_focusedNode.get(); }
UserActionElementSet& userActionElements() { return m_userActionElements; }
const UserActionElementSet& userActionElements() const { return m_userActionElements; }
-
+ void didRunFocusedNodeCheker() { m_didPostFocusedNodeChecker = false; }
void getFocusableNodes(Vector<RefPtr<Node> >&);
// The m_ignoreAutofocus flag specifies whether or not the document has been changed by the user enough
@@ -1270,6 +1270,7 @@ private:
Color m_textColor;
+ bool m_didPostFocusedNodeChecker;
RefPtr<Node> m_focusedNode;
RefPtr<Node> m_hoverNode;
RefPtr<Element> m_activeElement;

Powered by Google App Engine
This is Rietveld 408576698