Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: sky/engine/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 754043004: Remove autofocus. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698