Bug 1549267 Part 2 - Improve comments in LayoutConstants.h. r=mats

Differential Revision: https://phabricator.services.mozilla.com/D31697

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ting-Yu Lin 2019-06-06 00:04:19 +00:00
Родитель 3a4933eb98
Коммит ed3d08542c
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -13,11 +13,14 @@
/**
* Constant used to indicate an unconstrained size.
*
* NOTE: The constants defined in this file are semantically used as symbolic
* values, so user should not depend on the underlying numeric values. If
* new specific use cases arise, define a new constant here.
*/
#define NS_UNCONSTRAINEDSIZE NS_MAXSIZE
// NOTE: There are assumptions all over that these have the same value,
// namely NS_UNCONSTRAINEDSIZE.
// NS_AUTOOFFSET is assumed to have the same value as NS_UNCONSTRAINEDSIZE.
#define NS_AUTOOFFSET NS_UNCONSTRAINEDSIZE
// +1 is to avoid clamped huge margin values being processed as auto margins