Unreviewed iOS build fix after r195452.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 18:06:18 +0000 (18:06 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Jan 2016 18:06:18 +0000 (18:06 +0000)
* accessibility/AccessibilityNodeObject.cpp:
(WebCore::AccessibilityNodeObject::colorValue):

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

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

index 6c21a4d..d2a3502 100644 (file)
@@ -1,3 +1,10 @@
+2016-01-22  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed iOS build fix after r195452.
+
+        * accessibility/AccessibilityNodeObject.cpp:
+        (WebCore::AccessibilityNodeObject::colorValue):
+
 2016-01-21  Dave Hyatt  <hyatt@apple.com>
 
         Elements with overflow and border-radius don't show in multicolumn properly.
index 377e0b4..ea8e20b 100644 (file)
@@ -1845,13 +1845,14 @@ void AccessibilityNodeObject::colorValue(int& r, int& g, int& b) const
     g = 0;
     b = 0;
 
+#if ENABLE(INPUT_TYPE_COLOR)
     if (!isColorWell())
         return;
 
     if (!is<HTMLInputElement>(node()))
         return;
 
-    HTMLInputElement& input = downcast<HTMLInputElement>(*node());
+    auto& input = downcast<HTMLInputElement>(*node());
     if (!input.isColorControl())
         return;
 
@@ -1860,6 +1861,7 @@ void AccessibilityNodeObject::colorValue(int& r, int& g, int& b) const
     r = color.red();
     g = color.green();
     b = color.blue();
+#endif
 }
 
 // This function implements the ARIA accessible name as described by the Mozilla