From b16f96084afee62fad6d6fed6c3626657056f4a7 Mon Sep 17 00:00:00 2001 From: troy Date: Sun, 19 Apr 1998 05:06:41 +0000 Subject: [PATCH] Commented out the hack that explicitly set the P top margin since that's now handled using CSS git-svn-id: svn://10.0.0.236/trunk@381 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsStyleContext.cpp | 4 ++-- mozilla/layout/base/src/nsStyleContext.cpp | 4 ++-- mozilla/layout/style/nsStyleContext.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/content/base/src/nsStyleContext.cpp b/mozilla/content/base/src/nsStyleContext.cpp index 1cd8ee15641..f994d8d8b1f 100644 --- a/mozilla/content/base/src/nsStyleContext.cpp +++ b/mozilla/content/base/src/nsStyleContext.cpp @@ -429,8 +429,8 @@ void StyleContextImpl::HackStyleFor(nsIPresContext* aPresContext, mMolecule.textAlign = NS_STYLE_TEXT_ALIGN_RIGHT; } } - mMolecule.margin.top = NS_POINTS_TO_TWIPS_INT(2); - mMolecule.margin.bottom = NS_POINTS_TO_TWIPS_INT(2); +// mMolecule.margin.top = NS_POINTS_TO_TWIPS_INT(2); +// mMolecule.margin.bottom = NS_POINTS_TO_TWIPS_INT(2); } else if (buf.EqualsIgnoreCase("BODY")) { float p2t = aPresContext->GetPixelsToTwips(); // mColor.mBackgroundColor = NS_RGB(255, 255, 255); diff --git a/mozilla/layout/base/src/nsStyleContext.cpp b/mozilla/layout/base/src/nsStyleContext.cpp index 1cd8ee15641..f994d8d8b1f 100644 --- a/mozilla/layout/base/src/nsStyleContext.cpp +++ b/mozilla/layout/base/src/nsStyleContext.cpp @@ -429,8 +429,8 @@ void StyleContextImpl::HackStyleFor(nsIPresContext* aPresContext, mMolecule.textAlign = NS_STYLE_TEXT_ALIGN_RIGHT; } } - mMolecule.margin.top = NS_POINTS_TO_TWIPS_INT(2); - mMolecule.margin.bottom = NS_POINTS_TO_TWIPS_INT(2); +// mMolecule.margin.top = NS_POINTS_TO_TWIPS_INT(2); +// mMolecule.margin.bottom = NS_POINTS_TO_TWIPS_INT(2); } else if (buf.EqualsIgnoreCase("BODY")) { float p2t = aPresContext->GetPixelsToTwips(); // mColor.mBackgroundColor = NS_RGB(255, 255, 255); diff --git a/mozilla/layout/style/nsStyleContext.cpp b/mozilla/layout/style/nsStyleContext.cpp index 1cd8ee15641..f994d8d8b1f 100644 --- a/mozilla/layout/style/nsStyleContext.cpp +++ b/mozilla/layout/style/nsStyleContext.cpp @@ -429,8 +429,8 @@ void StyleContextImpl::HackStyleFor(nsIPresContext* aPresContext, mMolecule.textAlign = NS_STYLE_TEXT_ALIGN_RIGHT; } } - mMolecule.margin.top = NS_POINTS_TO_TWIPS_INT(2); - mMolecule.margin.bottom = NS_POINTS_TO_TWIPS_INT(2); +// mMolecule.margin.top = NS_POINTS_TO_TWIPS_INT(2); +// mMolecule.margin.bottom = NS_POINTS_TO_TWIPS_INT(2); } else if (buf.EqualsIgnoreCase("BODY")) { float p2t = aPresContext->GetPixelsToTwips(); // mColor.mBackgroundColor = NS_RGB(255, 255, 255);