This source file includes following definitions.
- visitedLinkPaintUri
- visitedLinkPaintUri
- visitedLinkPaintUri
- visitedLinkPaintUri
- color
- color
- kerning
- baselineShiftValue
- baselineShiftValue
- masker
- masker
- markerEnd
- markerEnd
#include "config.h"
#include "core/rendering/style/SVGRenderStyleDefs.h"
#include "core/rendering/style/SVGRenderStyle.h"
namespace WebCore {
StyleFillData::StyleFillData()
: opacity(SVGRenderStyle::initialFillOpacity())
, paintType(SVGRenderStyle::initialFillPaintType())
, paintColor(SVGRenderStyle::initialFillPaintColor())
, paintUri(SVGRenderStyle::initialFillPaintUri())
, visitedLinkPaintType(SVGRenderStyle::initialStrokePaintType())
, visitedLinkPaintColor(SVGRenderStyle::initialFillPaintColor())
, visitedLinkPaintUri(SVGRenderStyle::initialFillPaintUri())
{
}
StyleFillData::StyleFillData(const StyleFillData& other)
: RefCounted<StyleFillData>()
, opacity(other.opacity)
, paintType(other.paintType)
, paintColor(other.paintColor)
, paintUri(other.paintUri)
, visitedLinkPaintType(other.visitedLinkPaintType)
, visitedLinkPaintColor(other.visitedLinkPaintColor)
, visitedLinkPaintUri(other.visitedLinkPaintUri)
{
}
bool StyleFillData::operator==(const StyleFillData& other) const
{
return opacity == other.opacity
&& paintType == other.paintType
&& paintColor == other.paintColor
&& paintUri == other.paintUri
&& visitedLinkPaintType == other.visitedLinkPaintType
&& visitedLinkPaintColor == other.visitedLinkPaintColor
&& visitedLinkPaintUri == other.visitedLinkPaintUri;
}
StyleStrokeData::StyleStrokeData()
: opacity(SVGRenderStyle::initialStrokeOpacity())
, miterLimit(SVGRenderStyle::initialStrokeMiterLimit())
, width(SVGRenderStyle::initialStrokeWidth())
, dashOffset(SVGRenderStyle::initialStrokeDashOffset())
, dashArray(SVGRenderStyle::initialStrokeDashArray())
, paintType(SVGRenderStyle::initialStrokePaintType())
, paintColor(SVGRenderStyle::initialStrokePaintColor())
, paintUri(SVGRenderStyle::initialStrokePaintUri())
, visitedLinkPaintType(SVGRenderStyle::initialStrokePaintType())
, visitedLinkPaintColor(SVGRenderStyle::initialStrokePaintColor())
, visitedLinkPaintUri(SVGRenderStyle::initialStrokePaintUri())
{
}
StyleStrokeData::StyleStrokeData(const StyleStrokeData& other)
: RefCounted<StyleStrokeData>()
, opacity(other.opacity)
, miterLimit(other.miterLimit)
, width(other.width->clone())
, dashOffset(other.dashOffset->clone())
, dashArray(other.dashArray->clone())
, paintType(other.paintType)
, paintColor(other.paintColor)
, paintUri(other.paintUri)
, visitedLinkPaintType(other.visitedLinkPaintType)
, visitedLinkPaintColor(other.visitedLinkPaintColor)
, visitedLinkPaintUri(other.visitedLinkPaintUri)
{
}
bool StyleStrokeData::operator==(const StyleStrokeData& other) const
{
return *width == *other.width
&& opacity == other.opacity
&& miterLimit == other.miterLimit
&& *dashOffset == *other.dashOffset
&& *dashArray == *other.dashArray
&& paintType == other.paintType
&& paintColor == other.paintColor
&& paintUri == other.paintUri
&& visitedLinkPaintType == other.visitedLinkPaintType
&& visitedLinkPaintColor == other.visitedLinkPaintColor
&& visitedLinkPaintUri == other.visitedLinkPaintUri;
}
StyleStopData::StyleStopData()
: opacity(SVGRenderStyle::initialStopOpacity())
, color(SVGRenderStyle::initialStopColor())
{
}
StyleStopData::StyleStopData(const StyleStopData& other)
: RefCounted<StyleStopData>()
, opacity(other.opacity)
, color(other.color)
{
}
bool StyleStopData::operator==(const StyleStopData& other) const
{
return color == other.color
&& opacity == other.opacity;
}
StyleTextData::StyleTextData()
: kerning(SVGRenderStyle::initialKerning())
{
}
StyleTextData::StyleTextData(const StyleTextData& other)
: RefCounted<StyleTextData>()
, kerning(other.kerning->clone())
{
}
bool StyleTextData::operator==(const StyleTextData& other) const
{
return *kerning == *other.kerning;
}
StyleMiscData::StyleMiscData()
: floodColor(SVGRenderStyle::initialFloodColor())
, floodOpacity(SVGRenderStyle::initialFloodOpacity())
, lightingColor(SVGRenderStyle::initialLightingColor())
, baselineShiftValue(SVGRenderStyle::initialBaselineShiftValue())
{
}
StyleMiscData::StyleMiscData(const StyleMiscData& other)
: RefCounted<StyleMiscData>()
, floodColor(other.floodColor)
, floodOpacity(other.floodOpacity)
, lightingColor(other.lightingColor)
, baselineShiftValue(other.baselineShiftValue->clone())
{
}
bool StyleMiscData::operator==(const StyleMiscData& other) const
{
return floodOpacity == other.floodOpacity
&& floodColor == other.floodColor
&& lightingColor == other.lightingColor
&& *baselineShiftValue == *other.baselineShiftValue;
}
StyleResourceData::StyleResourceData()
: clipper(SVGRenderStyle::initialClipperResource())
, filter(SVGRenderStyle::initialFilterResource())
, masker(SVGRenderStyle::initialMaskerResource())
{
}
StyleResourceData::StyleResourceData(const StyleResourceData& other)
: RefCounted<StyleResourceData>()
, clipper(other.clipper)
, filter(other.filter)
, masker(other.masker)
{
}
bool StyleResourceData::operator==(const StyleResourceData& other) const
{
return clipper == other.clipper
&& filter == other.filter
&& masker == other.masker;
}
StyleInheritedResourceData::StyleInheritedResourceData()
: markerStart(SVGRenderStyle::initialMarkerStartResource())
, markerMid(SVGRenderStyle::initialMarkerMidResource())
, markerEnd(SVGRenderStyle::initialMarkerEndResource())
{
}
StyleInheritedResourceData::StyleInheritedResourceData(const StyleInheritedResourceData& other)
: RefCounted<StyleInheritedResourceData>()
, markerStart(other.markerStart)
, markerMid(other.markerMid)
, markerEnd(other.markerEnd)
{
}
bool StyleInheritedResourceData::operator==(const StyleInheritedResourceData& other) const
{
return markerStart == other.markerStart
&& markerMid == other.markerMid
&& markerEnd == other.markerEnd;
}
}