Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d417e3e4a176583cf1444165bea4eaebed261a09
      
https://github.com/WebKit/WebKit/commit/d417e3e4a176583cf1444165bea4eaebed261a09
  Author: Anuj Panta <[email protected]>
  Date:   2026-02-05 (Thu, 05 Feb 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Models/CSSRule.js
    M Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js
    M Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js

  Log Message:
  -----------
  Web Inspector: Unify CSS rule ID stringification across the codebase
https://bugs.webkit.org/show_bug.cgi?id=306840
rdar://169507123

Reviewed by Devin Rousso.

CSS rule IDs were being stringified inconsistently across the codebase some 
places
used ":" separators, others used "-" & the logic was duplicated everywhere.

Add WI.CSSStyleDeclaration.stringIdForStyleId() as the single function to 
stringify
CSS rule IDs (styleSheetId/ordinal). Update all call sites to use this helper.
Also add WI.CSSRule.prototype.get stringId for consistency with the existing
WI.CSSStyleDeclaration.prototype.get stringId.

* Source/WebInspectorUI/UserInterface/Models/CSSRule.js:
(WI.CSSRule.prototype.get stringId):
* Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js:
(WI.CSSStyleDeclaration.stringIdForStyleId):
(WI.CSSStyleDeclaration.prototype.get stringId):
* Source/WebInspectorUI/UserInterface/Models/DOMNodeStyles.js:
(WI.DOMNodeStyles.uniqueOrderedStyles):
(WI.DOMNodeStyles.prototype._parseStyleDeclarationPayload):
(WI.DOMNodeStyles.prototype._parseRulePayload):

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



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

Reply via email to