| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 if (!usesCompositedCellDisplayItemClients()) | 472 if (!usesCompositedCellDisplayItemClients()) |
| 473 return; | 473 return; |
| 474 if (!m_rowBackgroundDisplayItemClient) { | 474 if (!m_rowBackgroundDisplayItemClient) { |
| 475 m_rowBackgroundDisplayItemClient = WTF::wrapUnique( | 475 m_rowBackgroundDisplayItemClient = WTF::wrapUnique( |
| 476 new LayoutTableCell::RowBackgroundDisplayItemClient(*this)); | 476 new LayoutTableCell::RowBackgroundDisplayItemClient(*this)); |
| 477 } | 477 } |
| 478 } | 478 } |
| 479 | 479 |
| 480 void LayoutTableCell::styleDidChange(StyleDifference diff, | 480 void LayoutTableCell::styleDidChange(StyleDifference diff, |
| 481 const ComputedStyle* oldStyle) { | 481 const ComputedStyle* oldStyle) { |
| 482 DCHECK_EQ(style()->display(), EDisplay::TableCell); | 482 DCHECK_EQ(style()->display(), EDisplay::kTableCell); |
| 483 | 483 |
| 484 LayoutBlockFlow::styleDidChange(diff, oldStyle); | 484 LayoutBlockFlow::styleDidChange(diff, oldStyle); |
| 485 setHasBoxDecorationBackground(true); | 485 setHasBoxDecorationBackground(true); |
| 486 | 486 |
| 487 if (parent() && section() && oldStyle && | 487 if (parent() && section() && oldStyle && |
| 488 style()->height() != oldStyle->height()) | 488 style()->height() != oldStyle->height()) |
| 489 section()->rowLogicalHeightChanged(row()); | 489 section()->rowLogicalHeightChanged(row()); |
| 490 | 490 |
| 491 // Our intrinsic padding pushes us down to align with the baseline of other | 491 // Our intrinsic padding pushes us down to align with the baseline of other |
| 492 // cells on the row. If our vertical-align has changed then so will the | 492 // cells on the row. If our vertical-align has changed then so will the |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 layoutObject->setDocumentForAnonymous(document); | 1431 layoutObject->setDocumentForAnonymous(document); |
| 1432 return layoutObject; | 1432 return layoutObject; |
| 1433 } | 1433 } |
| 1434 | 1434 |
| 1435 LayoutTableCell* LayoutTableCell::createAnonymousWithParent( | 1435 LayoutTableCell* LayoutTableCell::createAnonymousWithParent( |
| 1436 const LayoutObject* parent) { | 1436 const LayoutObject* parent) { |
| 1437 LayoutTableCell* newCell = | 1437 LayoutTableCell* newCell = |
| 1438 LayoutTableCell::createAnonymous(&parent->document()); | 1438 LayoutTableCell::createAnonymous(&parent->document()); |
| 1439 RefPtr<ComputedStyle> newStyle = | 1439 RefPtr<ComputedStyle> newStyle = |
| 1440 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), | 1440 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), |
| 1441 EDisplay::TableCell); | 1441 EDisplay::kTableCell); |
| 1442 newCell->setStyle(std::move(newStyle)); | 1442 newCell->setStyle(std::move(newStyle)); |
| 1443 return newCell; | 1443 return newCell; |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect( | 1446 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect( |
| 1447 const LayoutRect& localRect) const { | 1447 const LayoutRect& localRect) const { |
| 1448 // If this object has layer, the area of collapsed borders should be | 1448 // If this object has layer, the area of collapsed borders should be |
| 1449 // transparent to expose the collapsed borders painted on the underlying | 1449 // transparent to expose the collapsed borders painted on the underlying |
| 1450 // layer. | 1450 // layer. |
| 1451 if (hasLayer() && table()->collapseBorders()) | 1451 if (hasLayer() && table()->collapseBorders()) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 } | 1498 } |
| 1499 | 1499 |
| 1500 bool LayoutTableCell::hasLineIfEmpty() const { | 1500 bool LayoutTableCell::hasLineIfEmpty() const { |
| 1501 if (node() && hasEditableStyle(*node())) | 1501 if (node() && hasEditableStyle(*node())) |
| 1502 return true; | 1502 return true; |
| 1503 | 1503 |
| 1504 return LayoutBlock::hasLineIfEmpty(); | 1504 return LayoutBlock::hasLineIfEmpty(); |
| 1505 } | 1505 } |
| 1506 | 1506 |
| 1507 } // namespace blink | 1507 } // namespace blink |
| OLD | NEW |