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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObject.h

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make two tests more robust Created 4 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: third_party/WebKit/Source/modules/accessibility/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index 8008f4c785812fca57202b268c6e4a4ef4b3a387..d7638bb4a59cb5523b57c1cfb9ad2365fe6df11b 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -823,7 +823,11 @@ public:
// Location and click point in frame-relative coordinates. DEPRECATED, to be
// replaced by getRelativeBounds.
virtual LayoutRect elementRect() const { return m_explicitElementRect; }
- void setElementRect(LayoutRect r) { m_explicitElementRect = r; }
+ void setElementRect(LayoutRect r, AXObject* container)
+ {
+ m_explicitElementRect = r;
+ m_explicitContainerID = container->axObjectID();
+ }
virtual void markCachedElementRectDirty() const;
virtual IntPoint clickPoint();
@@ -950,6 +954,7 @@ protected:
AccessibilityRole m_role;
AXObjectInclusion m_lastKnownIsIgnoredValue;
LayoutRect m_explicitElementRect;
+ AXID m_explicitContainerID;
// Used only inside textAlternative():
static String collapseWhitespace(const String&);

Powered by Google App Engine
This is Rietveld 408576698