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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 m_hasRowSpan = node() && parseRowSpanFromDOM() != 1; | 94 m_hasRowSpan = node() && parseRowSpanFromDOM() != 1; |
95 } | 95 } |
96 | 96 |
97 void LayoutTableCell::colSpanOrRowSpanChanged() | 97 void LayoutTableCell::colSpanOrRowSpanChanged() |
98 { | 98 { |
99 ASSERT(node()); | 99 ASSERT(node()); |
100 ASSERT(isHTMLTableCellElement(*node())); | 100 ASSERT(isHTMLTableCellElement(*node())); |
101 | 101 |
102 updateColAndRowSpanFlags(); | 102 updateColAndRowSpanFlags(); |
103 | 103 |
104 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(); | 104 setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidation
Reason::AttributeChanged); |
105 if (parent() && section()) | 105 if (parent() && section()) |
106 section()->setNeedsCellRecalc(); | 106 section()->setNeedsCellRecalc(); |
107 } | 107 } |
108 | 108 |
109 Length LayoutTableCell::logicalWidthFromColumns(LayoutTableCol* firstColForThisC
ell, Length widthFromStyle) const | 109 Length LayoutTableCell::logicalWidthFromColumns(LayoutTableCol* firstColForThisC
ell, Length widthFromStyle) const |
110 { | 110 { |
111 ASSERT(firstColForThisCell && firstColForThisCell == table()->colElement(col
())); | 111 ASSERT(firstColForThisCell && firstColForThisCell == table()->colElement(col
())); |
112 LayoutTableCol* tableCol = firstColForThisCell; | 112 LayoutTableCol* tableCol = firstColForThisCell; |
113 | 113 |
114 unsigned colSpanCount = colSpan(); | 114 unsigned colSpanCount = colSpan(); |
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1048 |
1049 LayoutTableCell* LayoutTableCell::createAnonymousWithParentRenderer(const Layout
Object* parent) | 1049 LayoutTableCell* LayoutTableCell::createAnonymousWithParentRenderer(const Layout
Object* parent) |
1050 { | 1050 { |
1051 LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->documen
t()); | 1051 LayoutTableCell* newCell = LayoutTableCell::createAnonymous(&parent->documen
t()); |
1052 RefPtr<LayoutStyle> newStyle = LayoutStyle::createAnonymousStyleWithDisplay(
parent->styleRef(), TABLE_CELL); | 1052 RefPtr<LayoutStyle> newStyle = LayoutStyle::createAnonymousStyleWithDisplay(
parent->styleRef(), TABLE_CELL); |
1053 newCell->setStyle(newStyle.release()); | 1053 newCell->setStyle(newStyle.release()); |
1054 return newCell; | 1054 return newCell; |
1055 } | 1055 } |
1056 | 1056 |
1057 } // namespace blink | 1057 } // namespace blink |
OLD | NEW |