Bug 548185 Crash on event.dataTransfer.setDragImage({},0,0) [@ nsINode::GetCurrentDoc() ]
r=smaug a=beltzner git-svn-id: svn://10.0.0.236/trunk@259883 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
227f5f706f
commit
f43b9ac9bd
@ -363,6 +363,9 @@ static nsIPresShell*
|
|||||||
GetPresShellForContent(nsIDOMNode* aDOMNode)
|
GetPresShellForContent(nsIDOMNode* aDOMNode)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aDOMNode);
|
nsCOMPtr<nsIContent> content = do_QueryInterface(aDOMNode);
|
||||||
|
if (!content)
|
||||||
|
return nsnull;
|
||||||
|
|
||||||
nsCOMPtr<nsIDocument> document = content->GetCurrentDoc();
|
nsCOMPtr<nsIDocument> document = content->GetCurrentDoc();
|
||||||
if (document) {
|
if (document) {
|
||||||
document->FlushPendingNotifications(Flush_Display);
|
document->FlushPendingNotifications(Flush_Display);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user