Index: Source/core/rendering/RenderBoxModelObject.cpp |
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp |
index 52e24c03bb01037583c82081dd5eea85cb4f9bb0..be278ebe44cb0df4c778a7750546bd0747834da3 100644 |
--- a/Source/core/rendering/RenderBoxModelObject.cpp |
+++ b/Source/core/rendering/RenderBoxModelObject.cpp |
@@ -2564,7 +2564,7 @@ LayoutRect RenderBoxModelObject::localCaretRectForEmptyElement(LayoutUnit width, |
// constructed and this kludge is not called any more. So only the caret size |
// of an empty :first-line'd block is wrong. I think we can live with that. |
RenderStyle* currentStyle = firstLineStyle(); |
- LayoutUnit height = lineHeight(true, currentStyle->isHorizontalWritingMode() ? HorizontalLine : VerticalLine, PositionOfInteriorLineBoxes); |
+ LayoutUnit height = style()->fontMetrics().height(); |
enum CaretAlignment { alignLeft, alignRight, alignCenter }; |