зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1799348 - [refactor] Migrate NS_STYLE_CELL_SCOPE_* defines r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D161406
This commit is contained in:
Родитель
b345253a76
Коммит
b0c60a603d
|
@ -14,6 +14,10 @@
|
|||
#include "celldata.h"
|
||||
#include "mozilla/dom/HTMLTableCellElementBinding.h"
|
||||
|
||||
namespace {
|
||||
enum class StyleCellScope : uint8_t { Row, Col, Rowgroup, Colgroup };
|
||||
} // namespace
|
||||
|
||||
NS_IMPL_NS_NEW_HTML_ELEMENT(TableCell)
|
||||
|
||||
namespace mozilla::dom {
|
||||
|
@ -100,10 +104,10 @@ void HTMLTableCellElement::GetAlign(DOMString& aValue) {
|
|||
}
|
||||
|
||||
static const nsAttrValue::EnumTable kCellScopeTable[] = {
|
||||
{"row", NS_STYLE_CELL_SCOPE_ROW},
|
||||
{"col", NS_STYLE_CELL_SCOPE_COL},
|
||||
{"rowgroup", NS_STYLE_CELL_SCOPE_ROWGROUP},
|
||||
{"colgroup", NS_STYLE_CELL_SCOPE_COLGROUP},
|
||||
{"row", StyleCellScope::Row},
|
||||
{"col", StyleCellScope::Col},
|
||||
{"rowgroup", StyleCellScope::Rowgroup},
|
||||
{"colgroup", StyleCellScope::Colgroup},
|
||||
{nullptr, 0}};
|
||||
|
||||
void HTMLTableCellElement::GetScope(DOMString& aScope) {
|
||||
|
|
|
@ -558,12 +558,6 @@ enum class StyleEmptyCells : uint8_t {
|
|||
Show,
|
||||
};
|
||||
|
||||
// constants for cell "scope" attribute
|
||||
#define NS_STYLE_CELL_SCOPE_ROW 0
|
||||
#define NS_STYLE_CELL_SCOPE_COL 1
|
||||
#define NS_STYLE_CELL_SCOPE_ROWGROUP 2
|
||||
#define NS_STYLE_CELL_SCOPE_COLGROUP 3
|
||||
|
||||
// See nsStyleUIReset
|
||||
enum class StyleImeMode : uint8_t {
|
||||
Auto,
|
||||
|
|
Загрузка…
Ссылка в новой задаче