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:
Cameron McCormack 2012-08-08 21:46:06 +10:00
parent c79817ffda
commit 0b8d7c0776
2 changed files with 11 additions and 0 deletions

View File

@ -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*

View File

@ -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