Bug 859377 (Part 2) - Make SVGImageContext more flexible. r=dholbert

--HG--
extra : rebase_source : 79a4380691426c128f334ba066167a5c5b8ee801
This commit is contained in:
Seth Fowler 2013-04-25 15:58:27 -07:00
parent 29b65cd545
commit fc1f2d175b

View File

@ -13,7 +13,7 @@ namespace mozilla {
// SVG image-specific rendering context. For imgIContainer::Draw.
// Used to pass information about overridden attributes from an SVG <image>
// element to the image's internal SVG document when it's drawn.
class MOZ_STACK_CLASS SVGImageContext
class SVGImageContext
{
public:
SVGImageContext(SVGPreserveAspectRatio aPreserveAspectRatio)
@ -24,6 +24,14 @@ public:
return mPreserveAspectRatio;
}
bool operator==(const SVGImageContext& aOther) const {
return mPreserveAspectRatio == aOther.mPreserveAspectRatio;
}
bool operator!=(const SVGImageContext& aOther) const {
return !(*this == aOther);
}
private:
const SVGPreserveAspectRatio mPreserveAspectRatio;
};