Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index 5e926d794a99b9a7203fbff58192e59716b48ce9..7a68dc5aa882309ae4b8fe53985be0766bdf73df 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -2098,9 +2098,9 @@ void CanvasRenderingContext2D::setFont(const String& newFont) |
if (state().m_realizedFont) |
state().m_font.fontSelector()->unregisterForInvalidationCallbacks(&modifiableState()); |
modifiableState().m_font = newStyle->font(); |
- modifiableState().m_font.update(styleResolver->fontSelector()); |
+ modifiableState().m_font.update(canvas()->document().fontSelector()); |
modifiableState().m_realizedFont = true; |
- styleResolver->fontSelector()->registerForInvalidationCallbacks(&modifiableState()); |
+ canvas()->document().fontSelector()->registerForInvalidationCallbacks(&modifiableState()); |
} |
String CanvasRenderingContext2D::textAlign() const |