mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1472430, PresShell::RenderNode should work with elements in Shadow DOM, r=emilio
This commit is contained in:
parent
b053857985
commit
f3c69361dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user