Bug 1023473 - Follow-up to convert tabs to spaces. r=me and DONTBUILD
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 15 Dec 2014 10:45:46 -0500
changeset 219817 5b6cfd2da21d46523f03c38f50708d729f886f5c
parent 219816 39a8cb270cdba1a7807181a834db2a76765cc2cd
child 219818 5df8db07d8c7398c59125de016565076adddbc3f
push id10419
push usercbook@mozilla.com
push dateTue, 16 Dec 2014 12:45:27 +0000
treeherderfx-team@ec87657146eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1023473
milestone37.0a1
Bug 1023473 - Follow-up to convert tabs to spaces. r=me and DONTBUILD
gfx/tests/gtest/TestRegion.cpp
--- a/gfx/tests/gtest/TestRegion.cpp
+++ b/gfx/tests/gtest/TestRegion.cpp
@@ -365,51 +365,51 @@ TEST(Gfx, RegionContains)
 #define REGION_VALUE 0xff
 
 struct RegionBitmap {
   RegionBitmap(unsigned char *bitmap, int width, int height) : bitmap(bitmap), width(width), height(height) {}
 
   void clear() {
     for (int y = 0; y < height; y++) {
       for (int x = 0; x < width; x++) {
-	bitmap[x + y * width] = 0;
+        bitmap[x + y * width] = 0;
       }
     }
   }
 
   void set(nsRegion &region) {
     clear();
     nsRegionRectIterator iter(region);
     for (const nsRect* r = iter.Next(); r; r = iter.Next()) {
       for (int y = r->y; y < r->YMost(); y++) {
         for (int x = r->x; x < r->XMost(); x++) {
-	  bitmap[x + y * width] = REGION_VALUE;
-	}
+          bitmap[x + y * width] = REGION_VALUE;
+        }
       }
     }
   }
 
   void dilate() {
     for (int y = 0; y < height; y++) {
       for (int x = 0; x < width; x++) {
-	if (bitmap[x + y * width] == REGION_VALUE) {
-	  for (int yn = max(y - 1, 0); yn <= min(y + 1, height - 1); yn++) {
-	    for (int xn = max(x - 1, 0); xn <= min(x + 1, width - 1); xn++) {
-	      if (bitmap[xn + yn * width] == 0)
-		bitmap[xn + yn * width] = DILATE_VALUE;
-	    }
-	  }
-	}
+        if (bitmap[x + y * width] == REGION_VALUE) {
+          for (int yn = max(y - 1, 0); yn <= min(y + 1, height - 1); yn++) {
+            for (int xn = max(x - 1, 0); xn <= min(x + 1, width - 1); xn++) {
+              if (bitmap[xn + yn * width] == 0)
+                bitmap[xn + yn * width] = DILATE_VALUE;
+            }
+          }
+        }
       }
     }
   }
   void compare(RegionBitmap &reference) {
     for (int y = 0; y < height; y++) {
       for (int x = 0; x < width; x++) {
-	EXPECT_EQ(bitmap[x + y * width], reference.bitmap[x + y * width]);
+        EXPECT_EQ(bitmap[x + y * width], reference.bitmap[x + y * width]);
       }
     }
   }
 
   unsigned char *bitmap;
   int width;
   int height;
 };