mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #1970 - Part 2: Remove the extra padding on buttons
Extra padding was created for a prospective -moz-focus-inner ring. We now just size that ring the same as the content frame, inflated by its CSS padding.
This commit is contained in:
parent
8de47d99c4
commit
e54e8f61bb
6 changed files with 44 additions and 175 deletions
|
|
@ -37,11 +37,11 @@ public:
|
|||
nsDisplayList* aBackground, nsDisplayList* aForeground);
|
||||
|
||||
|
||||
DrawResult PaintOutlineAndFocusBorders(nsDisplayListBuilder* aBuilder,
|
||||
nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsRect& aRect);
|
||||
DrawResult PaintInnerFocusBorder(nsDisplayListBuilder* aBuilder,
|
||||
nsPresContext* aPresContext,
|
||||
nsRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsRect& aRect);
|
||||
|
||||
DrawResult PaintBorder(nsDisplayListBuilder* aBuilder,
|
||||
nsPresContext* aPresContext,
|
||||
|
|
@ -58,10 +58,6 @@ public:
|
|||
|
||||
void GetButtonRect(const nsRect& aRect, nsRect& aResult);
|
||||
void GetButtonInnerFocusRect(const nsRect& aRect, nsRect& aResult);
|
||||
nsMargin GetButtonBorderAndPadding();
|
||||
nsMargin GetButtonInnerFocusMargin();
|
||||
nsMargin GetButtonInnerFocusBorderAndPadding();
|
||||
nsMargin GetAddedButtonBorderAndPadding();
|
||||
|
||||
nsStyleContext* GetStyleContext(int32_t aIndex) const;
|
||||
void SetStyleContext(int32_t aIndex, nsStyleContext* aStyleContext);
|
||||
|
|
@ -73,7 +69,7 @@ protected:
|
|||
|
||||
private:
|
||||
|
||||
// cached style for focus and outline (used on Windows).
|
||||
// cached style for optional inner focus outline (used on Windows).
|
||||
RefPtr<nsStyleContext> mInnerFocusStyle;
|
||||
|
||||
nsFrame* mFrame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue