RenderTheme does not need to be per-page
[WebKit-https.git] / Source / WebCore / html / InputType.cpp
index bcd9638..ee47a57 100644 (file)
@@ -171,8 +171,7 @@ InputType::~InputType()
 
 bool InputType::themeSupportsDataListUI(InputType* type)
 {
-    Document& document = type->element().document();
-    return RenderTheme::themeForPage(document.page())->supportsDataListUI(type->formControlType());
+    return RenderTheme::singleton().supportsDataListUI(type->formControlType());
 }
 
 bool InputType::isTextField() const