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

Side by Side Diff: sky/framework/editing/editable_text.dart

Issue 1061163002: Remove all uses of display:block and display:inline-block. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: update one more usage Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import '../fn.dart'; 5 import '../fn.dart';
6 import '../theme/colors.dart'; 6 import '../theme/colors.dart';
7 import 'dart:async'; 7 import 'dart:async';
8 import 'editable_string.dart'; 8 import 'editable_string.dart';
9 9
10 class EditableText extends Component { 10 class EditableText extends Component {
11 static final Style _style = new Style(''' 11 static final Style _style = new Style('''
12 display: inline;''' 12 display: inline;'''
13 ); 13 );
14 14
15 static final Style _cusorStyle = new Style(''' 15 static final Style _cusorStyle = new Style('''
16 display: inline-block; 16 display: inline-flex;
17 width: 2px; 17 width: 2px;
18 height: 1.2em; 18 height: 1.2em;
19 vertical-align: top; 19 vertical-align: top;
20 background-color: ${Blue[500]};''' 20 background-color: ${Blue[500]};'''
21 ); 21 );
22 22
23 static final Style _composingStyle = new Style(''' 23 static final Style _composingStyle = new Style('''
24 display: inline; 24 display: inline;
25 text-decoration: underline;''' 25 text-decoration: underline;'''
26 ); 26 );
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 if (_showCursor) 88 if (_showCursor)
89 children.add(new Container(key: 'cursor', style: _cusorStyle)); 89 children.add(new Container(key: 'cursor', style: _cusorStyle));
90 90
91 return new Container( 91 return new Container(
92 style: _style, 92 style: _style,
93 children: children 93 children: children
94 ); 94 );
95 } 95 }
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698