mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
crasher fix: forgot {} around an indented block of code. this will fix 161444 and 161512. r=brade sr= smfr
This commit is contained in:
parent
b2e1a09772
commit
ceb56bec79
@ -4983,6 +4983,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
|
||||
{
|
||||
result = mFrameSelection->GetTracker()->GetPrimaryFrameFor(innercontent, &frame);
|
||||
if (NS_SUCCEEDED(result) && frame)
|
||||
{
|
||||
//NOTE: eSpreadDown is now IGNORED. Selected state is set only for given frame
|
||||
frame->SetSelected(aPresContext, nsnull,aFlags,eSpreadDown);//spread from here to hit all frames in flow
|
||||
frame->GetRect(frameRect);
|
||||
@ -5000,6 +5001,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
|
||||
break;
|
||||
}
|
||||
//if the frame is splittable and this frame is 0,0 then set the next in flow frame to be selected also
|
||||
}
|
||||
}
|
||||
result = aInnerIter->Next();
|
||||
if (NS_FAILED(result))
|
||||
|
@ -4983,6 +4983,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
|
||||
{
|
||||
result = mFrameSelection->GetTracker()->GetPrimaryFrameFor(innercontent, &frame);
|
||||
if (NS_SUCCEEDED(result) && frame)
|
||||
{
|
||||
//NOTE: eSpreadDown is now IGNORED. Selected state is set only for given frame
|
||||
frame->SetSelected(aPresContext, nsnull,aFlags,eSpreadDown);//spread from here to hit all frames in flow
|
||||
frame->GetRect(frameRect);
|
||||
@ -5000,6 +5001,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
|
||||
break;
|
||||
}
|
||||
//if the frame is splittable and this frame is 0,0 then set the next in flow frame to be selected also
|
||||
}
|
||||
}
|
||||
result = aInnerIter->Next();
|
||||
if (NS_FAILED(result))
|
||||
|
Loading…
Reference in New Issue
Block a user