| 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, 2009, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return style()->isLeftToRightDirection() ? borderStart() : borderEnd(); | 78 return style()->isLeftToRightDirection() ? borderStart() : borderEnd(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 int borderBottom() const | 81 int borderBottom() const |
| 82 { | 82 { |
| 83 if (style()->isHorizontalWritingMode()) | 83 if (style()->isHorizontalWritingMode()) |
| 84 return style()->isFlippedBlocksWritingMode() ? borderBefore() : bord
erAfter(); | 84 return style()->isFlippedBlocksWritingMode() ? borderBefore() : bord
erAfter(); |
| 85 return style()->isLeftToRightDirection() ? borderEnd() : borderStart(); | 85 return style()->isLeftToRightDirection() ? borderEnd() : borderStart(); |
| 86 } | 86 } |
| 87 | 87 |
| 88 Color bgColor() const { return style()->visitedDependentColor(CSSPropertyBac
kgroundColor); } | 88 Color bgColor() const { return resolveColor(CSSPropertyBackgroundColor); } |
| 89 | 89 |
| 90 int outerBorderBefore() const; | 90 int outerBorderBefore() const; |
| 91 int outerBorderAfter() const; | 91 int outerBorderAfter() const; |
| 92 int outerBorderStart() const; | 92 int outerBorderStart() const; |
| 93 int outerBorderEnd() const; | 93 int outerBorderEnd() const; |
| 94 | 94 |
| 95 int outerBorderLeft() const | 95 int outerBorderLeft() const |
| 96 { | 96 { |
| 97 if (style()->isHorizontalWritingMode()) | 97 if (style()->isHorizontalWritingMode()) |
| 98 return style()->isLeftToRightDirection() ? outerBorderStart() : oute
rBorderEnd(); | 98 return style()->isLeftToRightDirection() ? outerBorderStart() : oute
rBorderEnd(); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable()); | 359 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTable()); |
| 360 return static_cast<const RenderTable*>(object); | 360 return static_cast<const RenderTable*>(object); |
| 361 } | 361 } |
| 362 | 362 |
| 363 // This will catch anyone doing an unnecessary cast. | 363 // This will catch anyone doing an unnecessary cast. |
| 364 void toRenderTable(const RenderTable*); | 364 void toRenderTable(const RenderTable*); |
| 365 | 365 |
| 366 } // namespace WebCore | 366 } // namespace WebCore |
| 367 | 367 |
| 368 #endif // RenderTable_h | 368 #endif // RenderTable_h |
| OLD | NEW |