Commit 19115c8b authored by hyatt's avatar hyatt

Fix for bug 9934, smaller line heights should not be allowed on

        text fields.

        Reviewed by darin

        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::createInnerTextStyle):



git-svn-id: svn://svn.chromium.org/blink/trunk@18816 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 16fbf381
2007-01-12 David Hyatt <hyatt@apple.com>
Fix for bug 9934, smaller line heights should not be allowed on
text fields.
Reviewed by darin
* rendering/RenderTextControl.cpp:
(WebCore::RenderTextControl::createInnerTextStyle):
2007-01-12 Mitz Pettel <mitz@webkit.org>
Reviewed by Hyatt.
......
......@@ -149,6 +149,10 @@ RenderStyle* RenderTextControl::createInnerTextStyle(RenderStyle* startStyle)
textBlockStyle->setWhiteSpace(PRE);
textBlockStyle->setOverflowX(OHIDDEN);
textBlockStyle->setOverflowY(OHIDDEN);
// Do not allow line-height to be smaller than our default.
if (textBlockStyle->font().lineSpacing() > lineHeight(true, true))
textBlockStyle->setLineHeight(Length(-100, Percent);
}
if (!m_multiLine) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment