Changeset 23565 in webkit


Ignore:
Timestamp:
Jun 18, 2007 9:55:20 AM (17 years ago)
Author:
bdash
Message:

2007-06-18 Mitz Pettel <mitz@webkit.org>

Reviewed by Adele.

Test: fast/forms/input-zero-height-focus.html

  • rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::setSelectionRange): Avoid setting the selection in a zero-height text control.

2007-06-18 Mitz Pettel <mitz@webkit.org>

Reviewed by Adele.

  • fast/forms/input-zero-height-focus-expected.txt: Added.
  • fast/forms/input-zero-height-focus.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r23557 r23565  
     12007-06-18  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Adele.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=13413
     6          Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets
     7
     8        * fast/forms/input-zero-height-focus-expected.txt: Added.
     9        * fast/forms/input-zero-height-focus.html: Added.
     10
    1112007-06-15  Sam Weinig  <sam@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r23564 r23565  
     12007-06-18  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Adele.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=13413
     6          Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets
     7
     8        Test: fast/forms/input-zero-height-focus.html
     9
     10        * rendering/RenderTextControl.cpp:
     11        (WebCore::RenderTextControl::setSelectionRange): Avoid setting the
     12        selection in a zero-height text control.
     13
    1142007-06-18  Alp Toker  <alp.toker@collabora.co.uk>
    215
  • trunk/WebCore/rendering/RenderTextControl.cpp

    r22024 r23565  
    422422    document()->updateLayout();
    423423
    424     if (style()->visibility() == HIDDEN) {
     424    if (style()->visibility() == HIDDEN || !m_innerText || !m_innerText->renderer() || !m_innerText->renderer()->height()) {
    425425        if (m_multiLine)
    426426            static_cast<HTMLTextAreaElement*>(node())->cacheSelection(start, end);
Note: See TracChangeset for help on using the changeset viewer.