Reviewed by Hyatt and Darin.
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2006 09:35:14 +0000 (09:35 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Jan 2006 09:35:14 +0000 (09:35 +0000)
commitcebcda1207fb59b9a6e9d0f4a625b1e39b2f934b
treef0141fccde16e36e0bc616e2eb90dee66f69540d
parent3658b0e56280f9b0d1c869c1ae38811c56dfbf5a
    Reviewed by Hyatt and Darin.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=6665
        Implement NSView-less version of <input type="text">

        Initial implementation of new and improved text fields.
        This will only be turned on if an input element has khtml-appearance: textfield.

        * WebCore.xcodeproj/project.pbxproj: Added RenderTextField.h and RenderTextField.cpp
        * css/cssvalues.in: Fixed omitted button-bevel value.
          This was causing an off-by-one error when getting khtml-appearance value.
        * khtml/html/HTMLInputElementImpl.cpp: Added checks for khtml-appearance to decide
          when to use RenderTextField instead of RenderLineEdit.
        (DOM::HTMLInputElementImpl::selectionStart):
        (DOM::HTMLInputElementImpl::selectionEnd):
        (DOM::HTMLInputElementImpl::setSelectionStart):
        (DOM::HTMLInputElementImpl::setSelectionEnd):
        (DOM::HTMLInputElementImpl::select):
        (DOM::HTMLInputElementImpl::setSelectionRange):
        (DOM::HTMLInputElementImpl::createRenderer):
        (DOM::HTMLInputElementImpl::defaultEventHandler):
        * khtml/html/HTMLInputElementImpl.h:
        * khtml/html/html_elementimpl.cpp:
        (HTMLElementImpl::isFocusable): Also allow editable elements with no parent to be focusable.
        * khtml/xml/NodeImpl.h:
        (WebCore::NodeImpl::setAttached): Added to set m_attached without having to call attach().
        * rendering/RenderTextField.cpp: Added.
        (khtml:::RenderBlock):
        (khtml::RenderTextField::~RenderTextField):
        (khtml::RenderTextField::addChild):
        (khtml::RenderTextField::removeChild):
        (khtml::RenderTextField::setStyle):
        (khtml::RenderTextField::getDivStyle):
        (khtml::RenderTextField::updateFromElement):
        (khtml::RenderTextField::selectionStart):
        (khtml::RenderTextField::selectionEnd):
        (khtml::RenderTextField::setSelectionStart):
        (khtml::RenderTextField::setSelectionEnd):
        (khtml::RenderTextField::select):
        (khtml::RenderTextField::setSelectionRange):
        * rendering/RenderTextField.h: Added.
        (khtml::RenderTextField::removeLeftoverAnonymousBoxes):
        (khtml::RenderTextField::renderName):
        * rendering/render_container.cpp:
        (RenderContainer::destroy): use renamed destroyLeftoverChildren.
        (RenderContainer::destroyLeftoverChildren): renamed from destroyLeftoverAnonymousChildren.
        * rendering/render_container.h:
        * rendering/render_flow.cpp:
        (RenderFlow::destroy): use renamed destroyLeftoverChildren.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/css/cssvalues.in
WebCore/khtml/html/HTMLInputElementImpl.cpp
WebCore/khtml/html/HTMLInputElementImpl.h
WebCore/khtml/html/html_elementimpl.cpp
WebCore/khtml/xml/NodeImpl.h
WebCore/rendering/RenderTextField.cpp [new file with mode: 0644]
WebCore/rendering/RenderTextField.h [new file with mode: 0644]
WebCore/rendering/render_container.cpp
WebCore/rendering/render_container.h
WebCore/rendering/render_flow.cpp