mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
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:
parent
a8a187c157
commit
714e09dae2
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user