From 86697eb2dd0f7941ee52dc728e2aee32c30911ef Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Sat, 9 Feb 2002 09:46:54 +0000 Subject: [PATCH] Add stub implementations MathML's GetBoundingMetrics() so that builds work again. Thanks to Paul Ashford for the patch. Bug #124543 r=mozilla@switkin.com Fixing tinderbox bustage git-svn-id: svn://10.0.0.236/trunk@114144 18797224-902f-48f8-a5cc-f745e15eee43 --- .../gfx/src/beos/nsRenderingContextBeOS.cpp | 27 +++++++++++++++++++ mozilla/gfx/src/beos/nsRenderingContextBeOS.h | 17 ++++++++++++ 2 files changed, 44 insertions(+) diff --git a/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp b/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp index e37ae7c1e0a..907635deb16 100644 --- a/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp +++ b/mozilla/gfx/src/beos/nsRenderingContextBeOS.cpp @@ -1086,3 +1086,30 @@ NS_IMETHODIMP nsRenderingContextBeOS::CopyOffScreenBits(nsDrawingSurface aSrcSur NS_IMETHODIMP nsRenderingContextBeOS::RetrieveCurrentNativeGraphicData(PRUint32 *ngd) { return NS_OK; } + + + +#ifdef MOZ_MATHML + /** + * Returns metrics (in app units) of an 8-bit character string + */ +NS_IMETHODIMP +nsRenderingContextBeOS::GetBoundingMetrics(const char* aString, + PRUint32 aLength, + nsBoundingMetrics& aBoundingMetrics) { + // Fill me up + return NS_ERROR_NOT_IMPLEMENTED; +} + + /** + * Returns metrics (in app units) of a Unicode character string + */ +NS_IMETHODIMP +nsRenderingContextBeOS::GetBoundingMetrics(const PRUnichar* aString, + PRUint32 aLength, + nsBoundingMetrics& aBoundingMetrics, + PRInt32* aFontID) { + // Fill me up + return NS_ERROR_NOT_IMPLEMENTED; +} +#endif /* MOZ_MATHML */ diff --git a/mozilla/gfx/src/beos/nsRenderingContextBeOS.h b/mozilla/gfx/src/beos/nsRenderingContextBeOS.h index 01a77460608..5b435904a47 100644 --- a/mozilla/gfx/src/beos/nsRenderingContextBeOS.h +++ b/mozilla/gfx/src/beos/nsRenderingContextBeOS.h @@ -186,6 +186,23 @@ public: mClipRegion->SetTo(0, 0, w, h); } } + +#ifdef MOZ_MATHML + /** + * Returns metrics (in app units) of an 8-bit character string + */ + NS_IMETHOD GetBoundingMetrics(const char* aString, + PRUint32 aLength, + nsBoundingMetrics& aBoundingMetrics); + + /** + * Returns metrics (in app units) of a Unicode character string + */ + NS_IMETHOD GetBoundingMetrics(const PRUnichar* aString, + PRUint32 aLength, + nsBoundingMetrics& aBoundingMetrics, + PRInt32* aFontID = nsnull); +#endif /* MOZ_MATHML */ protected: NS_IMETHOD CommonInit();