+2011-10-17 Dan Bernstein <mitz@apple.com>
+
+ 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):
+
2011-10-17 Andreas Kling <kling@webkit.org>
Protect against incorrect Element::fast*Attribute() usage.
LayoutUnit ruleLogicalLeft = style()->isLeftToRightDirection() ? 0 : contentLogicalWidth();
bool antialias = shouldAntialiasLines(paintInfo.context);
+ LayoutUnit inlineDirectionSize = colInfo->desiredColumnWidth();
for (unsigned i = 0; i < colCount; i++) {
- LayoutRect colRect = columnRectAt(colInfo, i);
-
- LayoutUnit inlineDirectionSize = isHorizontalWritingMode() ? colRect.width() : colRect.height();
-
// Move to the next position.
if (style()->isLeftToRightDirection()) {
ruleLogicalLeft += inlineDirectionSize + colGap / 2;
LayoutUnit currLogicalTopOffset = 0;
int i;
bool isHorizontal = isHorizontalWritingMode();
+ LayoutUnit blockDelta = colInfo->columnHeight();
for (i = 0; i < colCount; i++) {
- LayoutRect colRect = columnRectAt(colInfo, i);
- LayoutUnit blockDelta = (isHorizontal ? colRect.height() : colRect.width());
if (style()->isFlippedBlocksWritingMode())
currLogicalTopOffset += blockDelta;
else