From 2be1c1fbc851299e746aad12f227274e73f87488 Mon Sep 17 00:00:00 2001 From: Stephen A Pohl Date: Fri, 14 Feb 2020 02:17:33 +0000 Subject: [PATCH] Bug 1615092: Remove IsDateTimeResetButton padding fixup that is no longer necessary when native theme is disabled. r=mstange Differential Revision: https://phabricator.services.mozilla.com/D62670 --HG-- extra : moz-landing-system : lando --- widget/nsNativeBasicTheme.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/widget/nsNativeBasicTheme.cpp b/widget/nsNativeBasicTheme.cpp index e7a643157140..36b5851e875a 100644 --- a/widget/nsNativeBasicTheme.cpp +++ b/widget/nsNativeBasicTheme.cpp @@ -641,10 +641,6 @@ bool nsNativeBasicTheme::GetWidgetPadding(nsDeviceContext* aContext, aResult->SizeTo(7 * dpi, 8 * dpi, 7 * dpi, 8 * dpi); return true; case StyleAppearance::Button: - if (IsDateTimeResetButton(aFrame)) { - aResult->SizeTo(0, 0, -1 * dpi, 4 * dpi); - return true; - } aResult->SizeTo(7 * dpi, 22 * dpi, 7 * dpi, 22 * dpi); return true; case StyleAppearance::Textfield: