KHTML
Go to the documentation of this file.
23 #include "wtf/Platform.h"
28 #include "RenderPath.h"
34 bool SVGPaintServerSolid::setup(QPainter* painter, QPainterPath* painterPath,
const RenderObject*
object, SVGPaintTargetType type,
bool isPaintingText)
const
39 RenderStyle* renderStyle =
object->style();
44 if ((type & ApplyToFillTargetType) && renderStyle->svgStyle()->hasFill()) {
45 c.setAlphaF(renderStyle->svgStyle()->fillOpacity());
48 painter->setBrush(brush);
50 painterPath->setFillRule(renderStyle->svgStyle()->fillRule() == RULE_EVENODD ? Qt::OddEvenFill : Qt::WindingFill);
53 if (isPaintingText && !(type & ApplyToStrokeTargetType))
57 if ((type & ApplyToStrokeTargetType) && renderStyle->svgStyle()->hasStroke()) {
58 c.setAlphaF(renderStyle->svgStyle()->strokeOpacity());
61 setPenProperties(
object, renderStyle, pen);
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.