Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6774 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/modecolorfilters.cpp b/gm/modecolorfilters.cpp
index 8c3d3a5..fa0c091 100644
--- a/gm/modecolorfilters.cpp
+++ b/gm/modecolorfilters.cpp
@@ -137,7 +137,7 @@
SkScalar x = SkIntToScalar(idx % kRectsPerRow);
SkScalar y = SkIntToScalar(idx / kRectsPerRow);
SkRect rect = SkRect::MakeXYWH(x * kRectWidth, y * kRectHeight,
- SkIntToScalar(kRectWidth),
+ SkIntToScalar(kRectWidth),
SkIntToScalar(kRectHeight));
canvas->drawRect(rect, bgPaint);
canvas->drawRect(rect, paint);
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h
index a900d4a..eb2a770 100644
--- a/include/core/SkRRect.h
+++ b/include/core/SkRRect.h
@@ -222,7 +222,7 @@
enum {
kSizeInMemory = 12 * sizeof(SkScalar)
};
-
+
/**
* Write the rrect into the specified buffer. This is guaranteed to always
* write kSizeInMemory bytes, and that value is guaranteed to always be
diff --git a/include/core/SkWriter32.h b/include/core/SkWriter32.h
index 9368126..3f5a243 100644
--- a/include/core/SkWriter32.h
+++ b/include/core/SkWriter32.h
@@ -109,11 +109,11 @@
void writeRect(const SkRect& rect) {
*(SkRect*)this->reserve(sizeof(rect)) = rect;
}
-
+
void writeRRect(const SkRRect& rrect) {
rrect.writeToMemory(this->reserve(SkRRect::kSizeInMemory));
}
-
+
void writePath(const SkPath& path) {
size_t size = path.writeToMemory(NULL);
SkASSERT(SkAlign4(size) == size);
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 3efdd22..7d25c28 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -1486,7 +1486,7 @@
return;
}
}
-
+
SkPath path;
path.addOval(oval);
// call the non-virtual version
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h
index 13a685f..b04ba07 100644
--- a/src/core/SkPicturePlayback.h
+++ b/src/core/SkPicturePlayback.h
@@ -148,7 +148,7 @@
int index = reader.readInt();
return (*fRegions)[index - 1];
}
-
+
void getText(SkReader32& reader, TextContainer* text) {
size_t length = text->fByteLength = reader.readInt();
text->fText = (const char*)reader.skip(length);
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index 82257c8..4010387 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -356,7 +356,7 @@
addRect(rect);
addInt(ClipParams_pack(op, doAA));
recordRestoreOffsetPlaceholder(op);
-
+
validate();
return this->INHERITED::clipRect(rect, op, doAA);
}
@@ -370,7 +370,7 @@
addRRect(rrect);
addInt(ClipParams_pack(op, doAA));
recordRestoreOffsetPlaceholder(op);
-
+
validate();
if (fRecordFlags & SkPicture::kUsePathBoundsForClip_RecordingFlag) {
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index c827be6..b0033df 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -847,7 +847,7 @@
isPaintOpaque(&paint)) {
this->getDeferredDevice()->skipPendingCommands();
}
-
+
AutoImmediateDrawIfNeeded autoDraw(*this, &paint);
this->drawingCanvas()->drawRect(rect, paint);
this->recordedDrawCommand();
diff --git a/tests/ClipStackTest.cpp b/tests/ClipStackTest.cpp
index 5e5c87f..d4391d7 100644
--- a/tests/ClipStackTest.cpp
+++ b/tests/ClipStackTest.cpp
@@ -519,7 +519,7 @@
// return false because quickContains currently does not care for kDifference_Op
REPORTER_ASSERT(reporter, false == stack.quickContains(testRect));
}
-
+
// Replace Op tests
{
SkClipStack stack;