зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1159056. Don't store a value in CSS pixels in a variable with type nscoord in ScrollFrameHelper::SetCoordAttribute. r=dholbert
This commit is contained in:
Родитель
82b77a20c5
Коммит
b2cc193b4e
|
@ -4882,12 +4882,12 @@ ScrollFrameHelper::SetCoordAttribute(nsIContent* aContent, nsIAtom* aAtom,
|
|||
DebugOnly<nsWeakPtr> weakShell(
|
||||
do_GetWeakReference(mOuter->PresContext()->PresShell()));
|
||||
// convert to pixels
|
||||
aSize = nsPresContext::AppUnitsToIntCSSPixels(aSize);
|
||||
int32_t pizelSize = nsPresContext::AppUnitsToIntCSSPixels(aSize);
|
||||
|
||||
// only set the attribute if it changed.
|
||||
|
||||
nsAutoString newValue;
|
||||
newValue.AppendInt(aSize);
|
||||
newValue.AppendInt(pizelSize);
|
||||
|
||||
if (aContent->AttrValueIs(kNameSpaceID_None, aAtom, newValue, eCaseMatters))
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче