зеркало из https://github.com/mozilla/pjs.git
Bug 651468 - Fix panning regression from bug 641426 [r=roc]
This commit is contained in:
Родитель
294fe217f0
Коммит
181c534fcb
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче