mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #1673 - Part 2: Make tab-size animatable and fix typos.
There were a few typos in the previous patch and this patch also makes tab-size animatable which didn't really require much of a change at all.
This commit is contained in:
parent
633d50eb3f
commit
b739e46f74
5 changed files with 7 additions and 10 deletions
|
|
@ -3435,7 +3435,7 @@ PropertyProvider::GetSpacingInternal(Range aRange, Spacing* aSpacing,
|
|||
if (!aIgnoreTabs) {
|
||||
gfxFloat tabWidth = ComputeTabWidthAppUnits(mFrame, mTextRun);
|
||||
if (tabWidth > 0) {
|
||||
CalcTabWidths(aRange);
|
||||
CalcTabWidths(aRange, tabWidth);
|
||||
if (mTabWidths) {
|
||||
mTabWidths->ApplySpacing(aSpacing,
|
||||
aRange.start - mStart.GetSkippedOffset(),
|
||||
|
|
@ -3466,13 +3466,13 @@ PropertyProvider::GetSpacingInternal(Range aRange, Spacing* aSpacing,
|
|||
// aX and the result are in whole appunits.
|
||||
static gfxFloat
|
||||
AdvanceToNextTab(gfxFloat aX, nsIFrame* aFrame,
|
||||
gfxTextRun* aTextRun, gfxFloat* aTabWidth)
|
||||
gfxTextRun* aTextRun, gfxFloat aTabWidth)
|
||||
{
|
||||
|
||||
// Advance aX to the next multiple of *aCachedTabWidth. We must advance
|
||||
// by at least 1 appunit.
|
||||
// XXX should we make this 1 CSS pixel?
|
||||
return ceil((aX + 1)/ aTabWidth) * aTabWidth;
|
||||
return NS_round((aX + 1) / aTabWidth) * aTabWidth;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue