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

Unified Diff: third_party/WebKit/Source/core/html/forms/RangeInputType.cpp

Issue 2703013002: Ignore the |readonly| attribute in <input type=range> (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
index e2a50b29a0844a05dcdb612d2427939b77ba5b3d..7d9016858096c90d26ba1bff7644678a89680f50 100644
--- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
@@ -151,7 +151,7 @@ bool RangeInputType::isSteppable() const {
}
void RangeInputType::handleMouseDownEvent(MouseEvent* event) {
- if (element().isDisabledOrReadOnly())
+ if (element().isDisabledFormControl())
return;
Node* targetNode = event->target()->toNode();
@@ -170,7 +170,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event) {
}
void RangeInputType::handleKeydownEvent(KeyboardEvent* event) {
- if (element().isDisabledOrReadOnly())
+ if (element().isDisabledFormControl())
return;
const String& key = event->key();

Powered by Google App Engine
This is Rietveld 408576698