• hyatt's avatar
    Land the new "NSView-less" buttons. With this landing both · 82bdd23f
    hyatt authored
    	<input type=button> and <button> will now look like OS X-style
    	widgets.  Customization of background and border is not yet
    	enabled, but this is still a big improvement over the old
    	AppKit widgets.
    
            Reviewed by mjs
    
            * ForwardingHeaders/qpushbutton.h: Removed.
            * WebCore.xcodeproj/project.pbxproj:
            * khtml/css/cssstyleselector.cpp:
            (khtml::CSSStyleSelector::adjustRenderStyle):
            * khtml/css/cssstyleselector.h:
            (khtml::CSSStyleSelector::paintMetrics):
            * khtml/css/cssvalues.in:
            * khtml/css/html4.css:
            * khtml/html/html_formimpl.cpp:
            (DOM::HTMLButtonElementImpl::createRenderer):
            (DOM::HTMLInputElementImpl::click):
            (DOM::HTMLInputElementImpl::createRenderer):
            * khtml/html/html_formimpl.h:
            (DOM::HTMLInputElementImpl::isTextButton):
            * khtml/rendering/render_button.cpp: Added.
            (khtml::m_inner):
            (khtml::RenderButton::~RenderButton):
            (khtml::RenderButton::addChild):
            (khtml::RenderButton::removeChild):
            (khtml::RenderButton::setStyle):
            (khtml::RenderButton::updateFromElement):
            * khtml/rendering/render_button.h: Added.
            (khtml::RenderButton::removeLeftoverAnonymousBoxes):
            (khtml::RenderButton::renderName):
            * khtml/rendering/render_form.cpp:
            * khtml/rendering/render_form.h:
            (khtml::RenderFileButton::calcReplacedHeight):
            (khtml::RenderFileButton::isEditable):
            * khtml/rendering/render_style.h:
            (khtml::):
            * khtml/rendering/render_theme.cpp:
            (khtml::RenderTheme::adjustStyle):
            (khtml::RenderTheme::paint):
            (khtml::RenderTheme::adjustCheckboxStyle):
            (khtml::RenderTheme::adjustRadioStyle):
            (khtml::RenderTheme::adjustButtonStyle):
            * khtml/rendering/render_theme.h:
            (khtml::RenderTheme::setButtonSize):
            * khtml/rendering/render_theme_mac.h:
            * khtml/rendering/render_theme_mac.mm:
            (khtml::RenderThemeMac::setSizeFromFont):
            (khtml::RenderThemeMac::setFontFromControlSize):
            (khtml::RenderThemeMac::addIntrinsicMargins):
            (khtml::RenderThemeMac::setButtonPaddingFromControlSize):
            (khtml::RenderThemeMac::adjustButtonStyle):
            (khtml::RenderThemeMac::buttonSizes):
            (khtml::RenderThemeMac::buttonMargins):
            (khtml::RenderThemeMac::setButtonSize):
            (khtml::RenderThemeMac::setButtonCellState):
            (khtml::RenderThemeMac::paintButton):
            * kwq/KWQAccObject.mm:
            (-[KWQAccObject actionElement]):
            (-[KWQAccObject role]):
            (-[KWQAccObject title]):
            * kwq/KWQButton.h: Removed.
            * kwq/KWQButton.mm: Removed.
            * kwq/KWQComboBox.mm:
            * kwq/KWQLineEdit.h:
            * kwq/KWQLineEdit.mm:
            * kwq/KWQPushButton.h: Removed.
            * kwq/KWQPushButton.mm: Removed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10888 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    82bdd23f
project.pbxproj 1.01 MB