Index: sky/sdk/lib/rendering/paragraph.dart |
diff --git a/sky/sdk/lib/rendering/paragraph.dart b/sky/sdk/lib/rendering/paragraph.dart |
index 600882c40832c7795035d6a8f0b26ae900602fe0..b3afa86be6570e8d772b6afa0306aa93a36ba850 100644 |
--- a/sky/sdk/lib/rendering/paragraph.dart |
+++ b/sky/sdk/lib/rendering/paragraph.dart |
@@ -154,6 +154,16 @@ class RenderParagraph extends RenderBox { |
return _getIntrinsicHeight(constraints); |
} |
+ double getDistanceToActualBaseline(TextBaseline baseline) { |
+ assert(!needsLayout); |
+ _layout(constraints); |
+ sky.Element root = _layoutRoot.rootElement; |
+ switch (baseline) { |
+ case TextBaseline.alphabetic: return root.alphabeticBaseline; |
+ case TextBaseline.ideographic: return root.ideographicBaseline; |
+ } |
+ } |
+ |
void performLayout() { |
_layout(constraints); |
sky.Element root = _layoutRoot.rootElement; |