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

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

Issue 1348503003: One AXObjectCache per frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix issues in AutomationApiTest.Events 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: third_party/WebKit/Source/modules/accessibility/AXObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
index 98e2ce46e7f90d29b7791d00d1437335b6133c35..692d1cefe1c12efa9be8715c6d2edc2b1d181bfa 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
@@ -914,14 +914,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))
@@ -988,19 +980,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