Bug 1385861 - Part 3. Rename nsSVGUtils::SetupCairoStrokeGeometry as nsSVGUtils::SetupStrokeGeometry. r=mattwoodrow

(This patch is not relative to performance)

Rename this function since it has not relation with cario at all.

MozReview-Commit-ID: DHvrsVZAJ7B

--HG--
extra : rebase_source : 4994c9058bd93c7d6671e57ce7f204185e679a1a
This commit is contained in:
cku 2017-07-31 20:20:28 +08:00
Родитель dbcc86a392
Коммит bd1d92639d
3 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -3674,7 +3674,7 @@ SVGTextFrame::PaintSVG(gfxContext& aContext,
ctxSR.EnsureSaved(&aContext);
// This may change the gfxContext's transform (for non-scaling stroke),
// in which case this needs to happen before we call SetMatrix() below.
nsSVGUtils::SetupCairoStrokeGeometry(frame, &aContext, outerContextPaint);
nsSVGUtils::SetupStrokeGeometry(frame, &aContext, outerContextPaint);
}
// Set up the transform for painting the text frame for the substring

Просмотреть файл

@ -1725,9 +1725,9 @@ GetStrokeDashData(nsIFrame* aFrame,
}
void
nsSVGUtils::SetupCairoStrokeGeometry(nsIFrame* aFrame,
gfxContext *aContext,
SVGContextPaint* aContextPaint)
nsSVGUtils::SetupStrokeGeometry(nsIFrame* aFrame,
gfxContext *aContext,
SVGContextPaint* aContextPaint)
{
float width = GetStrokeWidth(aFrame, aContextPaint);
if (width <= 0)

Просмотреть файл

@ -532,10 +532,9 @@ public:
SVGContextPaint* aContextPaint = nullptr);
/*
* Set up a cairo context for a stroked path (including any dashing that
* applies).
* Set up a context for a stroked path (including any dashing that applies).
*/
static void SetupCairoStrokeGeometry(nsIFrame* aFrame, gfxContext *aContext,
static void SetupStrokeGeometry(nsIFrame* aFrame, gfxContext *aContext,
SVGContextPaint* aContextPaint = nullptr);
/**