Skip to content
  • adele's avatar
    LayoutTests: · fb924468
    adele authored
            Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=6815
            Calculate correct width for new text fields
    
            * fast/forms/input-appearance-width.html: Added.
            * fast/forms/input-appearance-width-expected.txt: Added.
            * fast/forms/input-appearance-width-expected.png: Added.
            * fast/forms/input-appearance-width-expected.checksum: Added.
            * fast/forms/input-appearance-minWidth.html: Added.
            * fast/forms/input-appearance-minWidth-expected.txt: Added.
            * fast/forms/input-appearance-minWidth-expected.png: Added.
            * fast/forms/input-appearance-minWidth-expected.checksum: Added.
    
    WebCore:
    
            Reviewed by Maciej.
    
            http://bugzilla.opendarwin.org/show_bug.cgi?id=6815
            Calculate correct width for new text fields
    
            Tests:
            fast/forms/input-appearance-width.html
            fast/forms/input-appearance-minWidth.html
    
            * rendering/RenderTextField.cpp:
            (WebCore::RenderTextField::createDivStyle): Remove fixed width for text field.
            (WebCore::RenderTextField::calcMinMaxWidth): Added.  This calls RenderBlock::calcMinMaxWidth and 
             then uses the size attribute to determine what the maxWidth should be.
            * rendering/RenderTextField.h: Added calcMinMaxWidth.
            * rendering/render_theme_mac.h: Added adjustTextFieldStyle.
            * rendering/render_theme_mac.mm: 
            (WebCore::RenderThemeMac::adjustRepaintRect): Remove inflation of rect.  This is no longer necessary.
            (WebCore::RenderThemeMac::paintTextField): ditto.
            (WebCore::RenderThemeMac::setTextFieldCellState): change true to YES.
            (WebCore::RenderThemeMac::adjustTextFieldStyle): Added. This is the temporary home of the code to set the 
             right padding and margins.  When we flip the switch, this will go in html4.css.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    fb924468