remove unused prescontext argument from GetOffsetFromView bug 276015 r/sr=dbaron

This commit is contained in:
bmlk%gmx.de 2006-05-17 02:38:44 +00:00
parent aafec59e0e
commit 4e0962a9f7
3 changed files with 4 additions and 6 deletions

View File

@ -181,7 +181,7 @@ inFlasher::DrawElementOutline(nsIDOMElement* aElement)
}
// get view bounds in case this frame is being scrolled
nsRect rect = frame->GetRect();
nsPoint origin = inLayoutUtils::GetClientOrigin(presContext, frame);
nsPoint origin = inLayoutUtils::GetClientOrigin(frame);
rect.MoveTo(origin);
mCSSUtils->AdjustRectForMargins(frame, rect);

View File

@ -129,12 +129,11 @@ inLayoutUtils::GetEventStateManagerFor(nsIDOMElement *aElement)
}
nsPoint
inLayoutUtils::GetClientOrigin(nsPresContext* aPresContext,
nsIFrame* aFrame)
inLayoutUtils::GetClientOrigin(nsIFrame* aFrame)
{
nsPoint result(0,0);
nsIView* view;
aFrame->GetOffsetFromView(aPresContext, result, &view);
aFrame->GetOffsetFromView(result, &view);
nsIView* rootView = nsnull;
if (view) {
nsIViewManager* viewManager = view->GetViewManager();

View File

@ -69,8 +69,7 @@ public:
* @param aPresContext the presentation context
* @return the offset
*/
static nsPoint GetClientOrigin(nsPresContext* aPresContext,
nsIFrame* aFrame);
static nsPoint GetClientOrigin(nsIFrame* aFrame);
static nsRect& GetScreenOrigin(nsIDOMElement* aElement);
};