summaryrefslogtreecommitdiffstats
path: root/widget/Theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/Theme.cpp')
-rw-r--r--widget/Theme.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/widget/Theme.cpp b/widget/Theme.cpp
index 15bf68ec01..fcfea14175 100644
--- a/widget/Theme.cpp
+++ b/widget/Theme.cpp
@@ -767,11 +767,11 @@ void Theme::PaintMenulistArrow(nsIFrame* aFrame, DrawTarget& aDrawTarget,
const auto direction = [&] {
const auto wm = aFrame->GetWritingMode();
switch (wm.GetBlockDir()) {
- case WritingMode::BlockDir::eBlockLR:
+ case WritingMode::BlockDir::LR:
return PhysicalArrowDirection::Right;
- case WritingMode::BlockDir::eBlockRL:
+ case WritingMode::BlockDir::RL:
return PhysicalArrowDirection::Left;
- case WritingMode::BlockDir::eBlockTB:
+ case WritingMode::BlockDir::TB:
return PhysicalArrowDirection::Bottom;
}
MOZ_ASSERT_UNREACHABLE("Unknown direction?");
@@ -1099,9 +1099,6 @@ bool Theme::CreateWebRenderCommandsForWidget(
const mozilla::layers::StackingContextHelper& aSc,
mozilla::layers::RenderRootStateManager* aManager, nsIFrame* aFrame,
StyleAppearance aAppearance, const nsRect& aRect) {
- if (!StaticPrefs::widget_non_native_theme_webrender()) {
- return false;
- }
WebRenderBackendData data{aBuilder, aResources, aSc, aManager};
return DoDrawWidgetBackground(data, aFrame, aAppearance, aRect,
DrawOverflow::Yes);
@@ -1208,6 +1205,7 @@ bool Theme::DoDrawWidgetBackground(PaintBackendData& aPaintData,
case StyleAppearance::Textarea:
case StyleAppearance::Textfield:
case StyleAppearance::NumberInput:
+ case StyleAppearance::PasswordInput:
PaintTextField(aPaintData, devPxRect, elementState, colors, dpiRatio);
break;
case StyleAppearance::Listbox:
@@ -1435,6 +1433,7 @@ LayoutDeviceIntMargin Theme::GetWidgetBorder(nsDeviceContext* aContext,
case StyleAppearance::Textfield:
case StyleAppearance::Textarea:
case StyleAppearance::NumberInput:
+ case StyleAppearance::PasswordInput:
case StyleAppearance::Listbox:
case StyleAppearance::Menulist:
case StyleAppearance::MenulistButton:
@@ -1503,6 +1502,7 @@ bool Theme::GetWidgetOverflow(nsDeviceContext* aContext, nsIFrame* aFrame,
case StyleAppearance::Textarea:
case StyleAppearance::Textfield:
case StyleAppearance::NumberInput:
+ case StyleAppearance::PasswordInput:
case StyleAppearance::Listbox:
case StyleAppearance::MenulistButton:
case StyleAppearance::Menulist:
@@ -1678,6 +1678,7 @@ bool Theme::ThemeSupportsWidget(nsPresContext* aPresContext, nsIFrame* aFrame,
case StyleAppearance::Menulist:
case StyleAppearance::MenulistButton:
case StyleAppearance::NumberInput:
+ case StyleAppearance::PasswordInput:
case StyleAppearance::MozMenulistArrowButton:
case StyleAppearance::SpinnerUpbutton:
case StyleAppearance::SpinnerDownbutton: