| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/style/StyleInheritedData.h" | 37 #include "core/style/StyleInheritedData.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 using namespace HTMLNames; | 41 using namespace HTMLNames; |
| 42 | 42 |
| 43 LayoutTableRow::LayoutTableRow(Element* element) | 43 LayoutTableRow::LayoutTableRow(Element* element) |
| 44 : LayoutTableBoxComponent(element), m_rowIndex(unsetRowIndex) { | 44 : LayoutTableBoxComponent(element), m_rowIndex(unsetRowIndex) { |
| 45 // init LayoutObject attributes | 45 // init LayoutObject attributes |
| 46 setInline(false); // our object is not Inline | 46 setInline(false); // our object is not Inline |
| 47 m_rareStat.addReason(ReasonLTRAll); |
| 47 } | 48 } |
| 48 | 49 |
| 49 void LayoutTableRow::willBeRemovedFromTree() { | 50 void LayoutTableRow::willBeRemovedFromTree() { |
| 50 LayoutTableBoxComponent::willBeRemovedFromTree(); | 51 LayoutTableBoxComponent::willBeRemovedFromTree(); |
| 51 | 52 |
| 52 section()->setNeedsCellRecalc(); | 53 section()->setNeedsCellRecalc(); |
| 53 } | 54 } |
| 54 | 55 |
| 55 void LayoutTableRow::styleDidChange(StyleDifference diff, | 56 void LayoutTableRow::styleDidChange(StyleDifference diff, |
| 56 const ComputedStyle* oldStyle) { | 57 const ComputedStyle* oldStyle) { |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // won't fit but we avoid the complexity of that reading until it | 321 // won't fit but we avoid the complexity of that reading until it |
| 321 // is clarified. Tracked by crbug.com/675904 | 322 // is clarified. Tracked by crbug.com/675904 |
| 322 if (rowIndex()) | 323 if (rowIndex()) |
| 323 return false; | 324 return false; |
| 324 LayoutTableSection* header = table()->header(); | 325 LayoutTableSection* header = table()->header(); |
| 325 return header && table()->sectionAbove(section()) == header && | 326 return header && table()->sectionAbove(section()) == header && |
| 326 header->getPaginationBreakability() != AllowAnyBreaks; | 327 header->getPaginationBreakability() != AllowAnyBreaks; |
| 327 } | 328 } |
| 328 | 329 |
| 329 } // namespace blink | 330 } // namespace blink |
| OLD | NEW |