Attempting to fix nsCOMPtr .get() related bustage on Linux

This commit is contained in:
dveditz%netscape.com 2000-02-15 02:55:23 +00:00
parent 524f11871b
commit 84688e0640
2 changed files with 2 additions and 2 deletions

View File

@ -1293,7 +1293,7 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
// only do frames that are in flow
nsCOMPtr<nsIAtom> frameType;
child->GetFrameType(getter_AddRefs(frameType));
if (nsLayoutAtoms::placeholderFrame == frameType) { // placeholder
if (nsLayoutAtoms::placeholderFrame == frameType.get()) { // placeholder
// get out of flow frame and recurse there
nsIFrame* outOfFlowFrame = ((nsPlaceholderFrame*)child)->GetOutOfFlowFrame();
NS_ASSERTION(outOfFlowFrame, "no out-of-flow frame");

View File

@ -1293,7 +1293,7 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext,
// only do frames that are in flow
nsCOMPtr<nsIAtom> frameType;
child->GetFrameType(getter_AddRefs(frameType));
if (nsLayoutAtoms::placeholderFrame == frameType) { // placeholder
if (nsLayoutAtoms::placeholderFrame == frameType.get()) { // placeholder
// get out of flow frame and recurse there
nsIFrame* outOfFlowFrame = ((nsPlaceholderFrame*)child)->GetOutOfFlowFrame();
NS_ASSERTION(outOfFlowFrame, "no out-of-flow frame");