Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147)

Unified Diff: src/svg/SkSVGPaintState.cpp

Issue 6474054: Result of running tools/sanitize_source_files.py (II) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/svg/SkSVGPaintState.cpp
===================================================================
--- src/svg/SkSVGPaintState.cpp (revision 5253)
+++ src/svg/SkSVGPaintState.cpp (working copy)
@@ -49,7 +49,7 @@
return result;
}
-void SkSVGPaint::addAttribute(SkSVGParser& parser, int attrIndex,
+void SkSVGPaint::addAttribute(SkSVGParser& parser, int attrIndex,
const char* attrValue, size_t attrLength) {
SkString* attr = (*this)[attrIndex];
switch(attrIndex) {
@@ -221,7 +221,7 @@
sum.setConcat(matrix, sum);
continue;
}
- if ( index == kClipPath)
+ if ( index == kClipPath)
*clips.insert(0) = lastAttr;
}
walking = walking->fNext;
@@ -267,7 +267,7 @@
#endif
}
-bool SkSVGPaint::writeChangedAttributes(SkSVGParser& parser,
+bool SkSVGPaint::writeChangedAttributes(SkSVGParser& parser,
SkSVGPaint& current, bool* changed) {
SkSVGPaint& lastState = parser.fLastFlush;
for (int index = kInitial + 1; index < kTerminal; index++) {
@@ -285,7 +285,7 @@
case kEnableBackground:
break;
case kFill:
- if (topAttr->equals("none") == false && lastAttr->equals("none") == true)
+ if (topAttr->equals("none") == false && lastAttr->equals("none") == true)
parser._addAttribute("stroke", "false");
goto fillStrokeAttrCommon;
case kFillRule:
@@ -307,7 +307,7 @@
case kStopOpacity:
break;
case kStroke:
- if (topAttr->equals("none") == false && lastAttr->equals("none") == true)
+ if (topAttr->equals("none") == false && lastAttr->equals("none") == true)
parser._addAttribute("stroke", "true");
fillStrokeAttrCommon:
if (strncmp(attrValue, "url(", 4) == 0) {
@@ -442,7 +442,7 @@
}
return true;
}
-
+
void SkSVGPaint::Push(SkSVGPaint** head, SkSVGPaint* newRecord) {
newRecord->fNext = *head;
*head = newRecord;
Property changes on: src/svg/SkSVGPaintState.cpp
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b