| 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, 2010, 2013 | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 |
| 8 * Apple Inc. | 8 * Apple Inc. |
| 9 * All rights reserved. | 9 * All rights reserved. |
| 10 * | 10 * |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 void LayoutTableRow::willBeRemovedFromTree() { | 49 void LayoutTableRow::willBeRemovedFromTree() { |
| 50 LayoutTableBoxComponent::willBeRemovedFromTree(); | 50 LayoutTableBoxComponent::willBeRemovedFromTree(); |
| 51 | 51 |
| 52 section()->setNeedsCellRecalc(); | 52 section()->setNeedsCellRecalc(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void LayoutTableRow::styleDidChange(StyleDifference diff, | 55 void LayoutTableRow::styleDidChange(StyleDifference diff, |
| 56 const ComputedStyle* oldStyle) { | 56 const ComputedStyle* oldStyle) { |
| 57 DCHECK_EQ(style()->display(), EDisplay::TableRow); | 57 DCHECK_EQ(style()->display(), EDisplay::kTableRow); |
| 58 | 58 |
| 59 LayoutTableBoxComponent::styleDidChange(diff, oldStyle); | 59 LayoutTableBoxComponent::styleDidChange(diff, oldStyle); |
| 60 propagateStyleToAnonymousChildren(); | 60 propagateStyleToAnonymousChildren(); |
| 61 | 61 |
| 62 if (!oldStyle) | 62 if (!oldStyle) |
| 63 return; | 63 return; |
| 64 | 64 |
| 65 if (section() && style()->logicalHeight() != oldStyle->logicalHeight()) | 65 if (section() && style()->logicalHeight() != oldStyle->logicalHeight()) |
| 66 section()->rowLogicalHeightChanged(this); | 66 section()->rowLogicalHeightChanged(this); |
| 67 | 67 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 LayoutTableRow* layoutObject = new LayoutTableRow(nullptr); | 271 LayoutTableRow* layoutObject = new LayoutTableRow(nullptr); |
| 272 layoutObject->setDocumentForAnonymous(document); | 272 layoutObject->setDocumentForAnonymous(document); |
| 273 return layoutObject; | 273 return layoutObject; |
| 274 } | 274 } |
| 275 | 275 |
| 276 LayoutTableRow* LayoutTableRow::createAnonymousWithParent( | 276 LayoutTableRow* LayoutTableRow::createAnonymousWithParent( |
| 277 const LayoutObject* parent) { | 277 const LayoutObject* parent) { |
| 278 LayoutTableRow* newRow = LayoutTableRow::createAnonymous(&parent->document()); | 278 LayoutTableRow* newRow = LayoutTableRow::createAnonymous(&parent->document()); |
| 279 RefPtr<ComputedStyle> newStyle = | 279 RefPtr<ComputedStyle> newStyle = |
| 280 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), | 280 ComputedStyle::createAnonymousStyleWithDisplay(parent->styleRef(), |
| 281 EDisplay::TableRow); | 281 EDisplay::kTableRow); |
| 282 newRow->setStyle(std::move(newStyle)); | 282 newRow->setStyle(std::move(newStyle)); |
| 283 return newRow; | 283 return newRow; |
| 284 } | 284 } |
| 285 | 285 |
| 286 void LayoutTableRow::computeOverflow() { | 286 void LayoutTableRow::computeOverflow() { |
| 287 clearAllOverflows(); | 287 clearAllOverflows(); |
| 288 addVisualEffectOverflow(); | 288 addVisualEffectOverflow(); |
| 289 for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) | 289 for (LayoutTableCell* cell = firstCell(); cell; cell = cell->nextCell()) |
| 290 addOverflowFromCell(cell); | 290 addOverflowFromCell(cell); |
| 291 } | 291 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 320 // won't fit but we avoid the complexity of that reading until it | 320 // won't fit but we avoid the complexity of that reading until it |
| 321 // is clarified. Tracked by crbug.com/675904 | 321 // is clarified. Tracked by crbug.com/675904 |
| 322 if (rowIndex()) | 322 if (rowIndex()) |
| 323 return false; | 323 return false; |
| 324 LayoutTableSection* header = table()->header(); | 324 LayoutTableSection* header = table()->header(); |
| 325 return header && table()->sectionAbove(section()) == header && | 325 return header && table()->sectionAbove(section()) == header && |
| 326 header->getPaginationBreakability() != AllowAnyBreaks; | 326 header->getPaginationBreakability() != AllowAnyBreaks; |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace blink | 329 } // namespace blink |
| OLD | NEW |