parent
749a75812c
commit
23786aaa92
|
@ -188,8 +188,8 @@ class BrowserDomAdapter extends DomAdapter {
|
||||||
Node importIntoDoc(Node node) {
|
Node importIntoDoc(Node node) {
|
||||||
return document.importNode(node, true);
|
return document.importNode(node, true);
|
||||||
}
|
}
|
||||||
isPageRule(CssRule rule) => rule is CssPageRule;
|
bool isPageRule(CssRule rule) => rule is CssPageRule;
|
||||||
isStyleRule(CssRule rule) => rule is CssStyleRule;
|
bool isStyleRule(CssRule rule) => rule is CssStyleRule;
|
||||||
isMediaRule(CssRule rule) => rule is CssMediaRule;
|
bool isMediaRule(CssRule rule) => rule is CssMediaRule;
|
||||||
isKeyframesRule(CssRule rule) => rule is CssKeyframesRule;
|
bool isKeyframesRule(CssRule rule) => rule is CssKeyframesRule;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ export class BrowserDomAdapter extends DomAdapter {
|
||||||
return _attrToPropMap;
|
return _attrToPropMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
query(selector) {
|
query(selector:string) {
|
||||||
return document.querySelector(selector);
|
return document.querySelector(selector);
|
||||||
}
|
}
|
||||||
querySelector(el, selector:string):Node {
|
querySelector(el, selector:string):Node {
|
||||||
|
@ -246,16 +246,16 @@ export class BrowserDomAdapter extends DomAdapter {
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
isPageRule(rule) {
|
isPageRule(rule): boolean {
|
||||||
return rule.type === CSSRule.PAGE_RULE;
|
return rule.type === CSSRule.PAGE_RULE;
|
||||||
}
|
}
|
||||||
isStyleRule(rule) {
|
isStyleRule(rule): boolean {
|
||||||
return rule.type === CSSRule.STYLE_RULE;
|
return rule.type === CSSRule.STYLE_RULE;
|
||||||
}
|
}
|
||||||
isMediaRule(rule) {
|
isMediaRule(rule): boolean {
|
||||||
return rule.type === CSSRule.MEDIA_RULE;
|
return rule.type === CSSRule.MEDIA_RULE;
|
||||||
}
|
}
|
||||||
isKeyframesRule(rule) {
|
isKeyframesRule(rule): boolean {
|
||||||
return rule.type === CSSRule.KEYFRAMES_RULE;
|
return rule.type === CSSRule.KEYFRAMES_RULE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ export class DomAdapter {
|
||||||
parse(templateHtml:string) {
|
parse(templateHtml:string) {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
query(selector) {
|
query(selector:string) {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
querySelector(el, selector:string) {
|
querySelector(el, selector:string) {
|
||||||
|
@ -222,16 +222,16 @@ export class DomAdapter {
|
||||||
importIntoDoc(node) {
|
importIntoDoc(node) {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
isPageRule(rule) {
|
isPageRule(rule): boolean {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
isStyleRule(rule) {
|
isStyleRule(rule): boolean {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
isMediaRule(rule) {
|
isMediaRule(rule): boolean {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
isKeyframesRule(rule) {
|
isKeyframesRule(rule): boolean {
|
||||||
throw _abstract();
|
throw _abstract();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,16 +214,16 @@ class Html5LibDomAdapter implements DomAdapter {
|
||||||
importIntoDoc(node) {
|
importIntoDoc(node) {
|
||||||
throw 'not implemented';
|
throw 'not implemented';
|
||||||
}
|
}
|
||||||
isPageRule(rule) {
|
bool isPageRule(rule) {
|
||||||
throw 'not implemented';
|
throw 'not implemented';
|
||||||
}
|
}
|
||||||
isStyleRule(rule) {
|
bool isStyleRule(rule) {
|
||||||
throw 'not implemented';
|
throw 'not implemented';
|
||||||
}
|
}
|
||||||
isMediaRule(rule) {
|
bool isMediaRule(rule) {
|
||||||
throw 'not implemented';
|
throw 'not implemented';
|
||||||
}
|
}
|
||||||
isKeyframesRule(rule) {
|
bool isKeyframesRule(rule) {
|
||||||
throw 'not implemented';
|
throw 'not implemented';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue