Index: Source/core/rendering/HitTestResult.cpp |
diff --git a/Source/core/rendering/HitTestResult.cpp b/Source/core/rendering/HitTestResult.cpp |
index 1705f81fcd2758899f4607c446fb69327d64e867..f4b92e41a8fd28d50f2fb961f40d99828c6ffba0 100644 |
--- a/Source/core/rendering/HitTestResult.cpp |
+++ b/Source/core/rendering/HitTestResult.cpp |
@@ -381,10 +381,10 @@ bool HitTestResult::isContentEditable() const |
return false; |
if (isHTMLTextAreaElement(*m_innerNonSharedNode)) |
- return true; |
+ return !toHTMLFormControlElement(m_innerNonSharedNode)->isDisabledOrReadOnly(); |
if (isHTMLInputElement(*m_innerNonSharedNode)) |
- return toHTMLInputElement(*m_innerNonSharedNode).isTextField(); |
+ return (!toHTMLFormControlElement(m_innerNonSharedNode)->isDisabledOrReadOnly() && toHTMLInputElement(*m_innerNonSharedNode).isTextField()); |
return m_innerNonSharedNode->rendererIsEditable(); |
} |