| Index: Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.cpp b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| index e8bba71a7f9b8e321d84acb3a0e3db68c5f25874..3f95c02f4729c2ccbd15614d9a9f0469b4287744 100644
|
| --- a/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| +++ b/Source/core/html/canvas/CanvasRenderingContext2D.cpp
|
| @@ -1950,6 +1950,7 @@ void CanvasRenderingContext2D::setFont(const String& newFont)
|
| // Map the <canvas> font into the text style. If the font uses keywords like larger/smaller, these will work
|
| // relative to the canvas.
|
| RefPtr<RenderStyle> newStyle = RenderStyle::create();
|
| + canvas()->document().updateRenderTreeIfNeeded();
|
| if (RenderStyle* computedStyle = canvas()->computedStyle()) {
|
| FontDescription elementFontDescription(computedStyle->fontDescription());
|
| // Reset the computed size to avoid inheriting the zoom factor from the <canvas> element.
|
|
|