mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 859377 (Part 2) - Make SVGImageContext more flexible. r=dholbert
--HG-- extra : rebase_source : 79a4380691426c128f334ba066167a5c5b8ee801
This commit is contained in:
parent
29b65cd545
commit
fc1f2d175b
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user