| Index: experimental/svg/model/SkSVGAttribute.cpp
|
| diff --git a/experimental/svg/model/SkSVGAttribute.cpp b/experimental/svg/model/SkSVGAttribute.cpp
|
| index 79c355176f58a03fa9672a16430cf18f97744565..2f1cace7738c602bad45f1c60cc431b038524f85 100644
|
| --- a/experimental/svg/model/SkSVGAttribute.cpp
|
| +++ b/experimental/svg/model/SkSVGAttribute.cpp
|
| @@ -12,23 +12,23 @@ SkSVGPresentationAttributes::SkSVGPresentationAttributes()
|
| : fFillIsSet(false)
|
| , fStrokeIsSet(false) { }
|
|
|
| -void SkSVGPresentationAttributes::setFill(const SkSVGColor& c) {
|
| +void SkSVGPresentationAttributes::setFill(const SkSVGColorType& c) {
|
| fFill = c;
|
| fFillIsSet = true;
|
| }
|
|
|
| -void SkSVGPresentationAttributes::setStroke(const SkSVGColor& c) {
|
| +void SkSVGPresentationAttributes::setStroke(const SkSVGColorType& c) {
|
| fStroke = c;
|
| fStrokeIsSet = true;
|
| }
|
|
|
|
|
| -void SkSVGPresentationAttributes::applyTo(SkTCopyOnFirstWrite<SkSVGRenderContext>& ctx) const {
|
| +void SkSVGPresentationAttributes::applyTo(SkSVGRenderContext* ctx) const {
|
| if (fFillIsSet) {
|
| - ctx.writable()->setFillColor(fFill);
|
| + ctx->writablePresentationContext()->setFillColor(fFill);
|
| }
|
|
|
| if (fStrokeIsSet) {
|
| - ctx.writable()->setStrokeColor(fStroke);
|
| + ctx->writablePresentationContext()->setStrokeColor(fStroke);
|
| }
|
| }
|
|
|