| 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())
|
|
|