Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: Source/WebCore/rendering/RenderFrameSet.cpp

Issue 12282015: Merge 142539 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/frames/invalid-frameset-expected.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/frames/invalid-frameset-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698