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

Unified Diff: Source/core/html/HTMLLabelElement.cpp

Issue 14985009: <label> element should send key and focus events if it has contenteditable attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 | « LayoutTests/fast/forms/resources/label-test-util.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLabelElement.cpp
diff --git a/Source/core/html/HTMLLabelElement.cpp b/Source/core/html/HTMLLabelElement.cpp
index 5f69302e1bd17432b16e906b52717ebbc13cf024..c1ce7601e0ed38adb60e6bdbcf4fd06ba7e6a5ca 100644
--- a/Source/core/html/HTMLLabelElement.cpp
+++ b/Source/core/html/HTMLLabelElement.cpp
@@ -66,7 +66,8 @@ PassRefPtr<HTMLLabelElement> HTMLLabelElement::create(const QualifiedName& tagNa
bool HTMLLabelElement::isFocusable() const
{
- return false;
+ HTMLLabelElement* that = const_cast<HTMLLabelElement*>(this);
+ return that->isContentEditable();
}
LabelableElement* HTMLLabelElement::control()
« no previous file with comments | « LayoutTests/fast/forms/resources/label-test-util.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698