diff --git a/src/main/java/org/htmlunit/css/CssStyleSheet.java b/src/main/java/org/htmlunit/css/CssStyleSheet.java index 96bf857a814..ec498915aef 100644 --- a/src/main/java/org/htmlunit/css/CssStyleSheet.java +++ b/src/main/java/org/htmlunit/css/CssStyleSheet.java @@ -158,10 +158,6 @@ public class CssStyleSheet implements Serializable { /** The HTML element which owns this stylesheet. */ private final HtmlElement owner_; - /** The collection of rules defined in this style sheet. */ - private org.htmlunit.javascript.host.css.CSSRuleList cssRules_; - private List cssRulesIndexFix_; - /** The CSS import rules and their corresponding stylesheets. */ private final Map imports_ = new HashMap<>(); diff --git a/src/main/java/org/htmlunit/javascript/host/css/CSSStyleSheet.java b/src/main/java/org/htmlunit/javascript/host/css/CSSStyleSheet.java index d72286ffebf..02d9a85497d 100644 --- a/src/main/java/org/htmlunit/javascript/host/css/CSSStyleSheet.java +++ b/src/main/java/org/htmlunit/javascript/host/css/CSSStyleSheet.java @@ -273,7 +273,7 @@ private void refreshCssRules() { continue; } - final CSSRule cssRule = org.htmlunit.javascript.host.css.CSSRule.create(this, rule); + final CSSRule cssRule = CSSRule.create(this, rule); if (null == cssRule) { cssRulesIndexFix_.add(pos); } diff --git a/src/test/java/org/htmlunit/archunit/ArchitectureTest.java b/src/test/java/org/htmlunit/archunit/ArchitectureTest.java index 520c194595a..959a5f8cad7 100644 --- a/src/test/java/org/htmlunit/archunit/ArchitectureTest.java +++ b/src/test/java/org/htmlunit/archunit/ArchitectureTest.java @@ -72,7 +72,6 @@ public class ArchitectureTest { public static final ArchRule awtPackageRule = noClasses() .that() .doNotHaveFullyQualifiedName("org.htmlunit.html.DoTypeProcessor") - .and().doNotHaveFullyQualifiedName("org.htmlunit.javascript.host.css.ComputedCSSStyleDeclaration") .and().doNotHaveFullyQualifiedName("org.htmlunit.html.applets.AppletContextImpl") .and().resideOutsideOfPackage("org.htmlunit.platform..") .and().resideOutsideOfPackage("org.htmlunit.corejs.javascript.tools..")