Take left border+padding into account when calculating distance from block edge for TAB. b=430926 r+sr=roc

This commit is contained in:
Mats Palmgren
2008-06-20 06:39:56 +02:00
parent 9b1789e800
commit a55c2bc2b2
2 changed files with 10 additions and 3 deletions

View File

@@ -5531,7 +5531,9 @@ nsTextFrame::Reflow(nsPresContext* aPresContext,
iter.SetOriginalOffset(offset);
nscoord xOffsetForTabs = (mTextRun->GetFlags() & nsTextFrameUtils::TEXT_HAS_TAB) ?
lineLayout.GetCurrentFrameXDistanceFromBlock() : -1;
(lineLayout.GetCurrentFrameXDistanceFromBlock() -
lineContainer->GetUsedBorderAndPadding().left)
: -1;
PropertyProvider provider(mTextRun, textStyle, frag, this, iter, length,
lineContainer, xOffsetForTabs);