Bug 1472430, PresShell::RenderNode should work with elements in Shadow DOM, r=emilio

This commit is contained in:
Olli Pettay 2018-07-01 22:29:42 +03:00
parent b053857985
commit f3c69361dc

View File

@ -5118,8 +5118,9 @@ PresShell::RenderNode(nsINode* aNode,
nsTArray<UniquePtr<RangePaintInfo>> rangeItems;
// nothing to draw if the node isn't in a document
if (!aNode->IsInUncomposedDoc())
if (!aNode->IsInComposedDoc()) {
return nullptr;
}
RefPtr<nsRange> range = new nsRange(aNode);
IgnoredErrorResult rv;