Index: sky/engine/core/rendering/RenderParagraph.cpp |
diff --git a/sky/engine/core/rendering/RenderParagraph.cpp b/sky/engine/core/rendering/RenderParagraph.cpp |
index cde5a014399b4afce05935ddf253905c59d74a9d..d77e06d22f6d7bbec0dc68849548daaadba5796f 100644 |
--- a/sky/engine/core/rendering/RenderParagraph.cpp |
+++ b/sky/engine/core/rendering/RenderParagraph.cpp |
@@ -1356,9 +1356,9 @@ void RenderParagraph::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, |
maxLogicalWidth = std::max(minLogicalWidth, maxLogicalWidth); |
} |
-int RenderParagraph::firstLineBoxBaseline() const |
+int RenderParagraph::firstLineBoxBaseline(bool autoBaseline, FontBaseline baselineType) const |
{ |
- return firstLineBox() ? firstLineBox()->logicalTop() + style(true)->fontMetrics().ascent(firstRootBox()->baselineType()) : -1; |
+ return firstLineBox() ? firstLineBox()->logicalTop() + style(true)->fontMetrics().ascent(autoBaseline ? firstRootBox()->baselineType() : baselineType) : -1; |
} |
int RenderParagraph::lastLineBoxBaseline(LineDirectionMode lineDirection) const |