| 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 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc.
All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "core/paint/TableRowPainter.h" | 34 #include "core/paint/TableRowPainter.h" |
| 35 #include "core/style/StyleInheritedData.h" | 35 #include "core/style/StyleInheritedData.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 using namespace HTMLNames; | 39 using namespace HTMLNames; |
| 40 | 40 |
| 41 LayoutTableRow::LayoutTableRow(Element* element) | 41 LayoutTableRow::LayoutTableRow(Element* element) |
| 42 : LayoutBox(element) | 42 : LayoutBox(element) |
| 43 , m_rowIndex(unsetRowIndex) | 43 , m_rowIndex(unsetRowIndex) |
| 44 , m_paginationStrutPropagatedFromCell(0) |
| 44 { | 45 { |
| 45 // init LayoutObject attributes | 46 // init LayoutObject attributes |
| 46 setInline(false); // our object is not Inline | 47 setInline(false); // our object is not Inline |
| 47 } | 48 } |
| 48 | 49 |
| 49 void LayoutTableRow::willBeRemovedFromTree() | 50 void LayoutTableRow::willBeRemovedFromTree() |
| 50 { | 51 { |
| 51 LayoutBox::willBeRemovedFromTree(); | 52 LayoutBox::willBeRemovedFromTree(); |
| 52 | 53 |
| 53 section()->setNeedsCellRecalc(); | 54 section()->setNeedsCellRecalc(); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 bool LayoutTableRow::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRe
ct) const | 259 bool LayoutTableRow::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRe
ct) const |
| 259 { | 260 { |
| 260 // If this object has layer, the area of collapsed borders should be transpa
rent | 261 // If this object has layer, the area of collapsed borders should be transpa
rent |
| 261 // to expose the collapsed borders painted on the underlying layer. | 262 // to expose the collapsed borders painted on the underlying layer. |
| 262 if (hasLayer() && table()->collapseBorders()) | 263 if (hasLayer() && table()->collapseBorders()) |
| 263 return false; | 264 return false; |
| 264 return LayoutBox::backgroundIsKnownToBeOpaqueInRect(localRect); | 265 return LayoutBox::backgroundIsKnownToBeOpaqueInRect(localRect); |
| 265 } | 266 } |
| 266 | 267 |
| 267 } // namespace blink | 268 } // namespace blink |
| OLD | NEW |