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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXImageMapLink.h

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 years, 1 month 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/AXImageMapLink.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXImageMapLink.h b/third_party/WebKit/Source/modules/accessibility/AXImageMapLink.h
index 58d8648f783fd50ce9e993993ff164a46920fa6c..27ac9f471da64bc31d358019e01f6cec5a1bd34a 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXImageMapLink.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXImageMapLink.h
@@ -31,32 +31,29 @@
#include "core/html/HTMLAreaElement.h"
#include "core/html/HTMLMapElement.h"
-#include "modules/accessibility/AXMockObject.h"
+#include "modules/accessibility/AXNodeObject.h"
namespace blink {
class AXObjectCacheImpl;
-class AXImageMapLink final : public AXMockObject {
+class AXImageMapLink final : public AXNodeObject {
private:
- explicit AXImageMapLink(AXObjectCacheImpl&);
+ explicit AXImageMapLink(HTMLAreaElement*, AXObjectCacheImpl&);
public:
- static AXImageMapLink* create(AXObjectCacheImpl&);
+ static AXImageMapLink* create(HTMLAreaElement*, AXObjectCacheImpl&);
~AXImageMapLink() override;
DECLARE_VIRTUAL_TRACE();
- void setHTMLAreaElement(HTMLAreaElement* element) { m_areaElement = element; }
- HTMLAreaElement* areaElement() const { return m_areaElement.get(); }
+ HTMLAreaElement* areaElement() const { return toHTMLAreaElement(node()); }
- void setHTMLMapElement(HTMLMapElement* element) { m_mapElement = element; }
- HTMLMapElement* mapElement() const { return m_mapElement.get(); }
-
- Node* node() const override { return m_areaElement.get(); }
+ HTMLMapElement* mapElement() const;
AccessibilityRole roleValue() const override;
bool isEnabled() const override { return true; }
+ bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
Element* anchorElement() const override;
Element* actionElement() const override;
@@ -70,12 +67,6 @@ public:
LayoutRect elementRect() const override;
private:
- RefPtrWillBeMember<HTMLAreaElement> m_areaElement;
- RefPtrWillBeMember<HTMLMapElement> m_mapElement;
-
- void detach() override;
- void detachFromParent() override;
-
bool isImageMapLink() const override { return true; }
};
« no previous file with comments | « third_party/WebKit/Source/devtools/protocol.json ('k') | third_party/WebKit/Source/modules/accessibility/AXImageMapLink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698