From fc22f9ef9b459af24ca666e44350d0c8b27b312b Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Tue, 20 Dec 2011 00:10:13 +0000 Subject: Make CanvasSkia take a gfx::Size as the first parameter. BUG=100898 R=pkasting@chromium.org TBR=ben@chromium.org,stevenjb@chromium.org Review URL: http://codereview.chromium.org/8990003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115046 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/gfx/render_text_linux.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/gfx/render_text_linux.cc') diff --git a/ui/gfx/render_text_linux.cc b/ui/gfx/render_text_linux.cc index 9a17ab4..a81f050 100644 --- a/ui/gfx/render_text_linux.cc +++ b/ui/gfx/render_text_linux.cc @@ -238,7 +238,7 @@ void RenderTextLinux::UpdateLayout() { void RenderTextLinux::EnsureLayout() { if (layout_ == NULL) { - CanvasSkia canvas(display_rect().width(), display_rect().height(), false); + CanvasSkia canvas(display_rect().size(), false); skia::ScopedPlatformPaint scoped_platform_paint(canvas.sk_canvas()); cairo_t* cr = scoped_platform_paint.GetPlatformSurface(); -- cgit v1.1