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

Unified Diff: sky/framework/layout.dart

Issue 1139123007: [Effen] remove the last traces of the 'display' property from the effen component library. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: update test Created 5 years, 7 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 | « sky/framework/fn.dart ('k') | sky/tests/framework/basic.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/layout.dart
diff --git a/sky/framework/layout.dart b/sky/framework/layout.dart
index 4e74c8947cd4bd2298bce4b1c6304cf1fe02b5d9..7eb4aae4ae152c94be387417ee0ccb13fbd6a1b6 100644
--- a/sky/framework/layout.dart
+++ b/sky/framework/layout.dart
@@ -392,11 +392,9 @@ class RenderCSSFlex extends RenderCSSContainer {
}
-class RenderCSSText extends RenderCSS {
+class RenderCSSParagraph extends RenderCSSContainer {
- RenderCSSText(debug, String newData) : super(debug) {
- data = newData;
- }
+ RenderCSSParagraph(debug) : super(debug);
static final Style _displayParagraph = new Style('display:paragraph');
@@ -404,6 +402,20 @@ class RenderCSSText extends RenderCSS {
return super.stylesToClasses(styles) + ' ' + _displayParagraph._className;
}
+}
+
+class RenderCSSInline extends RenderCSS {
+
+ RenderCSSInline(debug, String newData) : super(debug) {
+ data = newData;
+ }
+
+ static final Style _displayInline = new Style('display:inline');
+
+ String stylesToClasses(List<Style> styles) {
+ return super.stylesToClasses(styles) + ' ' + _displayInline._className;
+ }
+
sky.Element createSkyElement() {
return sky.document.createElement('div')
..setChild(new sky.Text())
« no previous file with comments | « sky/framework/fn.dart ('k') | sky/tests/framework/basic.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698