Accessibility BoundsForRange needs to take scroll offsets into account.
BUG=454995
Review URL: https://codereview.chromium.org/895233002
Cr-Commit-Position: refs/heads/master@{#314518}
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 47f19b7c..844d3cc2 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -267,6 +267,11 @@
// bounds offsets.
BrowserAccessibility* GetParentForBoundsCalculation() const;
+ // Convert the bounding rectangle of an element (which is relative to
+ // its nearest scrollable ancestor) to local bounds (which are relative
+ // to the top of the web accessibility tree).
+ gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const;
+
DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
};