fix crasher when clicking on a text area. bug #38897.
git-svn-id: svn://10.0.0.236/trunk@69203 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1040ae93ae
commit
6500e416c5
@ -6346,6 +6346,9 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsILineIterator> it;
|
||||
nsIFrame *mainframe = this;
|
||||
nsCOMPtr<nsIFocusTracker> tracker;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (!shell)
|
||||
return NS_OK;
|
||||
result = shell->QueryInterface(NS_GET_IID(nsIFocusTracker),getter_AddRefs(tracker));
|
||||
|
||||
result = mainframe->QueryInterface(NS_GET_IID(nsILineIterator),getter_AddRefs(it));
|
||||
|
||||
@ -6346,6 +6346,9 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsILineIterator> it;
|
||||
nsIFrame *mainframe = this;
|
||||
nsCOMPtr<nsIFocusTracker> tracker;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (!shell)
|
||||
return NS_OK;
|
||||
result = shell->QueryInterface(NS_GET_IID(nsIFocusTracker),getter_AddRefs(tracker));
|
||||
|
||||
result = mainframe->QueryInterface(NS_GET_IID(nsILineIterator),getter_AddRefs(it));
|
||||
|
||||
@ -6346,6 +6346,9 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsILineIterator> it;
|
||||
nsIFrame *mainframe = this;
|
||||
nsCOMPtr<nsIFocusTracker> tracker;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (!shell)
|
||||
return NS_OK;
|
||||
result = shell->QueryInterface(NS_GET_IID(nsIFocusTracker),getter_AddRefs(tracker));
|
||||
|
||||
result = mainframe->QueryInterface(NS_GET_IID(nsILineIterator),getter_AddRefs(it));
|
||||
|
||||
@ -6346,6 +6346,9 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsILineIterator> it;
|
||||
nsIFrame *mainframe = this;
|
||||
nsCOMPtr<nsIFocusTracker> tracker;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (!shell)
|
||||
return NS_OK;
|
||||
result = shell->QueryInterface(NS_GET_IID(nsIFocusTracker),getter_AddRefs(tracker));
|
||||
|
||||
result = mainframe->QueryInterface(NS_GET_IID(nsILineIterator),getter_AddRefs(it));
|
||||
|
||||
@ -6346,6 +6346,9 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsILineIterator> it;
|
||||
nsIFrame *mainframe = this;
|
||||
nsCOMPtr<nsIFocusTracker> tracker;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (!shell)
|
||||
return NS_OK;
|
||||
result = shell->QueryInterface(NS_GET_IID(nsIFocusTracker),getter_AddRefs(tracker));
|
||||
|
||||
result = mainframe->QueryInterface(NS_GET_IID(nsILineIterator),getter_AddRefs(it));
|
||||
|
||||
@ -6346,6 +6346,9 @@ nsBlockFrame::HandleEvent(nsIPresContext* aPresContext,
|
||||
nsCOMPtr<nsILineIterator> it;
|
||||
nsIFrame *mainframe = this;
|
||||
nsCOMPtr<nsIFocusTracker> tracker;
|
||||
aPresContext->GetShell(getter_AddRefs(shell));
|
||||
if (!shell)
|
||||
return NS_OK;
|
||||
result = shell->QueryInterface(NS_GET_IID(nsIFocusTracker),getter_AddRefs(tracker));
|
||||
|
||||
result = mainframe->QueryInterface(NS_GET_IID(nsILineIterator),getter_AddRefs(it));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user