From 239379cf0066ec6e4b44aef8fb162f2aaaf72483 Mon Sep 17 00:00:00 2001 From: "Jerry.Kirk%Nexwarecorp.com" Date: Mon, 8 May 2000 00:05:00 +0000 Subject: [PATCH] Adding "GetNormalLineHeight" method. Photon ONLY git-svn-id: svn://10.0.0.236/trunk@68612 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/photon/nsFontMetricsPh.cpp | 7 +++++++ mozilla/gfx/src/photon/nsFontMetricsPh.h | 1 + 2 files changed, 8 insertions(+) diff --git a/mozilla/gfx/src/photon/nsFontMetricsPh.cpp b/mozilla/gfx/src/photon/nsFontMetricsPh.cpp index f4ead70b88a..da878df0f80 100644 --- a/mozilla/gfx/src/photon/nsFontMetricsPh.cpp +++ b/mozilla/gfx/src/photon/nsFontMetricsPh.cpp @@ -313,6 +313,13 @@ nsFontMetricsPh :: GetHeight(nscoord &aHeight) return NS_OK; } +NS_IMETHODIMP +nsFontMetricsPh ::GetNormalLineHeight(nscoord &aHeight) +{ + aHeight = mEmHeight + mLeading; + return NS_OK; +} + NS_IMETHODIMP nsFontMetricsPh :: GetLeading(nscoord &aLeading) { diff --git a/mozilla/gfx/src/photon/nsFontMetricsPh.h b/mozilla/gfx/src/photon/nsFontMetricsPh.h index fedbff12dba..196fe22622c 100644 --- a/mozilla/gfx/src/photon/nsFontMetricsPh.h +++ b/mozilla/gfx/src/photon/nsFontMetricsPh.h @@ -57,6 +57,7 @@ public: NS_IMETHOD GetUnderline(nscoord& aOffset, nscoord& aSize); NS_IMETHOD GetHeight(nscoord &aHeight); + NS_IMETHOD GetNormalLineHeight(nscoord &aHeight); NS_IMETHOD GetLeading(nscoord &aLeading); NS_IMETHOD GetEmHeight(nscoord &aHeight); NS_IMETHOD GetEmAscent(nscoord &aAscent);