2011-03-11 Dominic Mazzoni <dmazzoni@google.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Mar 2011 23:15:51 +0000 (23:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Mar 2011 23:15:51 +0000 (23:15 +0000)
        Reviewed by Dimitri Glazkov.

        Add an accessibilityIsIgnored method to WebAccessibilityObject.
        https://bugs.webkit.org/show_bug.cgi?id=50969

        * public/WebAccessibilityObject.h:
        * src/WebAccessibilityObject.cpp:
        (WebKit::WebAccessibilityObject::accessibilityIsIgnored):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80890 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebAccessibilityObject.h
Source/WebKit/chromium/src/WebAccessibilityObject.cpp

index da06433..7e123eb 100644 (file)
@@ -1,3 +1,14 @@
+2011-03-11  Dominic Mazzoni  <dmazzoni@google.com>
+
+        Reviewed by Dimitri Glazkov.
+
+        Add an accessibilityIsIgnored method to WebAccessibilityObject.
+        https://bugs.webkit.org/show_bug.cgi?id=50969
+
+        * public/WebAccessibilityObject.h:
+        * src/WebAccessibilityObject.cpp:
+        (WebKit::WebAccessibilityObject::accessibilityIsIgnored):
+
 2011-03-11  Avi Drissman  <avi@google.com>
 
         Reviewed by Tony Chang.
index 67a79e0..bdc3d09 100644 (file)
@@ -118,6 +118,7 @@ public:
     WEBKIT_API WebDocument document() const;
     WEBKIT_API bool hasComputedStyle() const;
     WEBKIT_API WebString computedStyleDisplay() const;
+    WEBKIT_API bool accessibilityIsIgnored() const;
 
 #if WEBKIT_IMPLEMENTATION
     WebAccessibilityObject(const WTF::PassRefPtr<WebCore::AccessibilityObject>&);
index 30305bd..8df112a 100644 (file)
@@ -537,6 +537,12 @@ WebString WebAccessibilityObject::computedStyleDisplay() const
     return WebString(CSSPrimitiveValue::create(renderStyle->display())->getStringValue());
 }
 
+bool WebAccessibilityObject::accessibilityIsIgnored() const
+{
+    m_private->updateBackingStore();
+    return m_private->accessibilityIsIgnored();
+}
+
 WebAccessibilityObject::WebAccessibilityObject(const WTF::PassRefPtr<WebCore::AccessibilityObject>& object)
     : m_private(static_cast<WebAccessibilityObjectPrivate*>(object.releaseRef()))
 {