Index: sky/engine/core/dom/Element.cpp |
diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp |
index 87247d115f99de7b1a70e7162c48c4e1803320e3..efd0e1cc39237cb3303828820735d863225ce0a8 100644 |
--- a/sky/engine/core/dom/Element.cpp |
+++ b/sky/engine/core/dom/Element.cpp |
@@ -972,6 +972,20 @@ void Element::setMaxContentWidth(double width) |
return box->setMaxPreferredLogicalWidth(width); |
} |
+double Element::alphabeticBaseline() const |
+{ |
+ if (RenderBox* box = renderBox()) |
+ return box->baselinePosition(AlphabeticBaseline, true, HorizontalLine, PositionOfInteriorLineBoxes); |
+ return 0; |
+} |
+ |
+double Element::ideographicBaseline() const |
+{ |
+ if (RenderBox* box = renderBox()) |
+ return box->baselinePosition(IdeographicBaseline, true, HorizontalLine, PositionOfInteriorLineBoxes); |
+ return 0; |
+} |
+ |
void Element::setNeedsLayout() |
{ |
if (RenderBox* box = renderBox()) |