Changeset 23737 in webkit


Ignore:
Timestamp:
Jun 22, 2007 12:00:51 AM (17 years ago)
Author:
bdash
Message:

2007-06-21 Mark Rowe <mrowe@apple.com>

Reviewed by Darin.

Fix for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading

  • platform/StringImpl.cpp: (WebCore::StringImpl::toLengthArray): Simplify whitespace before checking for an empty string. This avoids returning a length of zero when the string is collapsed to empty by whitespace simplification.

2007-06-21 Mark Rowe <mrowe@apple.com>

Reviewed by Darin.

Test for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading

  • fast/frames/frame-set-whitespace-attributes-expected.txt: Added.
  • fast/frames/frame-set-whitespace-attributes.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r23728 r23737  
     12007-06-21  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Darin.
     4
     5        Test for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading
     6
     7        * fast/frames/frame-set-whitespace-attributes-expected.txt: Added.
     8        * fast/frames/frame-set-whitespace-attributes.html: Added.
     9
    1102007-06-21  Geoffrey Garen  <ggaren@apple.com>
    211
  • trunk/WebCore/ChangeLog

    r23736 r23737  
     12007-06-21  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Darin.
     4
     5        Fix for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading
     6
     7        * platform/StringImpl.cpp:
     8        (WebCore::StringImpl::toLengthArray): Simplify whitespace before checking for an empty string.  This avoids returning
     9        a length of zero when the string is collapsed to empty by whitespace simplification.
     10
    1112007-06-21  Dave Hyatt  <hyatt@apple.com>
    212
  • trunk/WebCore/platform/StringImpl.cpp

    r20900 r23737  
    354354Length* StringImpl::toLengthArray(int& len) const
    355355{
    356     if (!length()) {
     356    DeprecatedString str(reinterpret_cast<const DeprecatedChar*>(m_data), m_length);
     357    str = str.simplifyWhiteSpace();
     358    if (!str.length()) {
    357359        len = 1;
    358360        return 0;
    359361    }
    360     DeprecatedString str(reinterpret_cast<const DeprecatedChar*>(m_data), m_length);
    361     str = str.simplifyWhiteSpace();
    362362
    363363    len = str.contains(',') + 1;
Note: See TracChangeset for help on using the changeset viewer.