Changeset 97671 in webkit
- Timestamp:
- Oct 17, 2011, 4:41:20 PM (14 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r97670 r97671 1 2011-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 1 15 2011-10-17 Andreas Kling <kling@webkit.org> 2 16 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r97661 r97671 2396 2396 2397 2397 bool antialias = shouldAntialiasLines(paintInfo.context); 2398 LayoutUnit inlineDirectionSize = colInfo->desiredColumnWidth(); 2398 2399 2399 2400 for (unsigned i = 0; i < colCount; i++) { 2400 LayoutRect colRect = columnRectAt(colInfo, i);2401 2402 LayoutUnit inlineDirectionSize = isHorizontalWritingMode() ? colRect.width() : colRect.height();2403 2404 2401 // Move to the next position. 2405 2402 if (style()->isLeftToRightDirection()) { … … 4203 4200 int i; 4204 4201 bool isHorizontal = isHorizontalWritingMode(); 4202 LayoutUnit blockDelta = colInfo->columnHeight(); 4205 4203 for (i = 0; i < colCount; i++) { 4206 LayoutRect colRect = columnRectAt(colInfo, i);4207 LayoutUnit blockDelta = (isHorizontal ? colRect.height() : colRect.width());4208 4204 if (style()->isFlippedBlocksWritingMode()) 4209 4205 currLogicalTopOffset += blockDelta;
Note:
See TracChangeset
for help on using the changeset viewer.