From b819f5bccb48c9572a69d13f7512371cbd666c4e Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Wed, 9 Apr 2014 14:23:04 -0400 Subject: [PATCH] Bug 977668 - Firefox hangs on Facebook text entry when inline lookups pop up, r=jwei --- accessible/src/generic/HyperTextAccessible.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accessible/src/generic/HyperTextAccessible.cpp b/accessible/src/generic/HyperTextAccessible.cpp index 133a425ed951..c765a4629990 100644 --- a/accessible/src/generic/HyperTextAccessible.cpp +++ b/accessible/src/generic/HyperTextAccessible.cpp @@ -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,