Changeset 80982 in webkit


Ignore:
Timestamp:
Mar 13, 2011 5:54:59 PM (13 years ago)
Author:
mitz@apple.com
Message:

REGRESSION (r80438): fast/text/hyphenate-character failing in pixel mode
https://bugs.webkit.org/show_bug.cgi?id=56280

Reviewed by Mark Rowe.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::tryHyphenating): Avoid subtracting 1 from an unsigned 0.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r80981 r80982  
     12011-03-13  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Mark Rowe.
     4
     5        REGRESSION (r80438): fast/text/hyphenate-character failing in pixel mode
     6        https://bugs.webkit.org/show_bug.cgi?id=56280
     7
     8        * rendering/RenderBlockLineLayout.cpp:
     9        (WebCore::tryHyphenating): Avoid subtracting 1 from an unsigned 0.
     10
    1112011-03-13  Sam Weinig  <sam@webkit.org>
    212
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r80682 r80982  
    14561456    // into hyphenate-limit-before) unless lastSpace is 0. This is wrong in the rare case of hyphenating
    14571457    // the first word in a text node which has leading whitespace.
    1458     if (prefixLength - (lastSpace ? 1 : 0) < static_cast<unsigned>(minimumPrefixLength))
     1458    if (!prefixLength || prefixLength - (lastSpace ? 1 : 0) < static_cast<unsigned>(minimumPrefixLength))
    14591459        return;
    14601460
Note: See TracChangeset for help on using the changeset viewer.