| Index: Source/core/accessibility/AXRenderObject.cpp
|
| diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp
|
| index d5dc4bcbcc40179ba39e61f6bcb02007af7379c0..6e48ca3ace3b507c913c1ea51012e83ba889b2f1 100644
|
| --- a/Source/core/accessibility/AXRenderObject.cpp
|
| +++ b/Source/core/accessibility/AXRenderObject.cpp
|
| @@ -797,7 +797,8 @@ String AXRenderObject::text() const
|
|
|
| int AXRenderObject::textLength() const
|
| {
|
| - ASSERT(isTextControl());
|
| + if (!isTextControl())
|
| + return -1;
|
|
|
| if (isPasswordField())
|
| return -1; // need to return something distinct from 0
|
| @@ -1568,7 +1569,8 @@ Widget* AXRenderObject::widgetForAttachmentView() const
|
|
|
| AXObject::PlainTextRange AXRenderObject::selectedTextRange() const
|
| {
|
| - ASSERT(isTextControl());
|
| + if (!isTextControl())
|
| + return PlainTextRange();
|
|
|
| if (isPasswordField())
|
| return PlainTextRange();
|
|
|