Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: Source/core/accessibility/AXRenderObject.cpp

Issue 137783006: AX: remove unused AXObject::selectedText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/accessibility/AXRenderObject.h ('k') | Source/core/html/HTMLTextFormControlElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
//
« no previous file with comments | « Source/core/accessibility/AXRenderObject.h ('k') | Source/core/html/HTMLTextFormControlElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698