This commit is contained in:
Timothy Nikkel 2015-04-29 19:16:34 -05:00
Родитель 24f2f8714b
Коммит 4351a73f8e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -4882,12 +4882,12 @@ ScrollFrameHelper::SetCoordAttribute(nsIContent* aContent, nsIAtom* aAtom,
DebugOnly<nsWeakPtr> weakShell(
do_GetWeakReference(mOuter->PresContext()->PresShell()));
// convert to pixels
int32_t pizelSize = nsPresContext::AppUnitsToIntCSSPixels(aSize);
int32_t pixelSize = nsPresContext::AppUnitsToIntCSSPixels(aSize);
// only set the attribute if it changed.
nsAutoString newValue;
newValue.AppendInt(pizelSize);
newValue.AppendInt(pixelSize);
if (aContent->AttrValueIs(kNameSpaceID_None, aAtom, newValue, eCaseMatters))
return;