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);