| 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. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 LayoutTable::CollapsedBorderValues& border_values) { | 1336 LayoutTable::CollapsedBorderValues& border_values) { |
| 1337 UpdateCollapsedBorderValues(); | 1337 UpdateCollapsedBorderValues(); |
| 1338 | 1338 |
| 1339 // If collapsed borders changed, invalidate the cell's display item client on | 1339 // If collapsed borders changed, invalidate the cell's display item client on |
| 1340 // the table's backing. | 1340 // the table's backing. |
| 1341 // TODO(crbug.com/451090#c5): Need a way to invalidate/repaint the borders | 1341 // TODO(crbug.com/451090#c5): Need a way to invalidate/repaint the borders |
| 1342 // only. | 1342 // only. |
| 1343 if (collapsed_borders_visually_changed_) { | 1343 if (collapsed_borders_visually_changed_) { |
| 1344 ObjectPaintInvalidator(*Table()) | 1344 ObjectPaintInvalidator(*Table()) |
| 1345 .SlowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient( | 1345 .SlowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient( |
| 1346 *this, kPaintInvalidationStyleChange); | 1346 *this, PaintInvalidationReason::kStyle); |
| 1347 collapsed_borders_visually_changed_ = false; | 1347 collapsed_borders_visually_changed_ = false; |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 if (!collapsed_border_values_) | 1350 if (!collapsed_border_values_) |
| 1351 return; | 1351 return; |
| 1352 | 1352 |
| 1353 AddBorderStyle(border_values, collapsed_border_values_->StartBorder()); | 1353 AddBorderStyle(border_values, collapsed_border_values_->StartBorder()); |
| 1354 AddBorderStyle(border_values, collapsed_border_values_->EndBorder()); | 1354 AddBorderStyle(border_values, collapsed_border_values_->EndBorder()); |
| 1355 AddBorderStyle(border_values, collapsed_border_values_->BeforeBorder()); | 1355 AddBorderStyle(border_values, collapsed_border_values_->BeforeBorder()); |
| 1356 AddBorderStyle(border_values, collapsed_border_values_->AfterBorder()); | 1356 AddBorderStyle(border_values, collapsed_border_values_->AfterBorder()); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1483 | 1483 |
| 1484 return LayoutBlock::HasLineIfEmpty(); | 1484 return LayoutBlock::HasLineIfEmpty(); |
| 1485 } | 1485 } |
| 1486 | 1486 |
| 1487 PaintInvalidationReason LayoutTableCell::InvalidatePaint( | 1487 PaintInvalidationReason LayoutTableCell::InvalidatePaint( |
| 1488 const PaintInvalidatorContext& context) const { | 1488 const PaintInvalidatorContext& context) const { |
| 1489 return TableCellPaintInvalidator(*this, context).InvalidatePaint(); | 1489 return TableCellPaintInvalidator(*this, context).InvalidatePaint(); |
| 1490 } | 1490 } |
| 1491 | 1491 |
| 1492 } // namespace blink | 1492 } // namespace blink |
| OLD | NEW |