From 17693c2f376eb65c58dd60efc9b4734cb222dc70 Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Tue, 22 Jun 1999 19:16:16 +0000 Subject: [PATCH] added fixed font flag support --- content/base/src/nsStyleContext.cpp | 3 +++ layout/base/src/nsStyleContext.cpp | 3 +++ layout/style/nsStyleContext.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/content/base/src/nsStyleContext.cpp b/content/base/src/nsStyleContext.cpp index fb81bda21515..3c013417262f 100644 --- a/content/base/src/nsStyleContext.cpp +++ b/content/base/src/nsStyleContext.cpp @@ -1888,6 +1888,9 @@ void StyleContextImpl::ForceUnique(void) void StyleContextImpl::RecalcAutomaticData(nsIPresContext* aPresContext) { + if (mFont.mFlags & NS_STYLE_FONT_USE_FIXED) { + mFont.mFont = mFont.mFixedFont; + } mSpacing.RecalcData(aPresContext, mColor.mColor); } diff --git a/layout/base/src/nsStyleContext.cpp b/layout/base/src/nsStyleContext.cpp index fb81bda21515..3c013417262f 100644 --- a/layout/base/src/nsStyleContext.cpp +++ b/layout/base/src/nsStyleContext.cpp @@ -1888,6 +1888,9 @@ void StyleContextImpl::ForceUnique(void) void StyleContextImpl::RecalcAutomaticData(nsIPresContext* aPresContext) { + if (mFont.mFlags & NS_STYLE_FONT_USE_FIXED) { + mFont.mFont = mFont.mFixedFont; + } mSpacing.RecalcData(aPresContext, mColor.mColor); } diff --git a/layout/style/nsStyleContext.cpp b/layout/style/nsStyleContext.cpp index fb81bda21515..3c013417262f 100644 --- a/layout/style/nsStyleContext.cpp +++ b/layout/style/nsStyleContext.cpp @@ -1888,6 +1888,9 @@ void StyleContextImpl::ForceUnique(void) void StyleContextImpl::RecalcAutomaticData(nsIPresContext* aPresContext) { + if (mFont.mFlags & NS_STYLE_FONT_USE_FIXED) { + mFont.mFont = mFont.mFixedFont; + } mSpacing.RecalcData(aPresContext, mColor.mColor); }