Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 06278c1366ac3fb808f5ae2d3ebb4685e55d9bad..da4e98f83893c14a4085c9f91b9de79723314d98 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -686,6 +686,17 @@ void Internals::selectColorInColorChooser(Element* element, const String& colorV |
return; |
inputElement->selectColorInColorChooser(Color(colorValue)); |
} |
+ |
+bool Internals::isColorChooserShown(Element* element) |
+{ |
+ if (!element->hasTagName(inputTag)) |
+ return false; |
+ HTMLInputElement* inputElement = element->toInputElement(); |
+ if (!inputElement) |
+ return false; |
+ return inputElement->isColorChooserShown(); |
+} |
+ |
#endif |
Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& ec) |