From dde6b688455527324d783e16e18d1c1c20e8d108 Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Tue, 24 Aug 2004 21:47:04 +0000 Subject: [PATCH] slight optimization to previous checkin, bug 253888 --- layout/generic/nsBlockReflowState.cpp | 3 ++- layout/html/base/src/nsBlockReflowState.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsBlockReflowState.cpp b/layout/generic/nsBlockReflowState.cpp index 1c78f7eb954f..e90efc276c5c 100644 --- a/layout/generic/nsBlockReflowState.cpp +++ b/layout/generic/nsBlockReflowState.cpp @@ -495,7 +495,8 @@ nsBlockReflowState::RecoverFloats(nsLineList::iterator aLine, // at their original position. if (NS_STYLE_POSITION_RELATIVE == kid->GetStyleDisplay()->mPosition) { nsPoint *offsets = NS_STATIC_CAST(nsPoint*, - kid->GetProperty(nsLayoutAtoms::computedOffsetProperty)); + mPresContext->PropertyTable()->GetProperty(kid, + nsLayoutAtoms::computedOffsetProperty)); if (offsets) { tx -= offsets->x; diff --git a/layout/html/base/src/nsBlockReflowState.cpp b/layout/html/base/src/nsBlockReflowState.cpp index 1c78f7eb954f..e90efc276c5c 100644 --- a/layout/html/base/src/nsBlockReflowState.cpp +++ b/layout/html/base/src/nsBlockReflowState.cpp @@ -495,7 +495,8 @@ nsBlockReflowState::RecoverFloats(nsLineList::iterator aLine, // at their original position. if (NS_STYLE_POSITION_RELATIVE == kid->GetStyleDisplay()->mPosition) { nsPoint *offsets = NS_STATIC_CAST(nsPoint*, - kid->GetProperty(nsLayoutAtoms::computedOffsetProperty)); + mPresContext->PropertyTable()->GetProperty(kid, + nsLayoutAtoms::computedOffsetProperty)); if (offsets) { tx -= offsets->x;