mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 655877 - Part 22: Add function for getting the 'is SVG text using CSS frames' pref. r=jwatt
--HG-- extra : rebase_source : 781039f078c347146299e66eef57b515fdc843a0
This commit is contained in:
parent
c79817ffda
commit
0b8d7c0776
@ -137,6 +137,7 @@ static const PRUint8 gsRGBToLinearRGBMap[256] = {
|
||||
static bool sSMILEnabled;
|
||||
static bool sSVGDisplayListHitTestingEnabled;
|
||||
static bool sSVGDisplayListPaintingEnabled;
|
||||
static bool sSVGTextCSSFramesEnabled;
|
||||
|
||||
bool
|
||||
NS_SMILEnabled()
|
||||
@ -156,6 +157,12 @@ NS_SVGDisplayListPaintingEnabled()
|
||||
return sSVGDisplayListPaintingEnabled;
|
||||
}
|
||||
|
||||
bool
|
||||
NS_SVGTextCSSFramesEnabled()
|
||||
{
|
||||
return sSVGTextCSSFramesEnabled;
|
||||
}
|
||||
|
||||
// we only take the address of this:
|
||||
static mozilla::gfx::UserDataKey sSVGAutoRenderStateKey;
|
||||
|
||||
@ -218,6 +225,9 @@ nsSVGUtils::Init()
|
||||
|
||||
Preferences::AddBoolVarCache(&sSVGDisplayListPaintingEnabled,
|
||||
"svg.display-lists.painting.enabled");
|
||||
|
||||
Preferences::AddBoolVarCache(&sSVGTextCSSFramesEnabled,
|
||||
"svg.text.css-frames.enabled");
|
||||
}
|
||||
|
||||
nsSVGSVGElement*
|
||||
|
@ -112,6 +112,7 @@ bool NS_SMILEnabled();
|
||||
|
||||
bool NS_SVGDisplayListHitTestingEnabled();
|
||||
bool NS_SVGDisplayListPaintingEnabled();
|
||||
bool NS_SVGTextCSSFramesEnabled();
|
||||
|
||||
/**
|
||||
* Sometimes we need to distinguish between an empty box and a box
|
||||
|
Loading…
Reference in New Issue
Block a user