Skip to content
  • keishi@webkit.org's avatar
    [chromium] Add WebKit API to access inner text value of input element · 39a4df32
    keishi@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=85353
    
    Reviewed by Kent Tamura.
    
    .:
    
    * Source/autotools/symbols.filter: Added HTMLInputElement::setEditingValue
    
    Source/WebCore:
    
    Test: fast/forms/editing-value.html
    
    We need this to implement the datalist UI for  <input type=email multiple>.
    HTMLInputElement.value gives you the sanitized value so the whitespace between values are trimmed.
    We need to append the selected suggestion to the end without modifying the rest of the text.
    
    * WebCore.exp.in: Added HTMLInputElement::setEditingValue
    * html/HTMLInputElement.cpp:
    (WebCore::HTMLInputElement::setEditingValue):
    (WebCore):
    * html/HTMLInputElement.h:
    (HTMLInputElement):
    * testing/Internals.cpp:
    (WebCore::Internals::setEditingValue):
    (WebCore):
    * testing/Internals.h:
    (Internals):
    * testing/Internals.idl:
    
    Source/WebKit/chromium:
    
    * public/WebInputElement.h:
    (WebInputElement):
    * src/WebInputElement.cpp:
    (WebKit::WebInputElement::editingValue):
    (WebKit):
    (WebKit::WebInputElement::setEditingValue):
    
    Source/WebKit2:
    
    * win/WebKit2.def: Added HTMLInputElement::setEditingValue
    * win/WebKit2CFLite.def: Added HTMLInputElement::setEditingValue
    
    LayoutTests:
    
    * fast/forms/editing-value-expected.txt: Added.
    * fast/forms/editing-value.html: Added. Tests that setting the editing value takes care of the style and placeholder, and that it fires an input event.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    39a4df32