Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 5b26c23442273a9edda00c8c8584103880b59d26..ea8cf1eeb864e1f2b897c6a51e159b171eed4b5d 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -970,6 +970,20 @@ IntRect Element::screenRect() const |
return document().view()->contentsToScreen(renderer()->absoluteBoundingBoxRectIgnoringTransforms()); |
} |
+const AtomicString& Element::computedRole() |
+{ |
+ document().updateLayoutIgnorePendingStylesheets(); |
+ ScopedAXObjectCache cache(document()); |
+ return cache->computedRoleForNode(this); |
+} |
+ |
+String Element::computedName() |
+{ |
+ document().updateLayoutIgnorePendingStylesheets(); |
+ ScopedAXObjectCache cache(document()); |
+ return cache->computedNameForNode(this); |
+} |
+ |
const AtomicString& Element::getAttribute(const AtomicString& localName) const |
{ |
if (!elementData()) |