| Index: sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp
|
| diff --git a/sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp b/sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp
|
| index da4779ba88b9533d3bfd3d6d0276f440b0f871ae..2d50771628b8f92b6d3f66c010bd9518f50d367e 100644
|
| --- a/sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp
|
| +++ b/sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp
|
| @@ -1919,8 +1919,8 @@ void CanvasRenderingContext2D::drawTextInternal(const String& text, float x, flo
|
| return;
|
|
|
| // accessFont needs the style to be up to date, but updating style can cause script to run,
|
| - // (e.g. due to autofocus) which can free the GraphicsContext, so update style before grabbing
|
| - // the GraphicsContext.
|
| + // which can free the GraphicsContext, so update style before grabbing the GraphicsContext.
|
| + // TODO(esprehn): This isn't needed in sky.
|
| canvas()->document().updateRenderTreeIfNeeded();
|
|
|
| GraphicsContext* c = drawingContext();
|
|
|