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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user