Update externs again.

This commit is contained in:
Steven Orvell
2017-10-19 14:57:51 -07:00
parent 8683b27c07
commit 1c5b731ffb
2 changed files with 5 additions and 8 deletions

View File

@@ -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
*/

View File

@@ -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);
}
}