| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 220 } |
| 221 | 221 |
| 222 void LayoutTableRow::imageChanged(WrappedImagePtr, const IntRect*) | 222 void LayoutTableRow::imageChanged(WrappedImagePtr, const IntRect*) |
| 223 { | 223 { |
| 224 // FIXME: Examine cells and issue paint invalidations of only the rect the i
mage paints in. | 224 // FIXME: Examine cells and issue paint invalidations of only the rect the i
mage paints in. |
| 225 setShouldDoFullPaintInvalidation(); | 225 setShouldDoFullPaintInvalidation(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 LayoutTableRow* LayoutTableRow::createAnonymous(Document* document) | 228 LayoutTableRow* LayoutTableRow::createAnonymous(Document* document) |
| 229 { | 229 { |
| 230 LayoutTableRow* layoutObject = new LayoutTableRow(0); | 230 LayoutTableRow* layoutObject = new LayoutTableRow(nullptr); |
| 231 layoutObject->setDocumentForAnonymous(document); | 231 layoutObject->setDocumentForAnonymous(document); |
| 232 return layoutObject; | 232 return layoutObject; |
| 233 } | 233 } |
| 234 | 234 |
| 235 LayoutTableRow* LayoutTableRow::createAnonymousWithParent(const LayoutObject* pa
rent) | 235 LayoutTableRow* LayoutTableRow::createAnonymousWithParent(const LayoutObject* pa
rent) |
| 236 { | 236 { |
| 237 LayoutTableRow* newRow = LayoutTableRow::createAnonymous(&parent->document()
); | 237 LayoutTableRow* newRow = LayoutTableRow::createAnonymous(&parent->document()
); |
| 238 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisp
lay(parent->styleRef(), TABLE_ROW); | 238 RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisp
lay(parent->styleRef(), TABLE_ROW); |
| 239 newRow->setStyle(newStyle.release()); | 239 newRow->setStyle(newStyle.release()); |
| 240 return newRow; | 240 return newRow; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 252 // The cell and the row share the section's coordinate system. However | 252 // The cell and the row share the section's coordinate system. However |
| 253 // the visual overflow should be determined in the coordinate system of | 253 // the visual overflow should be determined in the coordinate system of |
| 254 // the row, that's why we shift it below. | 254 // the row, that's why we shift it below. |
| 255 LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location(
).y(); | 255 LayoutUnit cellOffsetLogicalTopDifference = cell->location().y() - location(
).y(); |
| 256 cellVisualOverflowRect.move(0, cellOffsetLogicalTopDifference); | 256 cellVisualOverflowRect.move(0, cellOffsetLogicalTopDifference); |
| 257 | 257 |
| 258 addVisualOverflow(cellVisualOverflowRect); | 258 addVisualOverflow(cellVisualOverflowRect); |
| 259 } | 259 } |
| 260 | 260 |
| 261 } // namespace blink | 261 } // namespace blink |
| OLD | NEW |