Search in sources :

Example 1 with StyleMedia

use of com.gargoylesoftware.htmlunit.javascript.host.css.StyleMedia in project htmlunit by HtmlUnit.

the class HTMLCollectionFrames method getStyleMedia.

/**
 * Returns the {@code styleMedia} property.
 * @return the {@code styleMedia} property
 */
@JsxGetter({ CHROME, EDGE, IE })
public StyleMedia getStyleMedia() {
    final StyleMedia styleMedia = new StyleMedia();
    styleMedia.setParentScope(this);
    styleMedia.setPrototype(getPrototype(styleMedia.getClass()));
    return styleMedia;
}
Also used : StyleMedia(com.gargoylesoftware.htmlunit.javascript.host.css.StyleMedia) JsxGetter(com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter)

Aggregations

JsxGetter (com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter)1 StyleMedia (com.gargoylesoftware.htmlunit.javascript.host.css.StyleMedia)1