From ba1e6f7e08d4063186fcf0ef2ac12aa4b64af9b6 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Mon, 16 Sep 2002 13:54:28 +0000 Subject: [PATCH] Call FindCanvasBackground after it has been defined since it is an inline funciton. Fixing Solaris Forte tinderbox bustage. git-svn-id: svn://10.0.0.236/trunk@129694 18797224-902f-48f8-a5cc-f745e15eee43 --- .../browser/webBrowser/nsContextMenuInfo.cpp | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/mozilla/embedding/browser/webBrowser/nsContextMenuInfo.cpp b/mozilla/embedding/browser/webBrowser/nsContextMenuInfo.cpp index d12da5ea6d6..02d483b4a6a 100644 --- a/mozilla/embedding/browser/webBrowser/nsContextMenuInfo.cpp +++ b/mozilla/embedding/browser/webBrowser/nsContextMenuInfo.cpp @@ -358,16 +358,6 @@ nsContextMenuInfo::GetBackgroundImageRequest(nsIDOMNode * aDOMNode, imgIRequest // Perhaps there is a better, pubically supported way to get the same thing done? //////// -PRBool -nsContextMenuInfo::FindBackground(nsIPresContext* aPresContext, - nsIFrame* aForFrame, - const nsStyleBackground** aBackground, - PRBool* aIsCanvas) -{ - *aIsCanvas = PR_TRUE; - return FindCanvasBackground(aPresContext, aForFrame, aBackground); -} - // nethod GetFrameForBackgroundUpdate // // If the frame (aFrame) is the HTML or BODY frame then find the canvas frame and set the @@ -561,3 +551,14 @@ nsContextMenuInfo::IsCanvasFrame(nsIFrame *aFrame) frameType == mTag_rootFrame || frameType == mTag_pageFrame); } + +PRBool +nsContextMenuInfo::FindBackground(nsIPresContext* aPresContext, + nsIFrame* aForFrame, + const nsStyleBackground** aBackground, + PRBool* aIsCanvas) +{ + *aIsCanvas = PR_TRUE; + return FindCanvasBackground(aPresContext, aForFrame, aBackground); +} +