mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
remove unused prescontext argument from GetOffsetFromView bug 276015 r/sr=dbaron
This commit is contained in:
parent
aafec59e0e
commit
4e0962a9f7
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user