| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) | 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) |
| 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 { | 126 { |
| 127 if (paintInfo.phase != PaintPhaseForeground) | 127 if (paintInfo.phase != PaintPhaseForeground) |
| 128 return; | 128 return; |
| 129 | 129 |
| 130 RenderObject* child = firstChild(); | 130 RenderObject* child = firstChild(); |
| 131 if (!child) | 131 if (!child) |
| 132 return; | 132 return; |
| 133 | 133 |
| 134 LayoutPoint adjustedPaintOffset = paintOffset + location(); | 134 LayoutPoint adjustedPaintOffset = paintOffset + location(); |
| 135 | 135 |
| 136 int rows = frameSet()->totalRows(); | 136 size_t rows = m_rows.m_sizes.size(); |
| 137 int cols = frameSet()->totalCols(); | 137 size_t cols = m_cols.m_sizes.size(); |
| 138 LayoutUnit borderThickness = frameSet()->border(); | 138 LayoutUnit borderThickness = frameSet()->border(); |
| 139 | 139 |
| 140 LayoutUnit yPos = 0; | 140 LayoutUnit yPos = 0; |
| 141 for (int r = 0; r < rows; r++) { | 141 for (size_t r = 0; r < rows; r++) { |
| 142 LayoutUnit xPos = 0; | 142 LayoutUnit xPos = 0; |
| 143 for (int c = 0; c < cols; c++) { | 143 for (size_t c = 0; c < cols; c++) { |
| 144 child->paint(paintInfo, adjustedPaintOffset); | 144 child->paint(paintInfo, adjustedPaintOffset); |
| 145 xPos += m_cols.m_sizes[c]; | 145 xPos += m_cols.m_sizes[c]; |
| 146 if (borderThickness && m_cols.m_allowBorder[c + 1]) { | 146 if (borderThickness && m_cols.m_allowBorder[c + 1]) { |
| 147 paintColumnBorder(paintInfo, pixelSnappedIntRect(LayoutRect(adju
stedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, hei
ght()))); | 147 paintColumnBorder(paintInfo, pixelSnappedIntRect(LayoutRect(adju
stedPaintOffset.x() + xPos, adjustedPaintOffset.y() + yPos, borderThickness, hei
ght()))); |
| 148 xPos += borderThickness; | 148 xPos += borderThickness; |
| 149 } | 149 } |
| 150 child = child->nextSibling(); | 150 child = child->nextSibling(); |
| 151 if (!child) | 151 if (!child) |
| 152 return; | 152 return; |
| 153 } | 153 } |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 void RenderFrameSet::GridAxis::reportMemoryUsage(MemoryObjectInfo* memoryObjectI
nfo) const | 827 void RenderFrameSet::GridAxis::reportMemoryUsage(MemoryObjectInfo* memoryObjectI
nfo) const |
| 828 { | 828 { |
| 829 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; | 829 MemoryClassInfo info(memoryObjectInfo, this, PlatformMemoryTypes::Rendering)
; |
| 830 info.addMember(m_sizes, "sizes"); | 830 info.addMember(m_sizes, "sizes"); |
| 831 info.addMember(m_deltas, "deltas"); | 831 info.addMember(m_deltas, "deltas"); |
| 832 info.addMember(m_preventResize, "preventResize"); | 832 info.addMember(m_preventResize, "preventResize"); |
| 833 info.addMember(m_allowBorder, "allowBorder"); | 833 info.addMember(m_allowBorder, "allowBorder"); |
| 834 } | 834 } |
| 835 | 835 |
| 836 } // namespace WebCore | 836 } // namespace WebCore |
| OLD | NEW |