mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Update externs again.
This commit is contained in:
@@ -756,9 +756,8 @@ Polymer_ElementMixin.finalize = function(){};
|
||||
Polymer_ElementMixin._processStyleText = function(cssText, baseURI){};
|
||||
/**
|
||||
* @param {string} is Tag name (or type extension name) for this element
|
||||
* @param {string=} ext For type extensions, the tag name that was extended
|
||||
*/
|
||||
Polymer_ElementMixin._finalizeTemplate = function(is, ext){};
|
||||
Polymer_ElementMixin._finalizeTemplate = function(is){};
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
|
||||
@@ -406,11 +406,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @param {PolymerElementConstructor} klass Element class
|
||||
* @param {!HTMLTemplateElement} template Template to process
|
||||
* @param {string} is Name of element
|
||||
* @param {string} ext Name of native element
|
||||
* @param {string} baseURI Base URI for element
|
||||
* @private
|
||||
*/
|
||||
function processElementStyles(klass, template, is, ext, baseURI) {
|
||||
function processElementStyles(klass, template, is, baseURI) {
|
||||
const styles = Polymer.StyleGather.stylesFromModuleImports(is).concat(
|
||||
Polymer.StyleGather.stylesFromTemplate(template));
|
||||
let templateStyles = template.content.querySelectorAll('style');
|
||||
@@ -426,7 +425,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
s.textContent = klass._processStyleText(s.textContent, baseURI);
|
||||
}
|
||||
if (window.ShadyCSS) {
|
||||
window.ShadyCSS.prepareTemplate(template, is, ext);
|
||||
window.ShadyCSS.prepareTemplate(template, is);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -626,10 +625,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* style scoping.
|
||||
*
|
||||
* @param {string} is Tag name (or type extension name) for this element
|
||||
* @param {string=} ext For type extensions, the tag name that was extended
|
||||
* @protected
|
||||
*/
|
||||
static _finalizeTemplate(is, ext) {
|
||||
static _finalizeTemplate(is) {
|
||||
/** @const {HTMLTemplateElement} */
|
||||
const template = this.prototype._template;
|
||||
if (template && !template.__polymerFinalized) {
|
||||
@@ -637,7 +635,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
const importPath = this.importPath;
|
||||
const baseURI = importPath ? Polymer.ResolveUrl.resolveUrl(importPath) : '';
|
||||
// e.g. support `include="module-name"`, and ShadyCSS
|
||||
processElementStyles(this, template, is, ext, baseURI);
|
||||
processElementStyles(this, template, is, baseURI);
|
||||
this.prototype._bindTemplate(template);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user