Bug 526304 - White spaces at EOL in nsCanvasRenderingContext2D.cpp. r=vlad

This commit is contained in:
Mike Kristoffersen 2009-11-05 14:54:35 +01:00
parent 240c493406
commit c455958dbd

View File

@ -236,7 +236,7 @@ public:
gfxPattern* GetPattern() {
return mPattern;
}
nsIPrincipal* Principal() { return mPrincipal; }
PRBool GetForceWriteOnly() { return mForceWriteOnly; }
@ -353,7 +353,7 @@ protected:
* by global alpha, and is ignored otherwise.
*/
void ApplyStyle(Style aWhichStyle, PRBool aUseGlobalAlpha = PR_TRUE);
// Member vars
PRInt32 mWidth, mHeight;
PRPackedBool mValid;
@ -537,7 +537,7 @@ protected:
float maxWidth,
TextDrawOperation op,
float* aWidth);
// style handling
/*
* The previous set style. Is equal to STYLE_MAX when there is no valid
@ -550,7 +550,7 @@ protected:
class ContextState {
public:
ContextState() : shadowOffset(0.0, 0.0),
globalAlpha(1.0),
globalAlpha(1.0),
shadowBlur(0.0),
textAlign(TEXT_ALIGN_START),
textBaseline(TEXT_BASELINE_ALPHABETIC),
@ -959,7 +959,7 @@ nsCanvasRenderingContext2D::SetIsOpaque(PRBool isOpaque)
return NS_OK;
}
NS_IMETHODIMP
nsCanvasRenderingContext2D::Render(gfxContext *ctx, gfxPattern::GraphicsFilter aFilter)
{
@ -2056,7 +2056,7 @@ nsCanvasRenderingContext2D::SetTextBaseline(const nsAString& tb)
// spec says to not throw error for invalid arg, but do it anyway
else
return NS_ERROR_INVALID_ARG;
return NS_OK;
}
@ -2211,7 +2211,7 @@ struct NS_STACK_CLASS nsCanvasBidiProcessor : public nsBidiPresUtils::BidiProces
// current font
gfxFontGroup* mFontgrp;
// dev pixel conversion factor
PRUint32 mAppUnitsPerDevPixel;
@ -2532,7 +2532,7 @@ nsCanvasRenderingContext2D::MozDrawText(const nsAString& textToDraw)
// Fill color is text color
ApplyStyle(STYLE_FILL);
textRun->Draw(mThebes,
pt,
/* offset = */ 0,
@ -3019,7 +3019,7 @@ nsCanvasRenderingContext2D::DrawImage(nsIDOMElement *imgElt, float a1,
rv = NS_ERROR_DOM_INDEX_SIZE_ERR;
goto FINISH;
}
matrix.Translate(gfxPoint(sx, sy));
matrix.Scale(sw/dw, sh/dh);
#ifdef WINCE
@ -3226,7 +3226,7 @@ FlushLayoutForTree(nsIDOMWindow* aWindow)
NS_IMETHODIMP
nsCanvasRenderingContext2D::DrawWindow(nsIDOMWindow* aWindow, float aX, float aY,
float aW, float aH,
float aW, float aH,
const nsAString& aBGColor,
PRUint32 flags)
{