Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
uid502
2003-10-31 20:19:18 +00:00
parent ada82f9637
commit e56ed2443c
188 changed files with 1115 additions and 2182 deletions

View File

@@ -358,10 +358,8 @@ nsresult nsContextMenuInfo::GetFrameForBackgroundUpdate(nsIPresContext *aPresCon
// the frame is the body frame, so we provide the canvas frame
nsIFrame *pCanvasFrame = aFrame->GetParent();
while (pCanvasFrame) {
nsCOMPtr<nsIAtom> parentType;
pCanvasFrame->GetFrameType(getter_AddRefs(parentType));
nsCOMPtr<nsIAtom> mTag_canvasFrame = do_GetAtom("CanvasFrame");
if (parentType.get() == mTag_canvasFrame) {
nsCOMPtr<nsIAtom> mTag_canvasFrame = do_GetAtom("CanvasFrame");
if (pCanvasFrame->GetType() == mTag_canvasFrame) {
*aBGFrame = pCanvasFrame;
break;
}