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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 compareBorderValuesForQSort); | 1086 compareBorderValuesForQSort); |
1087 } | 1087 } |
1088 | 1088 |
1089 void RenderTableCell::paintCollapsedBorders(PaintInfo& paintInfo, const LayoutPo
int& paintOffset) | 1089 void RenderTableCell::paintCollapsedBorders(PaintInfo& paintInfo, const LayoutPo
int& paintOffset) |
1090 { | 1090 { |
1091 ASSERT(paintInfo.phase == PaintPhaseCollapsedTableBorders); | 1091 ASSERT(paintInfo.phase == PaintPhaseCollapsedTableBorders); |
1092 | 1092 |
1093 if (!paintInfo.shouldPaintWithinRoot(this) || style()->visibility() != VISIB
LE) | 1093 if (!paintInfo.shouldPaintWithinRoot(this) || style()->visibility() != VISIB
LE) |
1094 return; | 1094 return; |
1095 | 1095 |
1096 LayoutRect localRepaintRect = paintInfo.rect; | 1096 LayoutRect localRepaintRect = paintInfo.rect(); |
1097 localRepaintRect.inflate(maximalOutlineSize(paintInfo.phase)); | 1097 localRepaintRect.inflate(maximalOutlineSize(paintInfo.phase)); |
1098 | 1098 |
1099 LayoutRect paintRect = LayoutRect(paintOffset + location(), pixelSnappedSize
()); | 1099 LayoutRect paintRect = LayoutRect(paintOffset + location(), pixelSnappedSize
()); |
1100 if (paintRect.y() - table()->outerBorderTop() >= localRepaintRect.maxY()) | 1100 if (paintRect.y() - table()->outerBorderTop() >= localRepaintRect.maxY()) |
1101 return; | 1101 return; |
1102 | 1102 |
1103 if (paintRect.maxY() + table()->outerBorderBottom() <= localRepaintRect.y()) | 1103 if (paintRect.maxY() + table()->outerBorderBottom() <= localRepaintRect.y()) |
1104 return; | 1104 return; |
1105 | 1105 |
1106 GraphicsContext* graphicsContext = paintInfo.context; | 1106 GraphicsContext* graphicsContext = paintInfo.context; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 | 1261 |
1262 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) | 1262 RenderTableCell* RenderTableCell::createAnonymousWithParentRenderer(const Render
Object* parent) |
1263 { | 1263 { |
1264 RenderTableCell* newCell = RenderTableCell::createAnonymous(parent->document
()); | 1264 RenderTableCell* newCell = RenderTableCell::createAnonymous(parent->document
()); |
1265 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); | 1265 RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyleWithDisplay(
parent->style(), TABLE_CELL); |
1266 newCell->setStyle(newStyle.release()); | 1266 newCell->setStyle(newStyle.release()); |
1267 return newCell; | 1267 return newCell; |
1268 } | 1268 } |
1269 | 1269 |
1270 } // namespace WebCore | 1270 } // namespace WebCore |
OLD | NEW |