RenderTheme does not need to be per-page
[WebKit-https.git] / Source / WebCore / rendering / RenderEmbeddedObject.cpp
index 755bc07..5bc1b34 100644 (file)
@@ -357,7 +357,7 @@ bool RenderEmbeddedObject::getReplacementTextGeometry(const LayoutPoint& accumul
     contentRect.moveBy(roundedIntPoint(accumulatedOffset));
 
     FontCascadeDescription fontDescription;
-    RenderTheme::defaultTheme()->systemFont(CSSValueWebkitSmallControl, fontDescription);
+    RenderTheme::singleton().systemFont(CSSValueWebkitSmallControl, fontDescription);
     fontDescription.setWeight(boldWeightValue());
     fontDescription.setRenderingMode(settings().fontRenderingMode());
     fontDescription.setComputedSize(12);