mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Stop null-checking the pres shell so that we get to the UnbindFromTree call in nsHTMLEditor::DeleteRefToAnonymousNode. (Bug 563980) r=ehsan
This commit is contained in:
parent
889fcc7adc
commit
ef99600a41
@ -313,7 +313,9 @@ nsHTMLEditor::HideGrabber()
|
||||
|
||||
// get the presshell's document observer interface.
|
||||
nsCOMPtr<nsIPresShell> ps = do_QueryReferent(mPresShellWeak);
|
||||
if (!ps) return NS_ERROR_NOT_INITIALIZED;
|
||||
// We allow the pres shell to be null; when it is, we presume there
|
||||
// are no document observers to notify, but we still want to
|
||||
// UnbindFromTree.
|
||||
|
||||
nsCOMPtr<nsIDOMNode> parentNode;
|
||||
res = mGrabber->GetParentNode(getter_AddRefs(parentNode));
|
||||
|
@ -125,7 +125,9 @@ nsHTMLEditor::HideInlineTableEditingUI()
|
||||
|
||||
// get the presshell's document observer interface.
|
||||
nsCOMPtr<nsIPresShell> ps = do_QueryReferent(mPresShellWeak);
|
||||
if (!ps) return NS_ERROR_NOT_INITIALIZED;
|
||||
// We allow the pres shell to be null; when it is, we presume there
|
||||
// are no document observers to notify, but we still want to
|
||||
// UnbindFromTree.
|
||||
|
||||
// get the root content node.
|
||||
|
||||
|
@ -439,7 +439,9 @@ nsHTMLEditor::HideResizers(void)
|
||||
|
||||
// get the presshell's document observer interface.
|
||||
nsCOMPtr<nsIPresShell> ps = do_QueryReferent(mPresShellWeak);
|
||||
if (!ps) return NS_ERROR_NOT_INITIALIZED;
|
||||
// We allow the pres shell to be null; when it is, we presume there
|
||||
// are no document observers to notify, but we still want to
|
||||
// UnbindFromTree.
|
||||
|
||||
nsresult res;
|
||||
nsCOMPtr<nsIDOMNode> parentNode;
|
||||
|
Loading…
Reference in New Issue
Block a user