| 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, 2009, 2013 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 void setOverrideLogicalContentHeightFromRowHeight(LayoutUnit); | 155 void setOverrideLogicalContentHeightFromRowHeight(LayoutUnit); |
| 156 | 156 |
| 157 virtual void scrollbarsChanged(bool horizontalScrollbarChanged, bool vertica
lScrollbarChanged) override; | 157 virtual void scrollbarsChanged(bool horizontalScrollbarChanged, bool vertica
lScrollbarChanged) override; |
| 158 | 158 |
| 159 bool cellWidthChanged() const { return m_cellWidthChanged; } | 159 bool cellWidthChanged() const { return m_cellWidthChanged; } |
| 160 void setCellWidthChanged(bool b = true) { m_cellWidthChanged = b; } | 160 void setCellWidthChanged(bool b = true) { m_cellWidthChanged = b; } |
| 161 | 161 |
| 162 static LayoutTableCell* createAnonymous(Document*); | 162 static LayoutTableCell* createAnonymous(Document*); |
| 163 static LayoutTableCell* createAnonymousWithParentRenderer(const LayoutObject
*); | 163 static LayoutTableCell* createAnonymousWithParentRenderer(const LayoutObject
*); |
| 164 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* pare
nt) const override | 164 virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject* pare
nt) const override |
| 165 { | 165 { |
| 166 return createAnonymousWithParentRenderer(parent); | 166 return createAnonymousWithParentRenderer(parent); |
| 167 } | 167 } |
| 168 | 168 |
| 169 // This function is used to unify which table part's style we use for comput
ing direction and | 169 // This function is used to unify which table part's style we use for comput
ing direction and |
| 170 // writing mode. Writing modes are not allowed on row group and row but dire
ction is. | 170 // writing mode. Writing modes are not allowed on row group and row but dire
ction is. |
| 171 // This means we can safely use the same style in all cases to simplify our
code. | 171 // This means we can safely use the same style in all cases to simplify our
code. |
| 172 // FIXME: Eventually this function should replaced by style() once we suppor
t direction | 172 // FIXME: Eventually this function should replaced by style() once we suppor
t direction |
| 173 // on all table parts and writing-mode on cells. | 173 // on all table parts and writing-mode on cells. |
| 174 const LayoutStyle& styleForCellFlow() const | 174 const LayoutStyle& styleForCellFlow() const |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 304 |
| 305 inline LayoutTableCell* LayoutTableRow::lastCell() const | 305 inline LayoutTableCell* LayoutTableRow::lastCell() const |
| 306 { | 306 { |
| 307 ASSERT(children() == virtualChildren()); | 307 ASSERT(children() == virtualChildren()); |
| 308 return toLayoutTableCell(children()->lastChild()); | 308 return toLayoutTableCell(children()->lastChild()); |
| 309 } | 309 } |
| 310 | 310 |
| 311 } // namespace blink | 311 } // namespace blink |
| 312 | 312 |
| 313 #endif // LayoutTableCell_h | 313 #endif // LayoutTableCell_h |
| OLD | NEW |