Skip to content

Commit db37642

Browse files
committed
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.
1 parent 04c96e4 commit db37642

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

  • bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine

bundles/org.eclipse.e4.ui.css.core/src/org/eclipse/e4/ui/css/core/engine/CSSEngine.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.w3c.dom.Element;
2828
import org.w3c.dom.css.CSSStyleDeclaration;
2929
import org.w3c.dom.css.CSSValue;
30-
import org.w3c.dom.css.ViewCSS;
31-
import org.w3c.dom.views.DocumentView;
3230

3331
/**
3432
* CSS Engine interface used to parse style sheet and apply styles to something
@@ -191,25 +189,6 @@ public interface CSSEngine {
191189
*/
192190
CSSStyleDeclaration computeStyle(Element element, String pseudoElt);
193191

194-
/**
195-
* Binary-compatibility bridge for callers compiled against the removed
196-
* W3C cascade accessor; use {@link #computeStyle(Element, String)}.
197-
*/
198-
@Deprecated(forRemoval = true, since = "2026-06")
199-
default ViewCSS getViewCSS() {
200-
return new ViewCSS() {
201-
@Override
202-
public DocumentView getDocument() {
203-
return null;
204-
}
205-
206-
@Override
207-
public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt) {
208-
return computeStyle(elt, pseudoElt);
209-
}
210-
};
211-
}
212-
213192
/*--------------- w3c Element -----------------*/
214193

215194
/**

0 commit comments

Comments
 (0)