REGRESSION(r147602): Search text field doesn't render selection when it has some...
[WebKit-https.git] / Source / WebCore / rendering / RenderTextControlSingleLine.cpp
index 0aa0476590b67c4aba57f961f1fb13f824e4bcf1..8ba8ea13b4814cbb429ed706ee5968655952822a 100644 (file)
@@ -255,7 +255,7 @@ void RenderTextControlSingleLine::styleDidChange(StyleDifference diff, const Ren
     }
     RenderObject* innerTextRenderer = innerTextElement()->renderer();
     if (innerTextRenderer && diff == StyleDifferenceLayout)
-        innerTextRenderer->setNeedsLayout(true, MarkOnlyThis);
+        innerTextRenderer->setNeedsLayout(true, MarkContainingBlockChain);
     if (HTMLElement* placeholder = inputElement()->placeholderElement())
         placeholder->setInlineStyleProperty(CSSPropertyTextOverflow, textShouldBeTruncated() ? CSSValueEllipsis : CSSValueClip);
     setHasOverflowClip(false);