Index: Source/core/accessibility/AXRenderObject.cpp |
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp |
index ffa1b9d18cb90729a547d1caacf9d8ba4f99ab9a..dc5bf689261c64d82a4e3aae40999364f752e9fd 100644 |
--- a/Source/core/accessibility/AXRenderObject.cpp |
+++ b/Source/core/accessibility/AXRenderObject.cpp |
@@ -1571,24 +1571,6 @@ VisibleSelection AXRenderObject::selection() const |
return m_renderer->frame()->selection().selection(); |
} |
-String AXRenderObject::selectedText() const |
-{ |
- ASSERT(isTextControl()); |
- |
- if (isPasswordField()) |
- return String(); // need to return something distinct from empty string |
- |
- if (isNativeTextControl() && m_renderer->isTextControl()) { |
- HTMLTextFormControlElement* textControl = toRenderTextControl(m_renderer)->textFormControlElement(); |
- return textControl->selectedText(); |
- } |
- |
- if (ariaRoleAttribute() == UnknownRole) |
- return String(); |
- |
- return stringForRange(ariaSelectedTextRange()); |
-} |
- |
// |
// Modify or take an action on an object. |
// |
@@ -1804,23 +1786,6 @@ void AXRenderObject::lineBreaks(Vector<int>& lineBreaks) const |
} |
} |
-// A substring of the text associated with this accessibility object that is |
-// specified by the given character range. |
-String AXRenderObject::stringForRange(const PlainTextRange& range) const |
-{ |
- if (!range.length) |
- return String(); |
- |
- if (!isTextControl()) |
- return String(); |
- |
- String elementText = isPasswordField() ? String() : text(); |
- if (range.start + range.length > elementText.length()) |
- return String(); |
- |
- return elementText.substring(range.start, range.length); |
-} |
- |
// |
// Private. |
// |