Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam

This commit is contained in:
Jeremy Chen
2016-04-23 01:40:39 +08:00
parent 12db17691a
commit 753e4f7268
15 changed files with 222 additions and 5 deletions

View File

@@ -3927,6 +3927,22 @@ nsComputedDOMStyle::DoGetWebkitTextFillColor()
return val.forget();
}
already_AddRefed<CSSValue>
nsComputedDOMStyle::DoGetWebkitTextStrokeColor()
{
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
SetToRGBAColor(val, mStyleContext->GetTextStrokeColor());
return val.forget();
}
already_AddRefed<CSSValue>
nsComputedDOMStyle::DoGetWebkitTextStrokeWidth()
{
RefPtr<nsROCSSPrimitiveValue> val = new nsROCSSPrimitiveValue;
val->SetAppUnits(StyleText()->mWebkitTextStrokeWidth.GetCoordValue());
return val.forget();
}
already_AddRefed<CSSValue>
nsComputedDOMStyle::DoGetPointerEvents()
{