mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +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
|
|
@ -99,25 +99,13 @@ nsNativeTheme::GetContentState(nsIFrame* aFrame, uint8_t aWidgetType)
|
|||
flags |= NS_EVENT_STATE_FOCUS;
|
||||
}
|
||||
|
||||
// On Windows and Mac, only draw focus rings if they should be shown. This
|
||||
// On Windows, only draw focus rings if they should be shown. This
|
||||
// means that focus rings are only shown once the keyboard has been used to
|
||||
// focus something in the window.
|
||||
#if defined(XP_MACOSX)
|
||||
// Mac always draws focus rings for textboxes and lists.
|
||||
if (aWidgetType == NS_THEME_NUMBER_INPUT ||
|
||||
aWidgetType == NS_THEME_TEXTFIELD ||
|
||||
aWidgetType == NS_THEME_TEXTFIELD_MULTILINE ||
|
||||
aWidgetType == NS_THEME_SEARCHFIELD ||
|
||||
aWidgetType == NS_THEME_LISTBOX) {
|
||||
return flags;
|
||||
}
|
||||
#endif
|
||||
#if defined(XP_WIN)
|
||||
// On Windows, focused buttons are always drawn as such by the native theme.
|
||||
if (aWidgetType == NS_THEME_BUTTON)
|
||||
return flags;
|
||||
#endif
|
||||
#if defined(XP_MACOSX) || defined(XP_WIN)
|
||||
nsIDocument* doc = aFrame->GetContent()->OwnerDoc();
|
||||
nsPIDOMWindowOuter* window = doc->GetWindow();
|
||||
if (window && !window->ShouldShowFocusRing())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue