Bug 1219868: Don't warn for CreateAnonymousContent failure (due to e.g. detecting & breaking <use> reference loops). r=jwatt

This commit is contained in:
Daniel Holbert 2015-11-06 14:59:55 -08:00
parent 1de24e1989
commit fe8658b40c

View File

@ -4007,7 +4007,10 @@ nsCSSFrameConstructor::GetAnonymousContent(nsIContent* aParent,
return NS_OK;
nsresult rv = creator->CreateAnonymousContent(aContent);
NS_ENSURE_SUCCESS(rv, rv);
if (NS_FAILED(rv)) {
// CreateAnonymousContent failed, e.g. because the page has a <use> loop.
return rv;
}
uint32_t count = aContent.Length();
for (uint32_t i=0; i < count; i++) {