Bug 301313 : Remove mPresContext in /layout/forms/, patch by Andreas Lange <mozilla@lange.cx>, r+sr=roc

git-svn-id: svn://10.0.0.236/trunk@177834 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2005-08-16 12:20:58 +00:00
parent 8a8502f0af
commit c08a5451cc
10 changed files with 15 additions and 53 deletions

View File

@@ -265,7 +265,7 @@ nsFileControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
if (mTextFrame) {
nsIContent* content = mTextFrame->GetContent();
if (content) {
content->SetFocus(mPresContext);
content->SetFocus(GetPresContext());
}
}
}
@@ -378,7 +378,8 @@ nsFileControlFrame::MouseClick(nsIDOMEvent* aMouseEvent)
nsAutoString unicodePath;
result = localFile->GetPath(unicodePath);
if (!unicodePath.IsEmpty()) {
mTextFrame->SetProperty(mPresContext, nsHTMLAtoms::value, unicodePath);
mTextFrame->SetProperty(GetPresContext(), nsHTMLAtoms::value,
unicodePath);
// May need to fire an onchange here
mTextFrame->CheckFireOnChange();
return NS_OK;