From 36243598477dfa80017b83ec60ae8932115d18ea Mon Sep 17 00:00:00 2001 From: Mason Chang Date: Thu, 9 Jun 2016 10:19:12 -0700 Subject: [PATCH] Bug 1278972. Properly compare rect height vs stroke height when filling rect with skia without AA. r=lsalzman --- gfx/skia/skia/src/core/SkScan_Hairline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/skia/skia/src/core/SkScan_Hairline.cpp b/gfx/skia/skia/src/core/SkScan_Hairline.cpp index 9b21c421edf6..f5cc9168e92e 100644 --- a/gfx/skia/skia/src/core/SkScan_Hairline.cpp +++ b/gfx/skia/skia/src/core/SkScan_Hairline.cpp @@ -628,7 +628,7 @@ void SkScan::FrameRect(const SkRect& r, const SkPoint& strokeSize, outer.set(r.fLeft - rx, r.fTop - ry, r.fRight + rx, r.fBottom + ry); - if (r.width() <= dx || r.height() <= dx) { + if (r.width() <= dx || r.height() <= dy) { SkScan::FillRect(outer, clip, blitter); return; }