mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 977668 - Firefox hangs on Facebook text entry when inline lookups pop up, r=jwei
This commit is contained in:
parent
939a14243b
commit
fb4a6fd9a1
@ -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