Bug 651468 - Fix panning regression from bug 641426 [r=roc]

This commit is contained in:
Matt Brubeck 2011-05-22 09:55:02 -07:00
Родитель 294fe217f0
Коммит 181c534fcb
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -524,7 +524,7 @@ nsSprocketLayout::Layout(nsIBox* aBox, nsBoxLayoutState& aState)
// We have to check for this.
nsRect newChildRect(child->GetRect());
if (!newChildRect.IsEqualEdges(childRect)) {
if (!newChildRect.IsEqualInterior(childRect)) {
#ifdef DEBUG_GROW
child->DumpBox(stdout);
printf(" GREW from (%d,%d) -> (%d,%d)\n", childRect.width, childRect.height, newChildRect.width, newChildRect.height);
@ -1163,7 +1163,7 @@ nsSprocketLayout::ChildResized(nsIBox* aBox,
if (recompute)
ComputeChildSizes(aBox, aState, containingWidth, aBoxSizes, aComputedBoxSizes);
if (!childCurrentRect.IsEqualEdges(aChildActualRect)) {
if (!childCurrentRect.IsEqualInterior(aChildActualRect)) {
// the childRect includes the margin
// make sure we remove it before setting
// the bounds.