mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 410857 part 1 - Traverse overflow lines too so we don't miss some text. r=jfkthame
This commit is contained in:
parent
19479d7f10
commit
a908f9773e
@ -695,7 +695,11 @@ nsBidiPresUtils::Resolve(nsBlockFrame* aBlockFrame)
|
||||
nsBlockInFlowLineIterator lineIter(block, block->LinesBegin());
|
||||
bpd.mPrevFrame = nullptr;
|
||||
TraverseFrames(aBlockFrame, &lineIter, block->PrincipalChildList().FirstChild(), &bpd);
|
||||
// XXX what about overflow lines?
|
||||
nsBlockFrame::FrameLines* overflowLines = block->GetOverflowLines();
|
||||
if (overflowLines) {
|
||||
nsBlockInFlowLineIterator lineIter(block, overflowLines->mLines.begin(), true);
|
||||
TraverseFrames(aBlockFrame, &lineIter, block->PrincipalChildList().FirstChild(), &bpd);
|
||||
}
|
||||
}
|
||||
|
||||
if (ch != 0) {
|
||||
|
@ -1019,7 +1019,9 @@ public:
|
||||
|
||||
private:
|
||||
friend class nsBlockFrame;
|
||||
friend class nsBidiPresUtils;
|
||||
// XXX nsBlockFrame uses this internally in one place. Try to remove it.
|
||||
// XXX uhm, and nsBidiPresUtils::Resolve too.
|
||||
nsBlockInFlowLineIterator(nsBlockFrame* aFrame, LineIterator aLine, bool aInOverflow);
|
||||
|
||||
nsBlockFrame* mFrame;
|
||||
|
Loading…
Reference in New Issue
Block a user