Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 983b3503bc11f374891e666b6198a242e073ff10
      
https://github.com/WebKit/WebKit/commit/983b3503bc11f374891e666b6198a242e073ff10
  Author: Razvan Caliman <[email protected]>
  Date:   2026-05-01 (Fri, 01 May 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Base/Utilities.js
    M Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css
    M Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js

  Log Message:
  -----------
  Web Inspector: Audits: Replace audit version input field autosize with CSS 
field-sizing
https://bugs.webkit.org/show_bug.cgi?id=313679
rdar://175880363

Reviewed by Devin Rousso.

The CSS property `field-sizing: content` was implemented to solve the issue of
sizing input fields based on their contents. This can replace the custom logic
in Utilities.js used to calculate and approximate the element's content.

Since there are no other callers of the custom `Element.prototype.autosize()`,
it can be removed.

* Source/WebInspectorUI/UserInterface/Base/Utilities.js:
(get return):
* Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css:
(.content-view.audit-test > header table.controls > tr.supports 
input[type="number"]):
* Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js:
(WI.AuditTestContentView.prototype._updateSupportsInputState):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to