Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp |
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
index b49d2ad908cf7a53057806080b79ce980a0ea60e..ee0d8881d51add17e591b5b6a1de6ad6e06e908e 100644 |
--- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp |
@@ -2097,9 +2097,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().styleEngine()->fontSelector()); |
modifiableState().m_realizedFont = true; |
- styleResolver.fontSelector()->registerForInvalidationCallbacks(&modifiableState()); |
+ canvas()->document().styleEngine()->fontSelector()->registerForInvalidationCallbacks(&modifiableState()); |
} |
String CanvasRenderingContext2D::textAlign() const |