diff options
Diffstat (limited to 'Source/WebCore/rendering/RenderTextControl.cpp')
-rw-r--r-- | Source/WebCore/rendering/RenderTextControl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WebCore/rendering/RenderTextControl.cpp b/Source/WebCore/rendering/RenderTextControl.cpp index 8b138352e..10a420aa8 100644 --- a/Source/WebCore/rendering/RenderTextControl.cpp +++ b/Source/WebCore/rendering/RenderTextControl.cpp @@ -81,7 +81,7 @@ static inline bool updateUserModifyProperty(Node* node, RenderStyle* style) if (node->isElementNode()) { Element* element = static_cast<Element*>(node); isEnabled = element->isEnabledFormControl(); - isReadOnlyControl = element->isReadOnlyFormControl(); + isReadOnlyControl = element->isTextFormControl() && static_cast<HTMLTextFormControlElement*>(element)->readOnly(); } style->setUserModify((isReadOnlyControl || !isEnabled) ? READ_ONLY : READ_WRITE_PLAINTEXT_ONLY); @@ -299,4 +299,9 @@ RenderObject* RenderTextControl::layoutSpecialExcludedChild(bool relayoutChildre return placeholderRenderer; } +bool RenderTextControl::canBeReplacedWithInlineRunIn() const +{ + return false; +} + } // namespace WebCore |