Fix bogus assertion in nsLayoutUtils::SetDisplayPortMargins. (bug 1156409, r=botond, a=philor)

This commit is contained in:
David Anderson 2015-04-21 23:01:41 -04:00
parent b6e78e87bc
commit 2509aee14f

View File

@ -1069,7 +1069,7 @@ nsLayoutUtils::SetDisplayPortMargins(nsIContent* aContent,
RepaintMode aRepaintMode)
{
MOZ_ASSERT(aContent);
MOZ_ASSERT(aContent->GetCurrentDoc() == aPresShell->GetDocument());
MOZ_ASSERT(aContent->GetComposedDoc() == aPresShell->GetDocument());
DisplayPortMarginsPropertyData* currentData =
static_cast<DisplayPortMarginsPropertyData*>(aContent->GetProperty(nsGkAtoms::DisplayPortMargins));