Home | History | Annotate | Download | only in svg

Lines Matching refs:addAttribute

304             fClipGroup->addAttribute("clip-path",res.fClip);
312 this->addAttribute("transform", svg_transform(*mc.fMatrix));
320 void addAttribute(const char name[], const char val[]) {
321 fWriter->addAttribute(name, val);
324 void addAttribute(const char name[], const SkString& val) {
325 fWriter->addAttribute(name, val.c_str());
328 void addAttribute(const char name[], int32_t val) {
332 void addAttribute(const char name[], SkScalar val) {
361 this->addAttribute("fill", resources.fPaintServer);
364 this->addAttribute("fill-opacity", svg_opacity(paint.getColor()));
368 this->addAttribute("fill", "none");
372 this->addAttribute("stroke", resources.fPaintServer);
378 this->addAttribute("vector-effect", "non-scaling-stroke");
380 this->addAttribute("stroke-width", strokeWidth);
383 this->addAttribute("stroke-linecap", cap);
387 this->addAttribute("stroke-linejoin", join);
391 this->addAttribute("stroke-miterlimit", paint.getStrokeMiter());
395 this->addAttribute("stroke-opacity", svg_opacity(paint.getColor()));
399 this->addAttribute("stroke", "none");
463 clipPathElement.addAttribute("id", clipID);
469 rectElement.addAttribute("clip-rule", clipRule);
473 pathElement.addAttribute("clip-rule", clipRule);
488 gradient.addAttribute("id", id);
489 gradient.addAttribute("gradientUnits", "userSpaceOnUse");
490 gradient.addAttribute("x1", info.fPoint[0].x());
491 gradient.addAttribute("y1", info.fPoint[0].y());
492 gradient.addAttribute("x2", info.fPoint[1].x());
493 gradient.addAttribute("y2", info.fPoint[1].y());
496 this->addAttribute("gradientTransform", svg_transform(shader->getLocalMatrix()));
506 stop.addAttribute("offset", info.fColorOffsets[i]);
507 stop.addAttribute("stop-color", colorStr.c_str());
510 stop.addAttribute("stop-opacity", svg_opacity(color));
522 this->addAttribute("x", rect.x());
525 this->addAttribute("y", rect.y());
528 this->addAttribute("width", rect.width());
529 this->addAttribute("height", rect.height());
535 this->addAttribute("d", pathData);
539 this->addAttribute("font-size", paint.getTextSize());
542 this->addAttribute("text-anchor", textAlign);
552 this->addAttribute("font-style", "italic");
554 this->addAttribute("font-style", "oblique");
561 this->addAttribute("font-weight", weights[weightIndex]);
570 this->addAttribute("font-stretch", stretches[stretchIndex]);
585 this->addAttribute("font-family", familyName);
610 fRootElement->addAttribute("xmlns", "http://www.w3.org/2000/svg");
611 fRootElement->addAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
612 fRootElement->addAttribute("width", size.width());
613 fRootElement->addAttribute("height", size.height());
642 a.addAttribute("xlink:href", url.c_str());
645 r.addAttribute("fill-opacity", "0.0");
688 ellipse.addAttribute("cx", oval.centerX());
689 ellipse.addAttribute("cy", oval.centerY());
690 ellipse.addAttribute("rx", oval.width() / 2);
691 ellipse.addAttribute("ry", oval.height() / 2);
709 elem.addAttribute("fill-rule", "evenodd");
736 image.addAttribute("id", imageID);
737 image.addAttribute("width", bm.width());
738 image.addAttribute("height", bm.height());
739 image.addAttribute("xlink:href", svgImageData);
745 imageUse.addAttribute("xlink:href", SkStringPrintf("#%s", imageID.c_str()));
794 elem.addAttribute("x", builder.posX());
795 elem.addAttribute("y", builder.posY());
808 elem.addAttribute("x", builder.posX());
809 elem.addAttribute("y", builder.posY());
820 pathElement.addAttribute("id", pathID);
830 textElement.addAttribute("transform", svg_transform(*matrix));
835 textPathElement.addAttribute("xlink:href", SkStringPrintf("#%s", pathID.c_str()));
840 textPathElement.addAttribute("startOffset",