Skip to content

Commit 73dc4cf

Browse files
authored
Merge pull request #258 from Handig-Eekhoorn/public-methods-for-atrules
New public get() Methods in CSSRuleList and AtRuleImport and CSSRuleList
2 parents 6ad1c0d + 02439d5 commit 73dc4cf

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

org/w3c/css/atrules/css/AtRuleImport.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,15 @@ public AtRuleImport(String linkname, boolean is_url, AtRuleMedia media) {
7777
this.linkname = linkname;
7878
this.is_url = is_url;
7979
}
80+
81+
public String getLinkname() {
82+
return linkname;
83+
}
84+
85+
public AtRuleMedia getMedia() {
86+
return media;
87+
}
88+
89+
8090
}
8191

org/w3c/css/css/CssRuleList.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public void addAtRule(AtRule atRule) {
3838
public String getAtRule() {
3939
return (atRule != null) ? atRule.toString() : "";
4040
}
41+
42+
public AtRule getAtRuleObject() {
43+
return atRule;
44+
}
4145

4246
public String getAtRuleEscaped() {
4347
return Messages.escapeString(atRule.toString());

0 commit comments

Comments
 (0)