diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-17 21:24:01 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-17 21:24:01 +0000 |
commit | 3dba3ed80dea635daebac1daecaa85fe30decd05 (patch) | |
tree | faab54509553cac8f368a86dc408323e7b1640df /content/browser/accessibility/browser_accessibility_win.cc | |
parent | 2791a5fabac0b05b4964cf4403265b7a1f83857a (diff) | |
download | chromium_src-3dba3ed80dea635daebac1daecaa85fe30decd05.zip chromium_src-3dba3ed80dea635daebac1daecaa85fe30decd05.tar.gz chromium_src-3dba3ed80dea635daebac1daecaa85fe30decd05.tar.bz2 |
Allow computing bounds for range on any accessible element.
This change pulls the inline text tree for editable text nodes into
the browser process, and enables bounds for range to be called on
any element, just by passing it recursively to descendants and
unioning the rects.
Together, that allows bounds for range methods to succeed on
elements like <input> and <textarea>.
BUG=328485
Review URL: https://codereview.chromium.org/99033005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility/browser_accessibility_win.cc')
-rw-r--r-- | content/browser/accessibility/browser_accessibility_win.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc index 2c01503..f3520da 100644 --- a/content/browser/accessibility/browser_accessibility_win.cc +++ b/content/browser/accessibility/browser_accessibility_win.cc @@ -1933,9 +1933,6 @@ STDMETHODIMP BrowserAccessibilityWin::get_characterExtents( if (offset < 0 || offset > static_cast<LONG>(text_str.size())) return E_INVALIDARG; - if (blink_role() != blink::WebAXRoleStaticText) - return E_FAIL; - gfx::Rect character_bounds; if (coordinate_type == IA2_COORDTYPE_SCREEN_RELATIVE) { character_bounds = GetGlobalBoundsForRange(offset, 1); @@ -2722,9 +2719,6 @@ STDMETHODIMP BrowserAccessibilityWin::get_unclippedSubstringBounds( return E_INVALIDARG; } - if (blink_role() != blink::WebAXRoleStaticText) - return E_FAIL; - gfx::Rect bounds = GetGlobalBoundsForRange( start_index, end_index - start_index); *out_x = bounds.x(); |