mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
don't assert when not mapping anything without mapping function
Checkin during red tree approved by sar
This commit is contained in:
parent
5cc1370c12
commit
c251f70e4b
@ -827,9 +827,11 @@ HTMLAttributesImpl::SetMappingFunction(nsMapAttributesFunc aMapFunc)
|
||||
NS_IMETHODIMP
|
||||
HTMLAttributesImpl::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresContext)
|
||||
{
|
||||
NS_ASSERTION(nsnull != mMapper, "no mapping function");
|
||||
if (nsnull != mMapper) {
|
||||
(*mMapper)(this, aContext, aPresContext);
|
||||
if (0 < mCount) {
|
||||
NS_ASSERTION(nsnull != mMapper, "no mapping function");
|
||||
if (nsnull != mMapper) {
|
||||
(*mMapper)(this, aContext, aPresContext);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -827,9 +827,11 @@ HTMLAttributesImpl::SetMappingFunction(nsMapAttributesFunc aMapFunc)
|
||||
NS_IMETHODIMP
|
||||
HTMLAttributesImpl::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresContext)
|
||||
{
|
||||
NS_ASSERTION(nsnull != mMapper, "no mapping function");
|
||||
if (nsnull != mMapper) {
|
||||
(*mMapper)(this, aContext, aPresContext);
|
||||
if (0 < mCount) {
|
||||
NS_ASSERTION(nsnull != mMapper, "no mapping function");
|
||||
if (nsnull != mMapper) {
|
||||
(*mMapper)(this, aContext, aPresContext);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user