Bug 539531 - Crash when I click-and-drag on a "Gordon" flash emulation [@ nsFrameSelection::ConstrainFrameAndPointToAnchorSubtree(nsIFrame*, nsPoint&, nsIFrame**, nsPoint&) ]. r=bz
This commit is contained in:
@@ -394,7 +394,9 @@ nsINode::GetSelectionRootContent(nsIPresShell* aPresShell)
|
||||
if (!IsNodeOfType(eCONTENT))
|
||||
return nsnull;
|
||||
|
||||
NS_ENSURE_TRUE(GetCurrentDoc() == aPresShell->GetDocument(), nsnull);
|
||||
if (GetCurrentDoc() != aPresShell->GetDocument()) {
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
nsIFrame* frame = static_cast<nsIContent*>(this)->GetPrimaryFrame();
|
||||
if (frame && frame->GetStateBits() & NS_FRAME_INDEPENDENT_SELECTION) {
|
||||
|
||||
Reference in New Issue
Block a user