Fix the !ENABLE(DETAILS_ELEMENT) build after r186598
authorossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jul 2015 19:21:59 +0000 (19:21 +0000)
committerossy@webkit.org <ossy@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Jul 2015 19:21:59 +0000 (19:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=147115

Reviewed by Chris Fleizach.

* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::setIsExpanded):

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

Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityNodeObject.cpp

index 2ca3344..f7bb85c 100644 (file)
@@ -1,3 +1,13 @@
+2015-07-21  Csaba Osztrogon√°c  <ossy@webkit.org>
+
+        Fix the !ENABLE(DETAILS_ELEMENT) build after r186598
+        https://bugs.webkit.org/show_bug.cgi?id=147115
+
+        Reviewed by Chris Fleizach.
+
+        * accessibility/AccessibilityNodeObject.cpp:
+        (WebCore::AccessibilityNodeObject::setIsExpanded):
+
 2015-07-21  David Hyatt  <hyatt@apple.com>
 
         Need a way to ignore text-zoom in a Web page.
index 570c485..747821f 100644 (file)
@@ -1612,11 +1612,15 @@ unsigned AccessibilityNodeObject::hierarchicalLevel() const
 
 void AccessibilityNodeObject::setIsExpanded(bool expand)
 {
+#if ENABLE(DETAILS_ELEMENT)
     if (is<HTMLDetailsElement>(node())) {
         auto& details = downcast<HTMLDetailsElement>(*node());
         if (expand != details.isOpen())
             details.toggleOpen();
     }
+#else
+    UNUSED_PARAM(expand);
+#endif
 }
     
 // When building the textUnderElement for an object, determine whether or not