Changeset 61629 in webkit
- Timestamp:
- Jun 22, 2010 3:10:10 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61627 r61629 1 2010-06-22 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 <rdar://problem/8119403> REGRESSION (r61548): PLT is almost 1.5% slower, Google page cycler slower 6 https://bugs.webkit.org/show_bug.cgi?id=41012 7 8 * rendering/RenderBlockLineLayout.cpp: 9 (WebCore::RenderBlock::computeHorizontalPositionsForLine): Removed a redundant statement that was 10 left over in the original patch and resulted in double the calls to RenderText::width() here. 11 (WebCore::RenderBlock::findNextLineBreak): Changed the order of evaluating conditions for a 12 potential speedup. 13 1 14 2010-06-22 Darin Adler <darin@apple.com> 2 15 -
trunk/WebCore/rendering/RenderBlockLineLayout.cpp
r61552 r61629 352 352 HashSet<const SimpleFontData*> fallbackFonts; 353 353 GlyphOverflow glyphOverflow; 354 r->m_box->setWidth(rt->width(r->m_start, r->m_stop - r->m_start, totWidth, firstLine, &fallbackFonts, &glyphOverflow));355 354 int hyphenWidth = 0; 356 355 if (static_cast<InlineTextBox*>(r->m_box)->hasHyphen()) { … … 1717 1716 } 1718 1717 } 1719 if (canHyphenate && w + tmpW > width) {1720 tryHyphenating(t, f, lastSpace, pos, w + tmpW - additionalTmpW, width, isFixedPitch, collapseWhiteSpace, lastSpaceWordSpacing, lBreak, nextBreakable, hyphenated);1721 if (hyphenated)1722 goto end;1723 }1724 1718 if (lineWasTooWide || w + tmpW > width) { 1719 if (canHyphenate && w + tmpW > width) { 1720 tryHyphenating(t, f, lastSpace, pos, w + tmpW - additionalTmpW, width, isFixedPitch, collapseWhiteSpace, lastSpaceWordSpacing, lBreak, nextBreakable, hyphenated); 1721 if (hyphenated) 1722 goto end; 1723 } 1725 1724 if (lBreak.obj && shouldPreserveNewline(lBreak.obj) && lBreak.obj->isText() && toRenderText(lBreak.obj)->textLength() && !toRenderText(lBreak.obj)->isWordBreak() && toRenderText(lBreak.obj)->characters()[lBreak.pos] == '\n') { 1726 1725 if (!stoppedIgnoringSpaces && pos > 0) {
Note: See TracChangeset
for help on using the changeset viewer.