RenderTheme does not need to be per-page
[WebKit-https.git] / Source / WebCore / html / HTMLMeterElement.cpp
index 52c88e7..0239b33 100644 (file)
@@ -60,7 +60,7 @@ Ref<HTMLMeterElement> HTMLMeterElement::create(const QualifiedName& tagName, Doc
 
 RenderPtr<RenderElement> HTMLMeterElement::createElementRenderer(RenderStyle&& style, const RenderTreePosition&)
 {
-    if (!document().page()->theme().supportsMeter(style.appearance()))
+    if (!RenderTheme::singleton().supportsMeter(style.appearance()))
         return RenderElement::createFor(*this, WTFMove(style));
 
     return createRenderer<RenderMeter>(*this, WTFMove(style));