Index: Source/core/rendering/RenderTextControlSingleLine.cpp |
diff --git a/Source/core/rendering/RenderTextControlSingleLine.cpp b/Source/core/rendering/RenderTextControlSingleLine.cpp |
index 04ecfea2fc856c7988d5eee726a5fcac01b1ca30..778405b4dfd1dab430edba0ee15a60c2c5d1577e 100644 |
--- a/Source/core/rendering/RenderTextControlSingleLine.cpp |
+++ b/Source/core/rendering/RenderTextControlSingleLine.cpp |
@@ -181,6 +181,8 @@ void RenderTextControlSingleLine::layout() |
HTMLElement* placeholderElement = inputElement()->placeholderElement(); |
if (RenderBox* placeholderBox = placeholderElement ? placeholderElement->renderBox() : 0) { |
LayoutSize innerTextSize; |
+ LayoutRectRecorder placeholderBoxRecorder(*placeholderBox); |
+ |
if (innerTextRenderer) |
innerTextSize = innerTextRenderer->size(); |
placeholderBox->style()->setWidth(Length(innerTextSize.width() - placeholderBox->borderAndPaddingWidth(), Fixed)); |