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