Index: Source/core/accessibility/AccessibilityObject.h |
diff --git a/Source/core/accessibility/AccessibilityObject.h b/Source/core/accessibility/AccessibilityObject.h |
index 83287ca46e4cda121514853233534c69e7bfa3eb..2f74dd6fadb6f13c369a41b8e45522e644524b2c 100644 |
--- a/Source/core/accessibility/AccessibilityObject.h |
+++ b/Source/core/accessibility/AccessibilityObject.h |
@@ -438,7 +438,8 @@ public: |
virtual String helpText() const { return String(); } |
// Location and click point in frame-relative coordinates. |
- virtual LayoutRect elementRect() const { return LayoutRect(); } |
+ virtual LayoutRect elementRect() const { return m_explicitElementRect; } |
+ void setElementRect(LayoutRect r) { m_explicitElementRect = r; } |
virtual void markCachedElementRectDirty() const; |
virtual IntPoint clickPoint(); |
@@ -539,6 +540,7 @@ protected: |
mutable bool m_haveChildren; |
AccessibilityRole m_role; |
AccessibilityObjectInclusion m_lastKnownIsIgnoredValue; |
+ LayoutRect m_explicitElementRect; |
virtual bool computeAccessibilityIsIgnored() const { return true; } |