Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5a744ba53f791052cfcbd15c56c1aabd0a7e6b8a
      
https://github.com/WebKit/WebKit/commit/5a744ba53f791052cfcbd15c56c1aabd0a7e6b8a
  Author: Richard Robinson <[email protected]>
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M Source/WebCore/html/HTMLButtonElement.cpp
    M Source/WebCore/html/HTMLButtonElement.h

  Log Message:
  -----------
  [Swift in WebKit] Work towards modularizing WebCore private headers (Part 12)
https://bugs.webkit.org/show_bug.cgi?id=300521
rdar://162388804

Reviewed by Aditya Keerthi.

When building with modules, the `RESET` enum case in HTMLButtonElement 
conflicts with the `RESET` macro from ANSIColors.h.

Fix by just changing the enum to be an enum class instead since those are 
preferred anyways.

* Source/WebCore/html/HTMLButtonElement.cpp:
(WebCore::HTMLButtonElement::HTMLButtonElement):
(WebCore::HTMLButtonElement::formControlType const):
(WebCore::HTMLButtonElement::defaultEventHandler):
(WebCore::HTMLButtonElement::isSuccessfulSubmitButton const):
(WebCore::HTMLButtonElement::appendFormData):
(WebCore::HTMLButtonElement::computeWillValidate const):
(WebCore::HTMLButtonElement::isSubmitButton const):
(WebCore::HTMLButtonElement::computeType):
* Source/WebCore/html/HTMLButtonElement.h:

Canonical link: https://commits.webkit.org/301331@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to