Chromium Code Reviews| Index: Source/core/rendering/HitTestResult.cpp |
| diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp |
| index 63f71c09e4fceeb2b6fd70a57a1efe9393783ba1..12e88f1a7df8bc9cdeef01ae480594383599a267 100644 |
| --- a/Source/core/rendering/HitTestResult.cpp |
| +++ b/Source/core/rendering/HitTestResult.cpp |
| @@ -378,6 +378,15 @@ bool HitTestResult::isContentEditable() const |
| if (!m_innerNonSharedNode) |
| return false; |
| + if (m_innerNonSharedNode->isElementNode()) { |
| + Element* innerElement = toElement(m_innerNonSharedNode); |
| + if (innerElement->isFormControlElement()) { |
|
yosin_UTC9
2014/04/25 01:07:20
It seems description and this change aren't matche
|
| + HTMLFormControlElement* formControlElement = toHTMLFormControlElement(m_innerNonSharedNode); |
| + if (formControlElement->isDisabledOrReadOnly()) |
| + return false; |
| + } |
| + } |
| + |
| if (isHTMLTextAreaElement(*m_innerNonSharedNode)) |
| return true; |