diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /layout/forms/nsHTMLButtonControlFrame.h | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/forms/nsHTMLButtonControlFrame.h')
-rw-r--r-- | layout/forms/nsHTMLButtonControlFrame.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/layout/forms/nsHTMLButtonControlFrame.h b/layout/forms/nsHTMLButtonControlFrame.h index b4409d66a7..760418f954 100644 --- a/layout/forms/nsHTMLButtonControlFrame.h +++ b/layout/forms/nsHTMLButtonControlFrame.h @@ -7,10 +7,9 @@ #ifndef nsHTMLButtonControlFrame_h___ #define nsHTMLButtonControlFrame_h___ -#include "mozilla/Attributes.h" #include "nsContainerFrame.h" +#include "nsCSSRenderingBorders.h" #include "nsIFormControlFrame.h" -#include "nsButtonFrameRenderer.h" class gfxContext; class nsPresContext; @@ -83,6 +82,14 @@ class nsHTMLButtonControlFrame : public nsContainerFrame, // Return the ::-moz-button-content anonymous box. void AppendDirectlyOwnedAnonBoxes(nsTArray<OwnedAnonBox>& aResult) override; + mozilla::Maybe<nsCSSBorderRenderer> CreateInnerFocusBorderRenderer( + nsDisplayListBuilder* aBuilder, gfxContext* aRenderingContext, + const nsRect& aDirtyRect, const nsRect& aRect, bool* aBorderIsEmpty); + + void PaintInnerFocusBorder(nsDisplayListBuilder* aBuilder, + gfxContext& aRenderingContext, + const nsRect& aDirtyRect, const nsRect& aRect); + protected: nsHTMLButtonControlFrame(ComputedStyle* aStyle, nsPresContext* aPresContext, nsIFrame::ClassID aID); @@ -90,7 +97,7 @@ class nsHTMLButtonControlFrame : public nsContainerFrame, // Indicates whether we should clip our children's painting to our // border-box (either because of "overflow" or because of legacy reasons // about how <input>-flavored buttons work). - bool ShouldClipPaintingToBorderBox(); + bool ShouldClipPaintingToBorderBox() const; // Reflows the button's sole child frame, and computes the desired size // of the button itself from the results. @@ -104,7 +111,7 @@ class nsHTMLButtonControlFrame : public nsContainerFrame, mozilla::WritingMode aWM, BaselineSharingGroup aBaselineGroup) const override; - nsButtonFrameRenderer mRenderer; + RefPtr<mozilla::ComputedStyle> mInnerFocusStyle; }; #endif |