Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: pkg/polymer/lib/src/build/common.dart

Issue 589743002: warn if inlining the same css file more than once (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: generate messages.html, update pubspec/changelog for release Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/lib/src/build/generated/messages.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/common.dart
diff --git a/pkg/polymer/lib/src/build/common.dart b/pkg/polymer/lib/src/build/common.dart
index 8ef384c70b70341c65f3dd73383e98c659c250bb..4d809f58177fac86205e83f76af5b5e0b4897756 100644
--- a/pkg/polymer/lib/src/build/common.dart
+++ b/pkg/polymer/lib/src/build/common.dart
@@ -131,6 +131,13 @@ class TransformOptions {
var globalDefault = inlineStylesheets['default'];
return (globalDefault != null) ? globalDefault : true;
}
+
+ // Whether a stylesheet with [id] has an overriden inlining setting.
+ bool stylesheetInliningIsOverridden(AssetId id) {
+ return inlineStylesheets != null &&
+ (inlineStylesheets.containsKey(id.toString())
+ || inlineStylesheets.containsKey(id.path));
+ }
}
/// Mixin for polymer transformers.
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/lib/src/build/generated/messages.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698