| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |