diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 34edd1edd2f..35a3a97b311 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -5753,7 +5753,7 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext, // letter-frame is present, use its parent. nsCOMPtr parentFrameType; parentFrame->GetFrameType(getter_AddRefs(parentFrameType)); - if (parentFrameType == nsLayoutAtoms::letterFrame) { + if (parentFrameType.get() == nsLayoutAtoms::letterFrame) { if (prevSibling) { prevSibling = parentFrame; } @@ -7997,7 +7997,7 @@ nsCSSFrameConstructor::AppendFirstLineFrames( nsIFrame* lastBlockKid = blockFrames.LastChild(); nsCOMPtr frameType; lastBlockKid->GetFrameType(getter_AddRefs(frameType)); - if (frameType != nsLayoutAtoms::lineFrame) { + if (frameType.get() != nsLayoutAtoms::lineFrame) { // No first-line frame at the end of the list, therefore there is // an interveening block between any first-line frame the frames // we are appending. Therefore, we don't need any special diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 34edd1edd2f..35a3a97b311 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -5753,7 +5753,7 @@ nsCSSFrameConstructor::ContentInserted(nsIPresContext* aPresContext, // letter-frame is present, use its parent. nsCOMPtr parentFrameType; parentFrame->GetFrameType(getter_AddRefs(parentFrameType)); - if (parentFrameType == nsLayoutAtoms::letterFrame) { + if (parentFrameType.get() == nsLayoutAtoms::letterFrame) { if (prevSibling) { prevSibling = parentFrame; } @@ -7997,7 +7997,7 @@ nsCSSFrameConstructor::AppendFirstLineFrames( nsIFrame* lastBlockKid = blockFrames.LastChild(); nsCOMPtr frameType; lastBlockKid->GetFrameType(getter_AddRefs(frameType)); - if (frameType != nsLayoutAtoms::lineFrame) { + if (frameType.get() != nsLayoutAtoms::lineFrame) { // No first-line frame at the end of the list, therefore there is // an interveening block between any first-line frame the frames // we are appending. Therefore, we don't need any special