Skip to content

Commit

Permalink
Remove RenderTheme::paintApplePayButton()
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=264877

Reviewed by Aditya Keerthi.

It's always painted as a ControlPart so this is dead code.

* Source/WebCore/rendering/RenderTheme.cpp:
(WebCore::RenderTheme::paint):
* Source/WebCore/rendering/RenderTheme.h:
(WebCore::RenderTheme::adjustApplePayButtonStyle const):
(WebCore::RenderTheme::paintApplePayButton): Deleted.

Canonical link: https://commits.webkit.org/270816@main
  • Loading branch information
annevk committed Nov 16, 2023
1 parent 6c9e966 commit 0f67c46
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Source/WebCore/rendering/RenderTheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,10 +932,6 @@ bool RenderTheme::paint(const RenderBox& box, ControlStates& controlStates, cons
#endif
case StyleAppearance::CapsLockIndicator:
return paintCapsLockIndicator(box, paintInfo, integralSnappedRect);
#if ENABLE(APPLE_PAY)
case StyleAppearance::ApplePayButton:
return paintApplePayButton(box, paintInfo, integralSnappedRect);
#endif
#if ENABLE(DATALIST_ELEMENT)
case StyleAppearance::ListButton:
return paintListButton(box, paintInfo, devicePixelSnappedRect);
Expand Down
1 change: 0 additions & 1 deletion Source/WebCore/rendering/RenderTheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ class RenderTheme {

#if ENABLE(APPLE_PAY)
virtual void adjustApplePayButtonStyle(RenderStyle&, const Element*) const { }
virtual bool paintApplePayButton(const RenderObject&, const PaintInfo&, const IntRect&) { return true; }
#endif

#if ENABLE(ATTACHMENT_ELEMENT)
Expand Down

0 comments on commit 0f67c46

Please sign in to comment.