OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org) |
3 * (C) 1997 Torben Weis (weis@kde.org) | 3 * (C) 1997 Torben Weis (weis@kde.org) |
4 * (C) 1998 Waldo Bastian (bastian@kde.org) | 4 * (C) 1998 Waldo Bastian (bastian@kde.org) |
5 * (C) 1999 Lars Knoll (knoll@kde.org) | 5 * (C) 1999 Lars Knoll (knoll@kde.org) |
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 if (parent()) | 312 if (parent()) |
313 offset -= parentBox()->locationOffset(); | 313 offset -= parentBox()->locationOffset(); |
314 | 314 |
315 return offset; | 315 return offset; |
316 } | 316 } |
317 | 317 |
318 LayoutRect RenderTableCell::clippedOverflowRectForPaintInvalidation(const Render
LayerModelObject* paintInvalidationContainer, const PaintInvalidationState* pain
tInvalidationState) const | 318 LayoutRect RenderTableCell::clippedOverflowRectForPaintInvalidation(const Render
LayerModelObject* paintInvalidationContainer, const PaintInvalidationState* pain
tInvalidationState) const |
319 { | 319 { |
320 // If the table grid is dirty, we cannot get reliable information about adjo
ining cells, | 320 // If the table grid is dirty, we cannot get reliable information about adjo
ining cells, |
321 // so we ignore outside borders. This should not be a problem because it mea
ns that | 321 // so we ignore outside borders. This should not be a problem because it mea
ns that |
322 // the table is going to recalculate the grid, relayout and repaint its curr
ent rect, which | 322 // the table is going to recalculate the grid, relayout and issue a paint in
validation of its current rect, which |
323 // includes any outside borders of this cell. | 323 // includes any outside borders of this cell. |
324 if (!table()->collapseBorders() || table()->needsSectionRecalc()) | 324 if (!table()->collapseBorders() || table()->needsSectionRecalc()) |
325 return RenderBlockFlow::clippedOverflowRectForPaintInvalidation(paintInv
alidationContainer, paintInvalidationState); | 325 return RenderBlockFlow::clippedOverflowRectForPaintInvalidation(paintInv
alidationContainer, paintInvalidationState); |
326 | 326 |
327 bool rtl = !styleForCellFlow()->isLeftToRightDirection(); | 327 bool rtl = !styleForCellFlow()->isLeftToRightDirection(); |
328 int outlineSize = style()->outlineSize(); | 328 int outlineSize = style()->outlineSize(); |
329 int left = std::max(borderHalfLeft(true), outlineSize); | 329 int left = std::max(borderHalfLeft(true), outlineSize); |
330 int right = std::max(borderHalfRight(true), outlineSize); | 330 int right = std::max(borderHalfRight(true), outlineSize); |
331 int top = std::max(borderHalfTop(true), outlineSize); | 331 int top = std::max(borderHalfTop(true), outlineSize); |
332 int bottom = std::max(borderHalfBottom(true), outlineSize); | 332 int bottom = std::max(borderHalfBottom(true), outlineSize); |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 | 1261 |
1262 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) | 1262 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) |
1263 { | 1263 { |
1264 RenderTableCell* newCell = RenderTableCell::createAnonymous(&parent->documen
t()); | 1264 RenderTableCell* newCell = RenderTableCell::createAnonymous(&parent->documen
t()); |
1265 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); | 1265 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); |
1266 newCell->setStyle(newStyle.release()); | 1266 newCell->setStyle(newStyle.release()); |
1267 return newCell; | 1267 return newCell; |
1268 } | 1268 } |
1269 | 1269 |
1270 } // namespace blink | 1270 } // namespace blink |
OLD | NEW |