Chromium Code Reviews| Index: pkg/polymer/lib/src/declaration.dart |
| diff --git a/pkg/polymer/lib/src/declaration.dart b/pkg/polymer/lib/src/declaration.dart |
| index d120340471fc2e4e8d0ad4d8db06ea1c0e672a9e..9201767ccb6ce4851db5b0eac330d9cbe88250f3 100644 |
| --- a/pkg/polymer/lib/src/declaration.dart |
| +++ b/pkg/polymer/lib/src/declaration.dart |
| @@ -658,12 +658,16 @@ String _cssTextFromSheet(LinkElement sheet) { |
| var href = sheet.href; |
| if (href == '') href = sheet.attributes["href"]; |
| + // TODO(jmesserly): our build is not doing the right thing for |
| + // link rel=stylesheet, see http://dartbug.com/16648 |
|
Jennifer Messerly
2014/02/08 01:13:29
going to follow up on this bug separately, it was
|
| if (js.context != null && js.context.hasProperty('HTMLImports')) { |
| var jsSheet = new js.JsObject.fromBrowserObject(sheet); |
| var resource = jsSheet['__resource']; |
| if (resource != null) return resource; |
| - _sheetLog.fine('failed to get stylesheet text href="$href"'); |
| - return ''; |
| + // TODO(jmesserly): figure out why HTMLImports is failing to load these. |
| + // Falling back to sync XHR is no good. |
| + // _sheetLog.fine('failed to get stylesheet text href="$href"'); |
| + // return ''; |
| } |
| // TODO(jmesserly): it seems like polymer-js is always polyfilling |
| // HTMLImports, because their code depends on "__resource" to work. |