From cc936727dd46ca79f6627865739fcdb531783185 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Wed, 2 Feb 2000 08:28:37 +0000 Subject: [PATCH] fixing linux bustage. got caught by a platform difference in handling of nsCOMPtr and the equality operator --- layout/generic/nsLineLayout.cpp | 2 +- layout/html/base/src/nsLineLayout.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsLineLayout.cpp b/layout/generic/nsLineLayout.cpp index 17794ea1856..5e6a0ebbc13 100644 --- a/layout/generic/nsLineLayout.cpp +++ b/layout/generic/nsLineLayout.cpp @@ -1799,7 +1799,7 @@ nsLineLayout::ComputeQuirksModeLineHeightData(nsIRenderingContext *aRC, { nsCOMPtr tag; content->GetTag(*(getter_AddRefs(tag))); - if (nsHTMLAtoms::font==tag) + if (nsHTMLAtoms::font==tag.get()) { nsAutoString resultString; nsresult result; diff --git a/layout/html/base/src/nsLineLayout.cpp b/layout/html/base/src/nsLineLayout.cpp index 17794ea1856..5e6a0ebbc13 100644 --- a/layout/html/base/src/nsLineLayout.cpp +++ b/layout/html/base/src/nsLineLayout.cpp @@ -1799,7 +1799,7 @@ nsLineLayout::ComputeQuirksModeLineHeightData(nsIRenderingContext *aRC, { nsCOMPtr tag; content->GetTag(*(getter_AddRefs(tag))); - if (nsHTMLAtoms::font==tag) + if (nsHTMLAtoms::font==tag.get()) { nsAutoString resultString; nsresult result;