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

Unified Diff: Source/modules/accessibility/AXObject.cpp

Issue 1348503003: One AXObjectCache per frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Send focus notifications when focus is cleared Created 5 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: Source/modules/accessibility/AXObject.cpp
diff --git a/Source/modules/accessibility/AXObject.cpp b/Source/modules/accessibility/AXObject.cpp
index b90b59f053018744656e2be17d1e83da8a5a019f..f644ac689ab72c3fb7d09ea04fb62e2a52d910a1 100644
--- a/Source/modules/accessibility/AXObject.cpp
+++ b/Source/modules/accessibility/AXObject.cpp
@@ -911,14 +911,6 @@ IntRect AXObject::boundingBoxForQuads(LayoutObject* obj, const Vector<FloatQuad>
AXObject* AXObject::elementAccessibilityHitTest(const IntPoint& point) const
{
- // Send the hit test back into the sub-frame if necessary.
- if (isAttachment()) {
- Widget* widget = widgetForAttachmentView();
- // Normalize the point for the widget's bounds.
- if (widget && widget->isFrameView())
- return axObjectCache().getOrCreate(widget)->accessibilityHitTest(IntPoint(point - widget->frameRect().location()));
- }
-
// Check if there are any mock elements that need to be handled.
for (const auto& child : m_children) {
if (child->isMockObject() && child->elementRect().contains(point))
@@ -985,19 +977,6 @@ void AXObject::clearChildren()
m_haveChildren = false;
}
-AXObject* AXObject::focusedUIElement() const
-{
- Document* doc = document();
- if (!doc)
- return 0;
-
- Page* page = doc->page();
- if (!page)
- return 0;
-
- return axObjectCache().focusedUIElementForPage(page);
-}
-
Document* AXObject::document() const
{
FrameView* frameView = documentFrameView();

Powered by Google App Engine
This is Rietveld 408576698