Tidy handling of type=color in HTMLInputElement a bit
[WebKit-https.git] / Source / WebCore / testing / Internals.cpp
index 0bc85727b7d666bb00e360d7205fe80c231f89eb..77ace2d7b648daacba778ac4dde107ea13b2e3f6 100644 (file)
@@ -886,15 +886,13 @@ String Internals::visiblePlaceholder(Element* element)
     return String();
 }
 
-#if ENABLE(INPUT_TYPE_COLOR)
 void Internals::selectColorInColorChooser(Element* element, const String& colorValue)
 {
     if (!is<HTMLInputElement>(element))
         return;
     auto& inputElement = downcast<HTMLInputElement>(*element);
-    inputElement.selectColorInColorChooser(Color(colorValue));
+    inputElement.selectColor(Color(colorValue));
 }
-#endif
 
 Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& ec)
 {