Index: Source/core/rendering/RenderTextControlSingleLine.cpp |
diff --git a/Source/core/rendering/RenderTextControlSingleLine.cpp b/Source/core/rendering/RenderTextControlSingleLine.cpp |
index 45278ad08f7942ae2c6e87cb389b334be633ad42..1ec7946e893e83459ba8fd8c502677596fb5f334 100644 |
--- a/Source/core/rendering/RenderTextControlSingleLine.cpp |
+++ b/Source/core/rendering/RenderTextControlSingleLine.cpp |
@@ -238,7 +238,7 @@ void RenderTextControlSingleLine::styleDidChange(StyleDifference diff, const Ren |
containerRenderer->style()->setWidth(Length()); |
} |
RenderObject* innerTextRenderer = innerTextElement()->renderer(); |
- if (innerTextRenderer && diff == StyleDifferenceLayout) |
+ if (innerTextRenderer && diff.needsFullLayout()) |
innerTextRenderer->setNeedsLayout(); |
if (HTMLElement* placeholder = inputElement()->placeholderElement()) |
placeholder->setInlineStyleProperty(CSSPropertyTextOverflow, textShouldBeTruncated() ? CSSValueEllipsis : CSSValueClip); |