Bug 1264784 - part 1 - call nsIFrame::{GetScreenRect,GetView} instead of their *External counterparts; r=dholbert
The latter functions just call through to the former functions, and we're going to remove the latter functions in a separate, subsequent patch.
This commit is contained in:
@@ -563,7 +563,7 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
|
||||
dragRect = ToAppUnits(dragRect, nsPresContext::AppUnitsPerCSSPixel()).
|
||||
ToOutsidePixels((*aPresContext)->AppUnitsPerDevPixel());
|
||||
|
||||
nsIntRect screenRect = rootFrame->GetScreenRectExternal();
|
||||
nsIntRect screenRect = rootFrame->GetScreenRect();
|
||||
aScreenDragRect->SetRect(screenRect.x + dragRect.x, screenRect.y + dragRect.y,
|
||||
dragRect.width, dragRect.height);
|
||||
}
|
||||
@@ -574,7 +574,7 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(dragNode);
|
||||
nsIFrame* frame = content->GetPrimaryFrame();
|
||||
if (frame) {
|
||||
nsIntRect screenRect = frame->GetScreenRectExternal();
|
||||
nsIntRect screenRect = frame->GetScreenRect();
|
||||
aScreenDragRect->SetRect(screenRect.x, screenRect.y,
|
||||
screenRect.width, screenRect.height);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user