| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::TableRow); |
| 282 newRow->setStyle(newStyle.release()); | 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 } |
| 292 | 292 |
| (...skipping 27 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 |