mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 20:57:43 -10:00
The HTML group constants in nsElementTable.cpp are only used for nsHTMLElement::IsBlock(). This patch removes them and replaces HTMLElement::mParentBits with a bool, mIsBlock. The patch also inverts the sense of HTMLElement::mLeaf and renames it mIsContainer, to match the sense of IsContainer(). Finally, the patch uses the pre-processor to use '____' instead of 'false' in gHTMLElements. This makes it easier to read. Note that IsBlock() has numerous disagreements with https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements about what constitutes a block element, but I have preserved the existing behaviour.