gecko-dev/layout/style/ServoPropPrefList.h
Nazım Can Altınova 1112f60fcc Bug 1344314 - stylo: Add an aliasid field to CSS_PROP_ALIAS macro and include them to bindings r=manishearth
This field will be needed for servo side alias pref handling on the
next patch.

MozReview-Commit-ID: LyH2UwZEvMy

--HG--
extra : rebase_source : f3f921581a0cdcc9c63520b528bd0f1e12568958
2017-08-12 14:37:19 -07:00

33 lines
1.2 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_ServoPropPrefList_h
#define mozilla_ServoPropPrefList_h
namespace mozilla {
#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, \
stylestruct_, stylestructoffset_, animtype_) \
const bool SERVO_PREF_ENABLED_##id_ = !(sizeof(pref_) == 1);
#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) \
const bool SERVO_PREF_ENABLED_##id_ = !(sizeof(pref_) == 1);
#define CSS_PROP_LIST_INCLUDE_LOGICAL
#include "nsCSSPropList.h"
#undef CSS_PROP_LIST_INCLUDE_LOGICAL
#undef CSS_PROP
#undef CSS_PROP_SHORTHAND
#define CSS_PROP_ALIAS(aliasname_, aliasid_, id_, method_, pref_) \
const bool SERVO_PREF_ENABLED_##aliasid_ = !(sizeof(pref_) == 1);
#define CSS_PROP_ALIAS_LIST_INCLUDE_LOGICAL
#include "nsCSSPropAliasList.h"
#undef CSS_PROP_ALIAS_LIST_INCLUDE_LOGICAL
#undef CSS_PROP_ALIAS
}
#endif // mozilla_ServoPropPrefList_h