use of com.gargoylesoftware.htmlunit.javascript.host.dom.MediaList in project htmlunit by HtmlUnit.
the class CSSMediaRule method getMedia.
/**
* Returns the media types that the imported CSS style sheet applies to.
* @return the media types that the imported CSS style sheet applies to
*/
@JsxGetter
public MediaList getMedia() {
if (media_ == null) {
final CSSStyleSheet parent = getParentStyleSheet();
final MediaListImpl ml = getMediaRule().getMediaList();
media_ = new MediaList(parent, ml);
}
return media_;
}
use of com.gargoylesoftware.htmlunit.javascript.host.dom.MediaList in project htmlunit by HtmlUnit.
the class CSSImportRule method getMedia.
/**
* Returns the media types that the imported CSS style sheet applies to.
* @return the media types that the imported CSS style sheet applies to
*/
@JsxGetter
public MediaList getMedia() {
if (media_ == null) {
final CSSStyleSheet parent = getParentStyleSheet();
final MediaListImpl ml = getImportRule().getMedia();
media_ = new MediaList(parent, ml);
}
return media_;
}
Aggregations