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. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 28 matching lines...) Expand all Loading... |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 using namespace HTMLNames; | 41 using namespace HTMLNames; |
42 | 42 |
43 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow { | 43 struct SameSizeAsLayoutTableCell : public LayoutBlockFlow { |
44 unsigned bitfields; | 44 unsigned bitfields; |
45 int paddings[2]; | 45 int paddings[2]; |
46 }; | 46 }; |
47 | 47 |
48 static_assert(sizeof(LayoutTableCell) == sizeof(SameSizeAsLayoutTableCell), "Lay
outTableCell should stay small"); | 48 static_assert(sizeof(LayoutTableCell) == sizeof(SameSizeAsLayoutTableCell), "Lay
outTableCell should stay small"); |
49 static_assert(sizeof(CollapsedBorderValue) == 8, "CollapsedBorderValue should st
ay small"); | 49 static_assert(sizeof(CollapsedBorderValue) - sizeof(Color) <= 8, "CollapsedBorde
rValue should stay small"); |
50 | 50 |
51 LayoutTableCell::LayoutTableCell(Element* element) | 51 LayoutTableCell::LayoutTableCell(Element* element) |
52 : LayoutBlockFlow(element) | 52 : LayoutBlockFlow(element) |
53 , m_column(unsetColumnIndex) | 53 , m_column(unsetColumnIndex) |
54 , m_cellWidthChanged(false) | 54 , m_cellWidthChanged(false) |
55 , m_intrinsicPaddingBefore(0) | 55 , m_intrinsicPaddingBefore(0) |
56 , m_intrinsicPaddingAfter(0) | 56 , m_intrinsicPaddingAfter(0) |
57 { | 57 { |
58 // We only update the flags when notified of DOM changes in colSpanOrRowSpan
Changed() | 58 // We only update the flags when notified of DOM changes in colSpanOrRowSpan
Changed() |
59 // so we need to set their initial values here in case something asks for co
lSpan()/rowSpan() before then. | 59 // so we need to set their initial values here in case something asks for co
lSpan()/rowSpan() before then. |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localR
ect) const | 1014 bool LayoutTableCell::backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localR
ect) const |
1015 { | 1015 { |
1016 // If this object has layer, the area of collapsed borders should be transpa
rent | 1016 // If this object has layer, the area of collapsed borders should be transpa
rent |
1017 // to expose the collapsed borders painted on the underlying layer. | 1017 // to expose the collapsed borders painted on the underlying layer. |
1018 if (hasLayer() && table()->collapseBorders()) | 1018 if (hasLayer() && table()->collapseBorders()) |
1019 return false; | 1019 return false; |
1020 return LayoutBlockFlow::backgroundIsKnownToBeOpaqueInRect(localRect); | 1020 return LayoutBlockFlow::backgroundIsKnownToBeOpaqueInRect(localRect); |
1021 } | 1021 } |
1022 | 1022 |
1023 } // namespace blink | 1023 } // namespace blink |
OLD | NEW |