Changeset 17726 in webkit
- Timestamp:
- Nov 11, 2006 5:10:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/rendering/RenderText.cpp
r17725 r17726 599 599 } 600 600 601 inline bool isSpace (UChar c, RenderStyle* style)601 inline bool isSpaceAccordingToStyle(UChar c, RenderStyle* style) 602 602 { 603 603 return c == ' ' || (c == 0xa0 && style->nbspMode() == SPACE); … … 671 671 bool hasBreak = isBreakable(txt, i, len, nextBreakable, breakNBSP); 672 672 int j = i; 673 while (c != '\n' && !isSpace (c, style()) && c != '\t' && c != SOFT_HYPHEN) {673 while (c != '\n' && !isSpaceAccordingToStyle(c, style()) && c != '\t' && c != SOFT_HYPHEN) { 674 674 j++; 675 675 if (j == len) … … 686 686 currMaxWidth += w; 687 687 688 bool isSpace = (j < len) && isSpace (c, style());688 bool isSpace = (j < len) && isSpaceAccordingToStyle(c, style()); 689 689 bool isCollapsibleWhiteSpace = (j < len) && style()->isCollapsibleWhiteSpace(c); 690 690 if (j < len && style()->autoWrap())
Note: See TracChangeset
for help on using the changeset viewer.