Bug 981127: Mark nsIFrame methods HasAllStateBits() & HasAnyStateBits() as 'const'. r=heycam

This commit is contained in:
Daniel Holbert 2014-03-07 15:58:37 -08:00
parent d20ded087c
commit 284d261cbc

View File

@ -1372,12 +1372,18 @@ public:
/**
* Checks if the current frame-state includes all of the listed bits
*/
bool HasAllStateBits(nsFrameState aBits) { return (mState & aBits) == aBits; }
bool HasAllStateBits(nsFrameState aBits) const
{
return (mState & aBits) == aBits;
}
/**
* Checks if the current frame-state includes any of the listed bits
*/
bool HasAnyStateBits(nsFrameState aBits) { return mState & aBits; }
bool HasAnyStateBits(nsFrameState aBits) const
{
return mState & aBits;
}
/**
* This call is invoked on the primary frame for a character data content