Bug 1338388 - Part 6: stylo: Support stroke-dasharray and stroke-dashoffset; r=heycam

MozReview-Commit-ID: 4QKKzJ1DVYP

--HG--
extra : rebase_source : 6d350a8ed3b5e157651edad155de2b92e042ae99
This commit is contained in:
Manish Goregaokar 2017-02-09 17:43:52 -08:00
parent a1953373cd
commit 3fef7c9e57
2 changed files with 16 additions and 0 deletions

View File

@ -1085,6 +1085,19 @@ void Gecko_nsStyleSVGPaint_Reset(nsStyleSVGPaint* aPaint)
aPaint->SetNone();
}
void
Gecko_nsStyleSVG_SetDashArrayLength(nsStyleSVG* aSvg, uint32_t aLen)
{
aSvg->mStrokeDasharray.Clear();
aSvg->mStrokeDasharray.SetLength(aLen);
}
void
Gecko_nsStyleSVG_CopyDashArray(nsStyleSVG* aDst, const nsStyleSVG* aSrc)
{
aDst->mStrokeDasharray = aSrc->mStrokeDasharray;
}
css::URLValue*
Gecko_NewURLValue(ServoBundledURI aURI)
{

View File

@ -299,6 +299,9 @@ void Gecko_nsStyleSVGPaint_CopyFrom(nsStyleSVGPaint* dest, const nsStyleSVGPaint
void Gecko_nsStyleSVGPaint_SetURLValue(nsStyleSVGPaint* paint, ServoBundledURI uri);
void Gecko_nsStyleSVGPaint_Reset(nsStyleSVGPaint* paint);
void Gecko_nsStyleSVG_SetDashArrayLength(nsStyleSVG* svg, uint32_t len);
void Gecko_nsStyleSVG_CopyDashArray(nsStyleSVG* dst, const nsStyleSVG* src);
mozilla::css::URLValue* Gecko_NewURLValue(ServoBundledURI uri);
NS_DECL_THREADSAFE_FFI_REFCOUNTING(mozilla::css::URLValue, CSSURLValue);