| 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 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 LayoutUnit newBeforePadding = (totalHeight - heightWithoutIntrinsicPaddi
ng) / 2; | 1244 LayoutUnit newBeforePadding = (totalHeight - heightWithoutIntrinsicPaddi
ng) / 2; |
| 1245 LayoutUnit newAfterPadding = totalHeight - heightWithoutIntrinsicPadding
- newBeforePadding; | 1245 LayoutUnit newAfterPadding = totalHeight - heightWithoutIntrinsicPadding
- newBeforePadding; |
| 1246 setIntrinsicPaddingBefore(newBeforePadding); | 1246 setIntrinsicPaddingBefore(newBeforePadding); |
| 1247 setIntrinsicPaddingAfter(newAfterPadding); | 1247 setIntrinsicPaddingAfter(newAfterPadding); |
| 1248 } else | 1248 } else |
| 1249 setIntrinsicPaddingAfter(intrinsicPaddingAfter() - scrollbarHeight); | 1249 setIntrinsicPaddingAfter(intrinsicPaddingAfter() - scrollbarHeight); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 RenderTableCell* RenderTableCell::createAnonymous(Document* document) | 1252 RenderTableCell* RenderTableCell::createAnonymous(Document* document) |
| 1253 { | 1253 { |
| 1254 RenderTableCell* renderer = new (document->renderArena()) RenderTableCell(0)
; | 1254 RenderTableCell* renderer = new RenderTableCell(0); |
| 1255 renderer->setDocumentForAnonymous(document); | 1255 renderer->setDocumentForAnonymous(document); |
| 1256 return renderer; | 1256 return renderer; |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) | 1259 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) |
| 1260 { | 1260 { |
| 1261 RenderTableCell* newCell = RenderTableCell::createAnonymous(parent->document
()); | 1261 RenderTableCell* newCell = RenderTableCell::createAnonymous(parent->document
()); |
| 1262 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); | 1262 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); |
| 1263 newCell->setStyle(newStyle.release()); | 1263 newCell->setStyle(newStyle.release()); |
| 1264 return newCell; | 1264 return newCell; |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 } // namespace WebCore | 1267 } // namespace WebCore |
| OLD | NEW |