Changeset 21365 in webkit


Ignore:
Timestamp:
May 10, 2007 5:06:44 AM (17 years ago)
Author:
hyatt
Message:

Fix for:

<rdar://problem/5146757> REGRESSION: div that wrapped to screen width in
tiger no longer wraps


http://bugs.webkit.org/show_bug.cgi?id=13654

Reviewed by mitz

fast/text/whitespace/normal-after-nowrap-breaking.html

  • rendering/RenderBlock.cpp: (WebCore::RenderBlock::calcInlinePrefWidths):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r21363 r21365  
     12007-05-10  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for:
     4
     5        <rdar://problem/5146757> REGRESSION: div that wrapped to screen width in
     6        tiger no longer wraps
     7       
     8        http://bugs.webkit.org/show_bug.cgi?id=13654
     9
     10        Reviewed by mitz
     11
     12        fast/text/whitespace/normal-after-nowrap-breaking.html
     13
     14        * rendering/RenderBlock.cpp:
     15        (WebCore::RenderBlock::calcInlinePrefWidths):
     16
    1172007-05-10  David Hyatt  <hyatt@apple.com>
    218
  • trunk/WebCore/rendering/RenderBlock.cpp

    r21363 r21365  
    36333633                                     childMin, childMax, stripFrontSpaces);
    36343634
    3635                 // This text object is insignificant and will not be rendered.  Just
    3636                 // continue.
    3637                 if (!hasBreak && childMax == 0) continue;
     3635                // This text object will not be rendered, but it may still provide a breaking opportunity.
     3636                if (!hasBreak && childMax == 0) {
     3637                    if (autoWrap && (beginWS || endWS)) {
     3638                        m_minPrefWidth = max(inlineMin, m_minPrefWidth);
     3639                        inlineMin = 0;
     3640                    }
     3641                    continue;
     3642                }
    36383643               
    36393644                if (stripFrontSpaces)
Note: See TracChangeset for help on using the changeset viewer.