| OLD | NEW |
| 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 'dart:sky' as sky; | 5 import 'dart:sky' as sky; |
| 6 | 6 |
| 7 import 'box.dart'; | 7 import 'package:sky/painting/text_style.dart'; |
| 8 import 'object.dart'; | 8 import 'package:sky/rendering/box.dart'; |
| 9 import '../painting/text_style.dart'; | 9 import 'package:sky/rendering/object.dart'; |
| 10 | 10 |
| 11 abstract class InlineBase { | 11 abstract class InlineBase { |
| 12 sky.Node _toDOM(sky.Document owner); | 12 sky.Node _toDOM(sky.Document owner); |
| 13 String toString([String prefix = '']); | 13 String toString([String prefix = '']); |
| 14 } | 14 } |
| 15 | 15 |
| 16 class InlineText extends InlineBase { | 16 class InlineText extends InlineBase { |
| 17 InlineText(this.text) { | 17 InlineText(this.text) { |
| 18 assert(text != null); | 18 assert(text != null); |
| 19 } | 19 } |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 // we should probably expose a way to do precise (inter-glpyh) hit testing | 191 // we should probably expose a way to do precise (inter-glpyh) hit testing |
| 192 | 192 |
| 193 String debugDescribeSettings(String prefix) { | 193 String debugDescribeSettings(String prefix) { |
| 194 String result = '${super.debugDescribeSettings(prefix)}'; | 194 String result = '${super.debugDescribeSettings(prefix)}'; |
| 195 result += '${prefix}inline:\n${inline.toString("$prefix ")}\n'; | 195 result += '${prefix}inline:\n${inline.toString("$prefix ")}\n'; |
| 196 return result; | 196 return result; |
| 197 } | 197 } |
| 198 } | 198 } |
| OLD | NEW |