[Webkit-unassigned] [Bug 288418] New: Make NameScope a read-only class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 24 15:35:13 PST 2025


https://bugs.webkit.org/show_bug.cgi?id=288418

            Bug ID: 288418
           Summary: Make NameScope a read-only class
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kiet.ho at apple.com
                CC: kiet.ho at apple.com, koivisto at iki.fi,
                    webkit-bug-importer at group.apple.com

NameScope is currently a struct, so it's easy to construct invalid NameScopes that breaks invariants. For example: None type with non-empty name vector, or Ident type with empty name vector. Therefore NameScope should be "hermantic" - once it's created, it's not possible to change it. The constructor should also be changed such that it's not possible to construct an invalid NameScope.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20250224/26324ae4/attachment.htm>


More information about the webkit-unassigned mailing list