mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 08:09:15 +00:00
added assertion to resolve style
This commit is contained in:
parent
a2c1b25e77
commit
dee7ea6722
@ -533,6 +533,8 @@ nsIStyleContext* StyleSetImpl::ResolveStyleFor(nsIPresContext* aPresContext,
|
||||
{
|
||||
nsIStyleContext* result = nsnull;
|
||||
|
||||
NS_ASSERTION(aContent, "must have content"); // XXX ??? is this true?
|
||||
|
||||
// want to check parent frame's context for cached child context first
|
||||
if ((nsnull != aParentContext) && (nsnull != aContent)) {
|
||||
//XXX Disabled this for the dom, as per peter's note
|
||||
|
@ -533,6 +533,8 @@ nsIStyleContext* StyleSetImpl::ResolveStyleFor(nsIPresContext* aPresContext,
|
||||
{
|
||||
nsIStyleContext* result = nsnull;
|
||||
|
||||
NS_ASSERTION(aContent, "must have content"); // XXX ??? is this true?
|
||||
|
||||
// want to check parent frame's context for cached child context first
|
||||
if ((nsnull != aParentContext) && (nsnull != aContent)) {
|
||||
//XXX Disabled this for the dom, as per peter's note
|
||||
|
@ -533,6 +533,8 @@ nsIStyleContext* StyleSetImpl::ResolveStyleFor(nsIPresContext* aPresContext,
|
||||
{
|
||||
nsIStyleContext* result = nsnull;
|
||||
|
||||
NS_ASSERTION(aContent, "must have content"); // XXX ??? is this true?
|
||||
|
||||
// want to check parent frame's context for cached child context first
|
||||
if ((nsnull != aParentContext) && (nsnull != aContent)) {
|
||||
//XXX Disabled this for the dom, as per peter's note
|
||||
|
Loading…
x
Reference in New Issue
Block a user