Changeset 97671 in webkit


Ignore:
Timestamp:
Oct 17, 2011 4:41:20 PM (13 years ago)
Author:
mitz@apple.com
Message:

Remove unnecessary calls to columnRectAt()
https://bugs.webkit.org/show_bug.cgi?id=70283

Reviewed by Darin Adler.

These call sites only needed one of the column dimensions, which are independent of the column
index, and can be retrieved directly from the ColumnInfo.

  • rendering/RenderBlock.cpp:

(WebCore::RenderBlock::paintColumnRules):
(WebCore::RenderBlock::hitTestColumns):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r97670 r97671  
     12011-10-17  Dan Bernstein  <mitz@apple.com>
     2
     3        Remove unnecessary calls to columnRectAt()
     4        https://bugs.webkit.org/show_bug.cgi?id=70283
     5
     6        Reviewed by Darin Adler.
     7
     8        These call sites only needed one of the column dimensions, which are independent of the column
     9        index, and can be retrieved directly from the ColumnInfo.
     10
     11        * rendering/RenderBlock.cpp:
     12        (WebCore::RenderBlock::paintColumnRules):
     13        (WebCore::RenderBlock::hitTestColumns):
     14
    1152011-10-17  Andreas Kling  <kling@webkit.org>
    216
  • trunk/Source/WebCore/rendering/RenderBlock.cpp

    r97661 r97671  
    23962396
    23972397    bool antialias = shouldAntialiasLines(paintInfo.context);
     2398    LayoutUnit inlineDirectionSize = colInfo->desiredColumnWidth();
    23982399
    23992400    for (unsigned i = 0; i < colCount; i++) {
    2400         LayoutRect colRect = columnRectAt(colInfo, i);
    2401 
    2402         LayoutUnit inlineDirectionSize = isHorizontalWritingMode() ? colRect.width() : colRect.height();
    2403        
    24042401        // Move to the next position.
    24052402        if (style()->isLeftToRightDirection()) {
     
    42034200    int i;
    42044201    bool isHorizontal = isHorizontalWritingMode();
     4202    LayoutUnit blockDelta =  colInfo->columnHeight();
    42054203    for (i = 0; i < colCount; i++) {
    4206         LayoutRect colRect = columnRectAt(colInfo, i);
    4207         LayoutUnit blockDelta =  (isHorizontal ? colRect.height() : colRect.width());
    42084204        if (style()->isFlippedBlocksWritingMode())
    42094205            currLogicalTopOffset += blockDelta;
Note: See TracChangeset for help on using the changeset viewer.