Retire CSSValueImpl and pin the W3C value facade#4160
Open
vogella wants to merge 2 commits into
Open
Conversation
CSSValueImpl is unreferenced since the computed-style cascade moved to internal types; delete it, together with the COUNTER_ERROR and RECT_ERROR message keys it was the last user of. Document the remaining W3C surface (the CssValues records and CSSStyleDeclarationImpl) as a permanent compatibility facade rather than a transitional bridge: IStylingEngine.getStyle and IThemeEngine.getStyle return W3C types and propertyHandler contributions receive values as W3C CSSValue, so this surface stays. Also drop the redundant CSSStyleDeclaration implements clause from CSSComputedStyleImpl.
After the parser and DOM-mirror rework only two of the 19 DOMExceptionImpl message keys were still referenced. Throw plain DOMException with the message inlined at the four remaining call sites and delete DOMExceptionImpl and its ExceptionResource bundle.
vogella
added a commit
to vogella/eclipse.platform.ui
that referenced
this pull request
Jul 4, 2026
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With #4122 merged, nothing references CSSValueImpl anymore, so this deletes it along with the COUNTER_ERROR and RECT_ERROR message keys it was the last user of. The remaining W3C surface (the CssValues records and CSSStyleDeclarationImpl) is now documented as a permanent compatibility facade rather than a transitional bridge, since IStylingEngine.getStyle and IThemeEngine.getStyle return W3C types and propertyHandler contributions receive values as W3C CSSValue. A second commit drops the now-dead DOM exception message-key machinery (DOMExceptionImpl, ExceptionResource): only two of its 19 messages were still referenced, now inlined as plain DOMException throws at the four call sites. Net about 210 lines removed with no behavior change.
Part of #3980.