Correct comment describing nsRuleData::ValueFor. (Bug 636039, patch 2) r=bzbarsky

nsRuleData::ValueFor does not return null; it checks conditions that
would cause it to do so with NS_ABORT_IF_FALSE.  Callers are required to
check mSIDs.
This commit is contained in:
L. David Baron 2011-03-17 20:14:30 -07:00
parent 0618ee48ae
commit dbf25be692

View File

@ -105,8 +105,10 @@ struct nsRuleData
/**
* Return a pointer to the value object within |this| corresponding
* to property |aProperty|, or null if storage for that property has
* not been allocated.
* to property |aProperty|.
*
* This function must only be called if the given property is in
* mSIDs.
*/
nsCSSValue* ValueFor(nsCSSProperty aProperty);
};