Lines Matching refs:css

33 #include "svg/css-ostringstream.h"
299 void SvgBuilder::_setStrokeStyle(SPCSSAttr *css, GfxState *state) {
303 sp_repr_css_set_property(css, "stroke", urltext);
310 sp_repr_css_set_property(css, "stroke", svgConvertGfxRGB(&stroke_color));
316 sp_repr_css_set_property(css, "stroke-opacity", os_opacity.str().c_str());
328 sp_repr_css_set_property(css, "stroke-width", os_width.str().c_str());
333 sp_repr_css_set_property(css, "stroke-linecap", "butt");
336 sp_repr_css_set_property(css, "stroke-linecap", "round");
339 sp_repr_css_set_property(css, "stroke-linecap", "square");
346 sp_repr_css_set_property(css, "stroke-linejoin", "miter");
349 sp_repr_css_set_property(css, "stroke-linejoin", "round");
352 sp_repr_css_set_property(css, "stroke-linejoin", "bevel");
359 sp_repr_css_set_property(css, "stroke-miterlimit", os_ml.str().c_str());
374 sp_repr_css_set_property(css, "stroke-dasharray", os_array.str().c_str());
378 sp_repr_css_set_property(css, "stroke-dashoffset", os_offset.str().c_str());
380 sp_repr_css_set_property(css, "stroke-dasharray", "none");
381 sp_repr_css_set_property(css, "stroke-dashoffset", NULL);
389 void SvgBuilder::_setFillStyle(SPCSSAttr *css, GfxState *state, bool even_odd) {
394 sp_repr_css_set_property(css, "fill", urltext);
401 sp_repr_css_set_property(css, "fill", svgConvertGfxRGB(&fill_color));
407 sp_repr_css_set_property(css, "fill-opacity", os_opacity.str().c_str());
410 sp_repr_css_set_property(css, "fill-rule", even_odd ? "evenodd" : "nonzero");
418 SPCSSAttr *css = sp_repr_css_attr_new();
420 _setFillStyle(css, state, even_odd);
422 sp_repr_css_set_property(css, "fill", "none");
426 _setStrokeStyle(css, state);
428 sp_repr_css_set_property(css, "stroke", "none");
431 return css;
449 SPCSSAttr *css = _setStyle(state, fill, stroke, even_odd);
450 sp_repr_css_change(path, css, "style");
451 sp_repr_css_attr_unref(css);
470 SPCSSAttr *css = sp_repr_css_attr_new();
474 sp_repr_css_set_property(css, "fill", urltext);
478 sp_repr_css_attr_unref(css);
483 sp_repr_css_set_property(css, "fill-rule", "evenodd");
485 sp_repr_css_set_property(css, "stroke", "none");
486 sp_repr_css_change(path_node, css, "style");
487 sp_repr_css_attr_unref(css);
827 SPCSSAttr *css = sp_repr_css_attr_new();
839 sp_repr_css_set_property(css, "stop-opacity", os_opacity.str().c_str());
840 sp_repr_css_set_property(css, "stop-color", color_text);
842 sp_repr_css_change(stop, css, "style");
843 sp_repr_css_attr_unref(css);
1662 SPCSSAttr *css = sp_repr_css_attr_new();
1664 sp_repr_css_set_property(css, "image-rendering", "optimizeSpeed");
1665 sp_repr_css_change(image_node, css, "style");
1666 sp_repr_css_attr_unref(css);
1748 SPCSSAttr *css = sp_repr_css_attr_new();
1749 _setFillStyle(css, state, false);
1750 sp_repr_css_change(rect, css, "style");
1751 sp_repr_css_attr_unref(css);