Skip to content

Commit bd3fa86

Browse files
committed
get rid of all the w3c dependencies
1 parent ae1c128 commit bd3fa86

19 files changed

+55
-36
lines changed

src/main/java/com/gargoylesoftware/css/dom/CSSCharsetRuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import com.gargoylesoftware.css.util.LangUtils;
2626

2727
/**
28-
* Implementation of {@link AbstractCSSRuleImpl}.
28+
* Implementation of CSSCharsetRule.
2929
*
3030
* @author Ronald Brill
3131
*/

src/main/java/com/gargoylesoftware/css/dom/CSSFontFaceRuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import com.gargoylesoftware.css.util.LangUtils;
2626

2727
/**
28-
* Implementation of {@link CSSFontFaceRule}.
28+
* Implementation of CSSFontFaceRule.
2929
*
3030
* @author Ronald Brill
3131
*/

src/main/java/com/gargoylesoftware/css/dom/CSSImportRuleImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
import com.gargoylesoftware.css.util.LangUtils;
2626

2727
/**
28-
* Implementation of {@link CSSImportRule}.
29-
*
30-
* TODO: Implement getStyleSheet()
28+
* Implementation of CSSImportRule.
3129
*
3230
* @author Ronald Brill
3331
*/
@@ -125,7 +123,7 @@ public MediaListImpl getMedia() {
125123
}
126124

127125
public CSSStyleSheetImpl getStyleSheet() {
128-
return null;
126+
return getParentStyleSheet();
129127
}
130128

131129
@Override

src/main/java/com/gargoylesoftware/css/dom/CSSMediaRuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import com.gargoylesoftware.css.util.ThrowCssExceptionErrorHandler;
2929

3030
/**
31-
* Implementation of {@link CSSMediaRule}.
31+
* Implementation of CSSMediaRule.
3232
*
3333
* @author Ronald Brill
3434
*/

src/main/java/com/gargoylesoftware/css/dom/CSSPageRuleImpl.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
import com.gargoylesoftware.css.util.LangUtils;
2626

2727
/**
28-
* Implementation of {@link CSSPageRule}.
29-
*
30-
* TODO: Implement setSelectorText()
28+
* Implementation of CSSPageRule.
3129
*
3230
* @author Ronald Brill
3331
*/
@@ -115,9 +113,6 @@ public String getSelectorText() {
115113
return pseudoPage_;
116114
}
117115

118-
public void setSelectorText(final String selectorText) throws DOMException {
119-
}
120-
121116
public CSSStyleDeclarationImpl getStyle() {
122117
return style_;
123118
}

src/main/java/com/gargoylesoftware/css/dom/CSSRuleListImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import com.gargoylesoftware.css.util.LangUtils;
2222

2323
/**
24-
* Implementation of {@link CSSRuleList}.
24+
* Implementation of CSSRuleList.
2525
*
2626
* @author Ronald Brill
2727
*/

src/main/java/com/gargoylesoftware/css/dom/CSSStyleDeclarationImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.gargoylesoftware.css.util.LangUtils;
2727

2828
/**
29-
* Implementation of {@link CSSStyleDeclaration}.
29+
* Implementation of CSSStyleDeclaration.
3030
*
3131
* @author Ronald Brill
3232
*/

src/main/java/com/gargoylesoftware/css/dom/CSSStyleRuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.gargoylesoftware.css.util.LangUtils;
2727

2828
/**
29-
* Implementation of {@link CSSStyleRule}.
29+
* Implementation of CSSStyleRule.
3030
*
3131
* @author Ronald Brill
3232
*/

src/main/java/com/gargoylesoftware/css/dom/CSSStyleSheetImpl.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import com.gargoylesoftware.css.util.ThrowCssExceptionErrorHandler;
4242

4343
/**
44-
* Implementation of {@link CSSStyleSheet}.
44+
* Implementation of CSSStyleSheet.
4545
*
4646
* @author Ronald Brill
4747
*/
@@ -69,13 +69,17 @@ public String getType() {
6969
return "text/css";
7070
}
7171

72+
/**
73+
* @return the disable state
74+
*/
7275
public boolean getDisabled() {
7376
return disabled_;
7477
}
7578

7679
/**
7780
* We will need to respond more fully if a stylesheet is disabled, probably
7881
* by generating an event for the main application.
82+
* @param disabled the new disabled
7983
*/
8084
public void setDisabled(final boolean disabled) {
8185
disabled_ = disabled;
@@ -248,10 +252,16 @@ public void setMediaText(final String mediaText) {
248252
}
249253
}
250254

255+
/**
256+
* @param ownerRule the new ownerRule
257+
*/
251258
public void setOwnerRule(final AbstractCSSRuleImpl ownerRule) {
252259
ownerRule_ = ownerRule;
253260
}
254261

262+
/**
263+
* @param rules the new rules
264+
*/
255265
public void setCssRules(final CSSRuleListImpl rules) {
256266
cssRules_ = rules;
257267
}

src/main/java/com/gargoylesoftware/css/dom/CSSStyleSheetListImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import com.gargoylesoftware.css.util.LangUtils;
2222

2323
/**
24-
* Implementation of {@link StyleSheetList}.
24+
* Implementation of StyleSheetList.
2525
*
2626
* @author Ronald Brill
2727
*/

0 commit comments

Comments
 (0)