From 1caadc860f0f0bbb3f942918723228d18e93eb19 Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Tue, 28 Jul 2026 12:52:24 +0200 Subject: [PATCH] Remove the deprecated getViewCSS() compatibility bridge The bridge was added when computeStyle(Element, String) replaced the W3C cascade accessor, so that the PDE CSS spy kept working while it still called getViewCSS().getComputedStyle(...). The spy no longer calls it, so its last known caller is gone. The org.eclipse.e4.ui.css.core.engine package is not exported to any PDE bundle, so nothing in the SDK referenced the method at compile time; the spy reached it reflectively. --- .../e4/ui/css/core/engine/CSSEngine.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java index 3a8fab1f753..b34fa1a7a7f 100644 --- a/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java +++ b/bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java @@ -27,8 +27,6 @@ import org.w3c.dom.Element; import org.w3c.dom.css.CSSStyleDeclaration; import org.w3c.dom.css.CSSValue; -import org.w3c.dom.css.ViewCSS; -import org.w3c.dom.views.DocumentView; /** * CSS Engine interface used to parse style sheet and apply styles to something @@ -191,25 +189,6 @@ public interface CSSEngine { */ CSSStyleDeclaration computeStyle(Element element, String pseudoElt); - /** - * Binary-compatibility bridge for callers compiled against the removed - * W3C cascade accessor; use {@link #computeStyle(Element, String)}. - */ - @Deprecated(forRemoval = true, since = "2026-06") - default ViewCSS getViewCSS() { - return new ViewCSS() { - @Override - public DocumentView getDocument() { - return null; - } - - @Override - public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt) { - return computeStyle(elt, pseudoElt); - } - }; - } - /*--------------- w3c Element -----------------*/ /**