summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/RenderTableCell.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/RenderTableCell.h')
-rw-r--r--Source/WebCore/rendering/RenderTableCell.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/Source/WebCore/rendering/RenderTableCell.h b/Source/WebCore/rendering/RenderTableCell.h
index f0cb33e51..713f2c0aa 100644
--- a/Source/WebCore/rendering/RenderTableCell.h
+++ b/Source/WebCore/rendering/RenderTableCell.h
@@ -144,7 +144,7 @@ public:
const BorderValue& borderAdjoiningTableStart() const
{
ASSERT(isFirstOrLastCellInRow());
- if (section()->hasSameDirectionAsTable())
+ if (section()->hasSameDirectionAs(table()))
return style()->borderStart();
return style()->borderEnd();
@@ -153,12 +153,26 @@ public:
const BorderValue& borderAdjoiningTableEnd() const
{
ASSERT(isFirstOrLastCellInRow());
- if (section()->hasSameDirectionAsTable())
+ if (section()->hasSameDirectionAs(table()))
return style()->borderEnd();
return style()->borderStart();
}
+ const BorderValue& borderAdjoiningCellBefore(const RenderTableCell* cell)
+ {
+ ASSERT_UNUSED(cell, table()->cellAfter(cell) == this);
+ // FIXME: https://webkit.org/b/79272 - Add support for mixed directionality at the cell level.
+ return style()->borderStart();
+ }
+
+ const BorderValue& borderAdjoiningCellAfter(const RenderTableCell* cell)
+ {
+ ASSERT_UNUSED(cell, table()->cellBefore(cell) == this);
+ // FIXME: https://webkit.org/b/79272 - Add support for mixed directionality at the cell level.
+ return style()->borderEnd();
+ }
+
#ifndef NDEBUG
bool isFirstOrLastCellInRow() const
{