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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2324603002: Move AX local bounding box calculation into LayoutObject (Closed)
Patch Set: Rebase Created 4 years, 3 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/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index dc73053c81ea21d00a0caf54fa45638805215bbe..322d0eaeaf0db694a7424746129387abdf3d8067 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1032,6 +1032,11 @@ public:
// bounding boxes.
IntRect absoluteBoundingBoxRectIncludingDescendants() const;
+ // For accessibility, we want the bounding box rect of this element
+ // in local coordinates, which can then be converted to coordinates relative
+ // to any ancestor using, e.g., localToAncestorTransform.
+ virtual FloatRect localBoundingBoxRectForAccessibility() const = 0;
+
// This function returns the minimal logical width this object can have
// without overflowing. This means that all the opportunities for wrapping
// have been taken.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698