Bug 977668 - Firefox hangs on Facebook text entry when inline lookups pop up, r=jwei

This commit is contained in:
Alexander Surkov 2014-04-09 14:23:04 -04:00
parent 683a2f26d5
commit b819f5bccb

View File

@ -1037,13 +1037,12 @@ HyperTextAccessible::TextBounds(int32_t aStartOffset, int32_t aEndOffset,
int32_t offset1 = startOffset - prevOffset;
while (childIdx < ChildCount()) {
nsIFrame* frame = GetChildAt(childIdx)->GetFrame();
nsIFrame* frame = GetChildAt(childIdx++)->GetFrame();
if (!frame) {
NS_NOTREACHED("No frame for a child!");
continue;
}
childIdx++;
int32_t nextOffset = GetChildOffset(childIdx);
if (nextOffset >= endOffset) {
bounds.UnionRect(bounds, GetBoundsInFrame(frame, offset1,