Bug 1434273. Make nsGenConImageContent's inheritance match the way it's used. r=mccr8

MozReview-Commit-ID: AYL4iZkMJiH
This commit is contained in:
Boris Zbarsky
2018-01-30 14:48:26 -05:00
parent 5298bb7ac5
commit 889fa1df76
5 changed files with 99 additions and 30 deletions

View File

@@ -1748,15 +1748,7 @@ nsCSSFrameConstructor::CreateGeneratedContent(nsFrameConstructorState& aState,
// Create an image content object and pass it the image request.
// XXX Check if it's an image type we can handle...
RefPtr<NodeInfo> nodeInfo;
nodeInfo = mDocument->NodeInfoManager()->
GetNodeInfo(nsGkAtoms::mozgeneratedcontentimage, nullptr,
kNameSpaceID_XHTML, nsINode::ELEMENT_NODE);
nsCOMPtr<nsIContent> content;
NS_NewGenConImageContent(getter_AddRefs(content), nodeInfo.forget(),
image);
return content.forget();
return CreateGenConImageContent(mDocument, image);
}
case eStyleContentType_String: