Index: Source/modules/canvas2d/HitRegion.cpp |
diff --git a/Source/modules/canvas2d/HitRegion.cpp b/Source/modules/canvas2d/HitRegion.cpp |
index 402edeb87f71564dc963da26ce11f9f462f2cf90..fb3761b2cff9717ab144feccbaf800cd1a9bb5e7 100644 |
--- a/Source/modules/canvas2d/HitRegion.cpp |
+++ b/Source/modules/canvas2d/HitRegion.cpp |
@@ -21,28 +21,6 @@ HitRegion::HitRegion(const Path& path, const HitRegionOptions& options) |
m_fillRule = RULE_EVENODD; |
} |
-void HitRegion::updateAccessibility(Element* canvas) |
-{ |
- if (!m_control || !canvas || !canvas->layoutObject() || !m_control->isDescendantOf(canvas)) |
- return; |
- |
- AXObjectCache* axObjectCache = m_control->document().existingAXObjectCache(); |
- if (!axObjectCache) |
- return; |
- |
- FloatRect boundingRect = m_path.boundingRect(); |
- |
- // Offset by the canvas rect, taking border and padding into account. |
- LayoutBoxModelObject* rbmo = canvas->layoutBoxModelObject(); |
- IntRect canvasRect = canvas->layoutObject()->absoluteBoundingBoxRect(); |
- canvasRect.move(rbmo->borderLeft() + rbmo->paddingLeft(), |
- rbmo->borderTop() + rbmo->paddingTop()); |
- LayoutRect elementRect = enclosingLayoutRect(boundingRect); |
- elementRect.moveBy(canvasRect.location()); |
- |
- axObjectCache->setCanvasObjectBounds(m_control.get(), elementRect); |
-} |
- |
bool HitRegion::contains(const LayoutPoint& point) const |
{ |
return m_path.contains(FloatPoint(point), m_fillRule); |