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

Unified Diff: sky/specs/style.md

Issue 805293004: Specs: Allow for anonymous properties (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/style.md
diff --git a/sky/specs/style.md b/sky/specs/style.md
index 5770a47e6532034b27096deffb4ced9a358d46f0..43b8cb445f181ea7044d4961f749839e7b63ad65 100644
--- a/sky/specs/style.md
+++ b/sky/specs/style.md
@@ -360,8 +360,8 @@ class ObjectStyleValue : AbstractOpaqueStyleValue {
}
dictionary PropertySettings {
- String name;
- StyleGrammar grammar;
+ String? name = null; // null if the property can't be set from a <style> block
+ StyleGrammar? grammar = null; // msut be non-null if name is non-null; must be null otherwise
Boolean inherited = false;
any initialValue = null;
Boolean needsManager = false;
@@ -372,6 +372,8 @@ dictionary PropertySettings {
}
typedef PropertyHandle Integer;
PropertyHandle registerProperty(PropertySettings propertySettings);
+ // registers a property with the given settings, and returns an integer >= 0
+ // that can be used to refer to this property
// sky:core exports a bunch of style grammars so that people can extend them
attribute StyleGrammar PositiveLengthOrInfinityStyleGrammar; // resolves to LengthStyleValue
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698