Bug 1286468 - Rename line related typedefs in nsBlockFrame. r=TYLin
MozReview-Commit-ID: Cz9R3D4NzMc
This commit is contained in:
@@ -1451,7 +1451,7 @@ BuildTextRuns(DrawTarget* aDrawTarget, nsTextFrame* aForFrame,
|
||||
NS_ASSERTION(backIterator.GetContainer() == block,
|
||||
"Someone lied to us about the block");
|
||||
}
|
||||
nsBlockFrame::line_iterator startLine = backIterator.GetLine();
|
||||
nsBlockFrame::LineIterator startLine = backIterator.GetLine();
|
||||
|
||||
// Find a line where we can start building text runs. We choose the last line
|
||||
// where:
|
||||
@@ -1473,7 +1473,7 @@ BuildTextRuns(DrawTarget* aDrawTarget, nsTextFrame* aForFrame,
|
||||
bool mayBeginInTextRun = true;
|
||||
while (true) {
|
||||
forwardIterator = backIterator;
|
||||
nsBlockFrame::line_iterator line = backIterator.GetLine();
|
||||
nsBlockFrame::LineIterator line = backIterator.GetLine();
|
||||
if (!backIterator.Prev() || backIterator.GetLine()->IsBlock()) {
|
||||
mayBeginInTextRun = false;
|
||||
break;
|
||||
@@ -1519,7 +1519,7 @@ BuildTextRuns(DrawTarget* aDrawTarget, nsTextFrame* aForFrame,
|
||||
bool seenStartLine = false;
|
||||
uint32_t linesAfterStartLine = 0;
|
||||
do {
|
||||
nsBlockFrame::line_iterator line = forwardIterator.GetLine();
|
||||
nsBlockFrame::LineIterator line = forwardIterator.GetLine();
|
||||
if (line->IsBlock())
|
||||
break;
|
||||
line->SetInvalidateTextRuns(false);
|
||||
@@ -5093,7 +5093,7 @@ LazyGetLineBaselineOffset(nsIFrame* aChildFrame, nsBlockFrame* aBlockFrame)
|
||||
nsIFrame::LineBaselineOffset(), &offsetFound);
|
||||
|
||||
if (!offsetFound) {
|
||||
for (nsBlockFrame::line_iterator line = aBlockFrame->begin_lines(),
|
||||
for (nsBlockFrame::LineIterator line = aBlockFrame->begin_lines(),
|
||||
line_end = aBlockFrame->end_lines();
|
||||
line != line_end; line++) {
|
||||
if (line->IsInline()) {
|
||||
|
||||
Reference in New Issue
Block a user