зеркало из https://github.com/mozilla/gecko-dev.git
Bug 482974 - PRBool violation in nsTextAttrs.cpp, r=surkov, r=MarcoZ
This commit is contained in:
Родитель
43b91bbb86
Коммит
856c5cf446
|
@ -306,7 +306,8 @@ nsTextAttrsMgr::FindEndOffsetInSubtree(const nsTPtrArray<nsITextAttr>& aTextAttr
|
|||
return PR_FALSE;
|
||||
|
||||
nsCOMPtr<nsIDOMElement> currElm(nsCoreUtils::GetDOMElementFor(aCurrNode));
|
||||
NS_ENSURE_STATE(currElm);
|
||||
if (!currElm)
|
||||
return PR_FALSE;
|
||||
|
||||
// If the given text attribute (pointed by nsTextAttr object) changes its
|
||||
// value on the traversed element then fit the end of range.
|
||||
|
@ -362,7 +363,8 @@ nsTextAttrsMgr::FindStartOffsetInSubtree(const nsTPtrArray<nsITextAttr>& aTextAt
|
|||
}
|
||||
|
||||
nsCOMPtr<nsIDOMElement> currElm(nsCoreUtils::GetDOMElementFor(aCurrNode));
|
||||
NS_ENSURE_STATE(currElm);
|
||||
if (!currElm)
|
||||
return PR_FALSE;
|
||||
|
||||
// If the given text attribute (pointed by nsTextAttr object) changes its
|
||||
// value on the traversed element then fit the start of range.
|
||||
|
|
Загрузка…
Ссылка в новой задаче