Changeset 19011

Show
Ignore:
Timestamp:
01/21/07 09:19:03 (2 years ago)
Author:
weinig
Message:

LayoutTests:

Reviewed by Darin.

  • fast/dom/HTMLSelectElement/options-collection-detached-expected.txt: Added.
  • fast/dom/HTMLSelectElement/options-collection-detached.html: Added.

WebCore:

Reviewed by Darin.

Test: fast/dom/HTMLSelectElement/options-collection-detached.html

  • html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::setRecalcListItems): Reset the options collection info if the <select> is not in the document. For in-document <select>s this happens anyway as a result of the DOM tree version increasing.
Location:
trunk
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r19010 r19011  
     12007-01-21  Mitz Pettel  <mitz@webkit.org> 
     2 
     3        Reviewed by Darin. 
     4 
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=10472 
     6          REGRESSION: "add" method of <select> object does not put the <option> object in the correct position 
     7 
     8        * fast/dom/HTMLSelectElement/options-collection-detached-expected.txt: Added. 
     9        * fast/dom/HTMLSelectElement/options-collection-detached.html: Added. 
     10 
    1112007-01-21  Mitz Pettel  <mitz@webkit.org> 
    212 
  • trunk/WebCore/ChangeLog

    r19010 r19011  
     12007-01-21  Mitz Pettel  <mitz@webkit.org> 
     2 
     3        Reviewed by Darin. 
     4 
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=10472 
     6          REGRESSION: "add" method of <select> object does not put the <option> object in the correct position 
     7 
     8        Test: fast/dom/HTMLSelectElement/options-collection-detached.html 
     9 
     10        * html/HTMLSelectElement.cpp: 
     11        (WebCore::HTMLSelectElement::setRecalcListItems): Reset the options collection 
     12        info if the <select> is not in the document. For in-document <select>s this 
     13        happens anyway as a result of the DOM tree version increasing. 
     14 
    1152007-01-21  Mitz Pettel  <mitz@webkit.org> 
    216 
  • trunk/WebCore/html/HTMLSelectElement.cpp

    r18996 r19011  
    515515            static_cast<RenderListBox*>(renderer())->setOptionsChanged(true); 
    516516    } 
     517    if (!inDocument()) 
     518        m_collectionInfo.reset(); 
    517519    setChanged(); 
    518520}