Index: Source/core/rendering/RenderTextControlSingleLine.cpp |
diff --git a/Source/core/rendering/RenderTextControlSingleLine.cpp b/Source/core/rendering/RenderTextControlSingleLine.cpp |
index 30f147851a87f1fbd807fc6b790d5e6beb7b38be..45278ad08f7942ae2c6e87cb389b334be633ad42 100644 |
--- a/Source/core/rendering/RenderTextControlSingleLine.cpp |
+++ b/Source/core/rendering/RenderTextControlSingleLine.cpp |
@@ -165,16 +165,6 @@ void RenderTextControlSingleLine::layout() |
} else |
centerContainerIfNeeded(containerRenderer); |
- // Ignores the paddings for the inner spin button. |
- if (RenderBox* innerSpinBox = innerSpinButtonElement() ? innerSpinButtonElement()->renderBox() : 0) { |
- RenderBox* parentBox = innerSpinBox->parentBox(); |
- if (containerRenderer && !containerRenderer->style()->isLeftToRightDirection()) |
- innerSpinBox->setLogicalLocation(LayoutPoint(-paddingLogicalLeft(), -paddingBefore())); |
- else |
- innerSpinBox->setLogicalLocation(LayoutPoint(parentBox->logicalWidth() - innerSpinBox->logicalWidth() + paddingLogicalRight(), -paddingBefore())); |
- innerSpinBox->setLogicalHeight(logicalHeight() - borderBefore() - borderAfter()); |
- } |
- |
HTMLElement* placeholderElement = inputElement()->placeholderElement(); |
if (RenderBox* placeholderBox = placeholderElement ? placeholderElement->renderBox() : 0) { |
LayoutSize innerTextSize; |