mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
Issue #1751 -- Remove XP_MACOSX conditionals from the rest of the tree.
This also removes some PP abuse and takes file entries out of PP when no longer needed without XP_MACOSX conditionals.
This commit is contained in:
parent
02c59100a8
commit
a4b0f333ba
153 changed files with 173 additions and 4556 deletions
|
|
@ -241,8 +241,8 @@ LayoutDeviceIntRect nsView::CalcWidgetBounds(nsWindowType aType)
|
|||
LayoutDeviceIntRect newBounds =
|
||||
LayoutDeviceIntRect::FromUnknownRect(viewBounds.ToNearestPixels(p2a));
|
||||
|
||||
#if defined(XP_MACOSX) || (MOZ_WIDGET_GTK == 3)
|
||||
// cocoa and GTK round widget coordinates to the nearest global "display
|
||||
#if (MOZ_WIDGET_GTK == 3)
|
||||
// GTK 3 rounds widget coordinates to the nearest global "display
|
||||
// pixel" integer value. So we avoid fractional display pixel values by
|
||||
// rounding to the nearest value that won't yield a fractional display pixel.
|
||||
nsIWidget* widget = parentWidget ? parentWidget : mWindow.get();
|
||||
|
|
|
|||
|
|
@ -598,10 +598,7 @@ nsViewManager::InvalidateWidgetArea(nsView *aWidgetView,
|
|||
"Only plugin or popup widgets can be children!");
|
||||
|
||||
// We do not need to invalidate in plugin widgets, but we should
|
||||
// exclude them from the invalidation region IF we're not on
|
||||
// Mac. On Mac we need to draw under plugin widgets, because
|
||||
// plugin widgets are basically invisible
|
||||
#ifndef XP_MACOSX
|
||||
// exclude them from the invalidation region.
|
||||
// GetBounds should compensate for chrome on a toplevel widget
|
||||
LayoutDeviceIntRect bounds = childWidget->GetBounds();
|
||||
|
||||
|
|
@ -613,7 +610,6 @@ nsViewManager::InvalidateWidgetArea(nsView *aWidgetView,
|
|||
children.Or(children, rr - aWidgetView->ViewToWidgetOffset());
|
||||
children.SimplifyInward(20);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue