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

Side by Side Diff: WebCore/rendering/RenderDataGrid.cpp

Issue 3364013: Merge 67001 - 2010-09-08 Peter Kasting <pkasting@google.com>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 | « WebCore/rendering/RenderDataGrid.h ('k') | WebCore/rendering/RenderLayer.h » ('j') | 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 paintColumnHeader(column, paintInfo, tx, ty); 163 paintColumnHeader(column, paintInfo, tx, ty);
164 } 164 }
165 } 165 }
166 166
167 void RenderDataGrid::paintColumnHeader(DataGridColumn*, PaintInfo&, int, int) 167 void RenderDataGrid::paintColumnHeader(DataGridColumn*, PaintInfo&, int, int)
168 { 168 {
169 // FIXME: Implement. 169 // FIXME: Implement.
170 } 170 }
171 171
172 // Scrolling implementation functions 172 // Scrolling implementation functions
173 int RenderDataGrid::scrollSize(ScrollbarOrientation orientation) const
174 {
175 return ((orientation == VerticallScrollbar) && m_vBar) ? (m_vBar->totalSize( ) - m_vBar->visibleSize()) : 0;
176 }
177
178 void RenderDataGrid::setScrollOffsetFromAnimation(const IntPoint& offset)
179 {
180 if (m_vBar)
181 m_vBar->setValue(offset.y(), Scrollbar::FromScrollAnimator);
182 }
183
173 void RenderDataGrid::valueChanged(Scrollbar*) 184 void RenderDataGrid::valueChanged(Scrollbar*)
174 { 185 {
175 // FIXME: Implement. 186 // FIXME: Implement.
176 } 187 }
177 188
178 void RenderDataGrid::invalidateScrollbarRect(Scrollbar*, const IntRect&) 189 void RenderDataGrid::invalidateScrollbarRect(Scrollbar*, const IntRect&)
179 { 190 {
180 // FIXME: Implement. 191 // FIXME: Implement.
181 } 192 }
182 193
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 252
242 int scrollbarLeft = width() - borderRight() - scrollbar->width(); 253 int scrollbarLeft = width() - borderRight() - scrollbar->width();
243 int scrollbarTop = borderTop(); 254 int scrollbarTop = borderTop();
244 point.move(-scrollbarLeft, -scrollbarTop); 255 point.move(-scrollbarLeft, -scrollbarTop);
245 return point; 256 return point;
246 } 257 }
247 258
248 } 259 }
249 260
250 #endif 261 #endif
OLDNEW
« no previous file with comments | « WebCore/rendering/RenderDataGrid.h ('k') | WebCore/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698