mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
Bug 977668 - Firefox hangs on Facebook text entry when inline lookups pop up, r=jwei
This commit is contained in:
parent
683a2f26d5
commit
b819f5bccb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user