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

Unified Diff: Source/core/accessibility/AccessibilityObject.h

Issue 19786002: Implement canvas focus ring methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unused IntRect array Created 7 years, 5 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
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; }

Powered by Google App Engine
This is Rietveld 408576698