From 5d9ee3f818af226bc26c0247c735bd04fd636226 Mon Sep 17 00:00:00 2001 From: "longsonr%gmail.com" Date: Wed, 23 Apr 2008 12:35:28 +0000 Subject: [PATCH] Bug 429774. r+sr=roc,a1.9=beltzner git-svn-id: svn://10.0.0.236/trunk@250691 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/svg/content/src/nsSVGFilters.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/content/svg/content/src/nsSVGFilters.cpp b/mozilla/content/svg/content/src/nsSVGFilters.cpp index 477fb47726b..f1065061f95 100644 --- a/mozilla/content/svg/content/src/nsSVGFilters.cpp +++ b/mozilla/content/svg/content/src/nsSVGFilters.cpp @@ -4951,16 +4951,16 @@ GenerateNormal(float *N, const PRUint8 *data, PRInt32 stride, nsRect rect, { 2.0 / 3.0, 1.0 / 2.0, 2.0 / 3.0 } }; PRInt8 xflag, yflag; - if (x == 0) { + if (x == rect.x) { xflag = 0; - } else if (x == rect.width - 1) { + } else if (x == rect.XMost() - 1) { xflag = 2; } else { xflag = 1; } - if (y == 0) { + if (y == rect.y) { yflag = 0; - } else if (y == rect.height - 1) { + } else if (y == rect.YMost() - 1) { yflag = 2; } else { yflag = 1;