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

Unified Diff: Source/core/dom/Node.cpp

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase, common->default, etc. Created 7 years, 6 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/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 775c5e9c6b7aa73e3290e3aeb92a7b64ba32a130..2a7cd8e854e74c373908bb2cfe656c0739d3a8f2 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -926,6 +926,12 @@ Node* Node::focusDelegate()
return this;
}
+bool Node::shouldHaveFocusAppearance() const
+{
+ ASSERT(focused());
+ return true;
+}
+
unsigned Node::nodeIndex() const
{
Node *_tempNode = previousSibling();
@@ -2556,6 +2562,10 @@ void Node::defaultEventHandler(Event* event)
}
}
+void Node::willCallDefaultEventHandler(const Event&)
+{
+}
+
bool Node::willRespondToMouseMoveEvents()
{
if (isDisabledFormControl(this))

Powered by Google App Engine
This is Rietveld 408576698