Bug 1967137 - Remove unused appearance: tabpanel. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D249896
This commit is contained in:
committed by
ealvarez@mozilla.com
parent
437fba298d
commit
81d6becfd1
@@ -1553,9 +1553,6 @@ pub enum Appearance {
|
||||
/// A single tab in a tab widget.
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
Tab,
|
||||
/// A single pane (inside the tabpanels container).
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
Tabpanel,
|
||||
/// The tab panels container.
|
||||
#[parse(condition = "ParserContext::chrome_rules_enabled")]
|
||||
Tabpanels,
|
||||
|
||||
@@ -2696,7 +2696,6 @@ bool nsNativeThemeCocoa::WidgetAttributeChangeRequiresRepaint(
|
||||
case StyleAppearance::Statusbar:
|
||||
case StyleAppearance::Tooltip:
|
||||
case StyleAppearance::Tabpanels:
|
||||
case StyleAppearance::Tabpanel:
|
||||
case StyleAppearance::Menupopup:
|
||||
case StyleAppearance::Progresschunk:
|
||||
case StyleAppearance::ProgressBar:
|
||||
|
||||
@@ -491,7 +491,6 @@ mozilla::Maybe<UXThemeClass> nsNativeThemeWin::GetThemeClass(
|
||||
case StyleAppearance::Progresschunk:
|
||||
return Some(UXThemeClass::Progress);
|
||||
case StyleAppearance::Tab:
|
||||
case StyleAppearance::Tabpanel:
|
||||
case StyleAppearance::Tabpanels:
|
||||
return Some(UXThemeClass::Tab);
|
||||
case StyleAppearance::Range:
|
||||
@@ -721,11 +720,6 @@ nsresult nsNativeThemeWin::GetThemePartAndState(nsIFrame* aFrame,
|
||||
aState = TS_NORMAL;
|
||||
return NS_OK;
|
||||
}
|
||||
case StyleAppearance::Tabpanel: {
|
||||
aPart = TABP_PANEL;
|
||||
aState = TS_NORMAL;
|
||||
return NS_OK;
|
||||
}
|
||||
case StyleAppearance::Tab: {
|
||||
aPart = TABP_TAB;
|
||||
if (!aFrame) {
|
||||
@@ -1194,7 +1188,6 @@ LayoutDeviceIntSize nsNativeThemeWin::GetMinimumWidgetSize(
|
||||
case StyleAppearance::Textfield:
|
||||
case StyleAppearance::Progresschunk:
|
||||
case StyleAppearance::Tabpanels:
|
||||
case StyleAppearance::Tabpanel:
|
||||
case StyleAppearance::Listbox:
|
||||
return {}; // Don't worry about it.
|
||||
default:
|
||||
@@ -1367,7 +1360,6 @@ bool nsNativeThemeWin::ClassicThemeSupportsWidget(nsIFrame* aFrame,
|
||||
case StyleAppearance::ProgressBar:
|
||||
case StyleAppearance::Progresschunk:
|
||||
case StyleAppearance::Tab:
|
||||
case StyleAppearance::Tabpanel:
|
||||
case StyleAppearance::Tabpanels:
|
||||
return true;
|
||||
default:
|
||||
@@ -1439,7 +1431,6 @@ LayoutDeviceIntSize nsNativeThemeWin::ClassicGetMinimumWidgetSize(
|
||||
case StyleAppearance::Progresschunk:
|
||||
case StyleAppearance::ProgressBar:
|
||||
case StyleAppearance::Tab:
|
||||
case StyleAppearance::Tabpanel:
|
||||
case StyleAppearance::Tabpanels:
|
||||
// no minimum widget size
|
||||
break;
|
||||
@@ -1500,7 +1491,6 @@ nsresult nsNativeThemeWin::ClassicGetThemePartAndState(
|
||||
case StyleAppearance::Progresschunk:
|
||||
case StyleAppearance::ProgressBar:
|
||||
case StyleAppearance::Tab:
|
||||
case StyleAppearance::Tabpanel:
|
||||
case StyleAppearance::Tabpanels:
|
||||
// these don't use DrawFrameControl
|
||||
return NS_OK;
|
||||
@@ -1707,11 +1697,8 @@ RENDER_AGAIN:
|
||||
// Draw 3D border
|
||||
::DrawEdge(hdc, &widgetRect, BDR_SUNKENOUTER, BF_RECT | BF_MIDDLE);
|
||||
InflateRect(&widgetRect, -1, -1);
|
||||
[[fallthrough]];
|
||||
case StyleAppearance::Tabpanel: {
|
||||
::FillRect(hdc, &widgetRect, (HBRUSH)(COLOR_BTNFACE + 1));
|
||||
break;
|
||||
}
|
||||
case StyleAppearance::RangeThumb: {
|
||||
ElementState elementState = GetContentState(aFrame, aAppearance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user