diff --git a/layout/base/nsFrameManager.cpp b/layout/base/nsFrameManager.cpp index ff7033b0d243..bedf8ee3514b 100644 --- a/layout/base/nsFrameManager.cpp +++ b/layout/base/nsFrameManager.cpp @@ -1293,7 +1293,7 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext, // only do frames that are in flow nsCOMPtr 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"); diff --git a/layout/html/base/src/nsFrameManager.cpp b/layout/html/base/src/nsFrameManager.cpp index ff7033b0d243..bedf8ee3514b 100644 --- a/layout/html/base/src/nsFrameManager.cpp +++ b/layout/html/base/src/nsFrameManager.cpp @@ -1293,7 +1293,7 @@ FrameManager::ReResolveStyleContext(nsIPresContext* aPresContext, // only do frames that are in flow nsCOMPtr 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");