Changeset 61629 in webkit


Ignore:
Timestamp:
Jun 22, 2010 3:10:10 PM (14 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/8119403> REGRESSION (r61548): PLT is almost 1.5% slower, Google page cycler slower
https://bugs.webkit.org/show_bug.cgi?id=41012

Reviewed by Anders Carlsson.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::RenderBlock::computeHorizontalPositionsForLine): Removed a redundant statement that was
left over in the original patch and resulted in double the calls to RenderText::width() here.
(WebCore::RenderBlock::findNextLineBreak): Changed the order of evaluating conditions for a
potential speedup.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61627 r61629  
     12010-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
    1142010-06-22  Darin Adler  <darin@apple.com>
    215
  • trunk/WebCore/rendering/RenderBlockLineLayout.cpp

    r61552 r61629  
    352352            HashSet<const SimpleFontData*> fallbackFonts;
    353353            GlyphOverflow glyphOverflow;
    354             r->m_box->setWidth(rt->width(r->m_start, r->m_stop - r->m_start, totWidth, firstLine, &fallbackFonts, &glyphOverflow));
    355354            int hyphenWidth = 0;
    356355            if (static_cast<InlineTextBox*>(r->m_box)->hasHyphen()) {
     
    17171716                            }
    17181717                        }
    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                         }
    17241718                        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                            }
    17251724                            if (lBreak.obj && shouldPreserveNewline(lBreak.obj) && lBreak.obj->isText() && toRenderText(lBreak.obj)->textLength() && !toRenderText(lBreak.obj)->isWordBreak() && toRenderText(lBreak.obj)->characters()[lBreak.pos] == '\n') {
    17261725                                if (!stoppedIgnoringSpaces && pos > 0) {
Note: See TracChangeset for help on using the changeset viewer.