From 6a3e6a611185ba6f5050c008fad11e739fa341e6 Mon Sep 17 00:00:00 2001 From: Stuart Parmenter Date: Tue, 9 Dec 2008 03:02:18 -0800 Subject: [PATCH] bug 458373. get caret drawing in Fenec. r=gavin --- mobile/chrome/content/CanvasBrowser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/chrome/content/CanvasBrowser.js b/mobile/chrome/content/CanvasBrowser.js index d9f802dc799..1e522fd3c97 100644 --- a/mobile/chrome/content/CanvasBrowser.js +++ b/mobile/chrome/content/CanvasBrowser.js @@ -135,7 +135,7 @@ CanvasBrowser.prototype = { ctx.drawWindow(this._browser.contentWindow, pageBounds.x, pageBounds.y, pageBounds.width, pageBounds.height, "white", - ctx.DRAWWINDOW_DO_NOT_FLUSH); + ctx.DRAWWINDOW_DO_NOT_FLUSH | ctx.DRAWWINDOW_DRAW_CARET); } catch (e) { dump("DRAWWINDOW FAILED\n"); } @@ -232,7 +232,7 @@ CanvasBrowser.prototype = { scaledRect.x, scaledRect.y, scaledRect.width, scaledRect.height, "white", - ctx.DRAWWINDOW_DO_NOT_FLUSH); + ctx.DRAWWINDOW_DO_NOT_FLUSH | ctx.DRAWWINDOW_DRAW_CARET); // for testing //ctx.fillStyle = "rgba(255,0,0,0.5)"; @@ -350,7 +350,7 @@ CanvasBrowser.prototype = { dest.x, dest.y, dest.width, dest.height, "white", - ctx.DRAWWINDOW_DO_NOT_FLUSH); + ctx.DRAWWINDOW_DO_NOT_FLUSH | ctx.DRAWWINDOW_DRAW_CARET); ctx.restore(); },