зеркало из https://github.com/mozilla/gecko-dev.git
crash when doing multiple redo commands in Composer; r=brade, sr=peterv, a=sspitzer
This commit is contained in:
Родитель
6fb4e51cdf
Коммит
b55b32437c
|
@ -1033,16 +1033,15 @@ nsHTMLEditor::CheckResizingState(nsISelection *aSelection)
|
|||
}
|
||||
}
|
||||
|
||||
PRUint16 nodeType;
|
||||
focusNode->GetNodeType(&nodeType);
|
||||
if (nsIDOMNode::TEXT_NODE == nodeType) {
|
||||
nsCOMPtr<nsIDOMNode> parent;
|
||||
res = focusNode->GetParentNode(getter_AddRefs(parent));
|
||||
if (NS_FAILED(res)) return res;
|
||||
focusNode = parent;
|
||||
}
|
||||
|
||||
if (focusNode) {
|
||||
PRUint16 nodeType;
|
||||
focusNode->GetNodeType(&nodeType);
|
||||
if (nsIDOMNode::TEXT_NODE == nodeType) {
|
||||
nsCOMPtr<nsIDOMNode> parent;
|
||||
res = focusNode->GetParentNode(getter_AddRefs(parent));
|
||||
if (NS_FAILED(res)) return res;
|
||||
focusNode = parent;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMElement>element;
|
||||
element = do_QueryInterface(focusNode);
|
||||
|
|
Загрузка…
Ссылка в новой задаче