Bug 1491639 - rename function IS_TABLE_CELL r=dbaron

rename function IS_TABLE_CELL

Differential Revision: https://phabricator.services.mozilla.com/D5974
This commit is contained in:
Jean-Luc Bonnafoux
2018-09-18 01:29:19 +00:00
parent 0382525e80
commit 3cddd11ff8
7 changed files with 17 additions and 17 deletions

View File

@@ -194,7 +194,7 @@ nsGenericHTMLElement::GetAccessKeyLabel(nsString& aLabel)
}
static bool
IS_TABLE_CELL(LayoutFrameType frameType)
IsTableCell(LayoutFrameType frameType)
{
return LayoutFrameType::TableCell == frameType ||
LayoutFrameType::BCTableCell == frameType;
@@ -205,7 +205,7 @@ IsOffsetParent(nsIFrame* aFrame)
{
LayoutFrameType frameType = aFrame->Type();
if (IS_TABLE_CELL(frameType) || frameType == LayoutFrameType::Table) {
if (IsTableCell(frameType) || frameType == LayoutFrameType::Table) {
// Per the IDL for Element, only td, th, and table are acceptable offsetParents
// apart from body or positioned elements; we need to check the content type as
// well as the frame type so we ignore anonymous tables created by an element