mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1231329 - run ConvertToUnscaledDevPixels if *aPresContext is valid. r=roc
This commit is contained in:
parent
1d50668a6b
commit
40ebcaa74b
@ -555,7 +555,7 @@ nsBaseDragService::DrawDrag(nsIDOMNode* aDOMNode,
|
||||
if (aRegion) {
|
||||
// the region's coordinates are relative to the root frame
|
||||
nsIFrame* rootFrame = presShell->GetRootFrame();
|
||||
if (rootFrame && *aPresContext) {
|
||||
if (rootFrame) {
|
||||
nsIntRect dragRect;
|
||||
aRegion->GetBoundingBox(&dragRect.x, &dragRect.y, &dragRect.width, &dragRect.height);
|
||||
dragRect = ToAppUnits(dragRect, nsPresContext::AppUnitsPerCSSPixel()).
|
||||
|
Loading…
Reference in New Issue
Block a user