Bug 819291 - adding an assertion and handling the null offsetElm. r=surkov

---
 accessible/src/base/TextAttrs.cpp | 3 +++
 1 file changed, 3 insertions(+)
This commit is contained in:
Yura Zenevich 2014-02-14 09:36:11 -05:00
parent a8a187c157
commit 714e09dae2

View File

@ -79,6 +79,9 @@ TextAttrsMgr::GetAttributes(nsIPersistentProperties* aAttributes,
if (mOffsetAcc) {
offsetNode = mOffsetAcc->GetContent();
offsetElm = nsCoreUtils::GetDOMElementFor(offsetNode);
NS_ASSERTION(offsetElm, "No element for offset accessible!");
if (!offsetElm)
return;
frame = offsetElm->GetPrimaryFrame();
}