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

Unified Diff: Source/modules/canvas2d/HitRegion.cpp

Issue 1240663002: Canvas2d: Remove the updateAccessibility() method in HitRegion class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/modules/canvas2d/HitRegion.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/modules/canvas2d/HitRegion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698