Commit Graph

8 Commits

Author SHA1 Message Date
Nicholas Nethercote
6fabd55805 Bug 1400777 (part 5) - Clean up nsElementTable.{cpp,h}. r=mrbkap.
This patch makes some style fixes and other minor improvements.
2017-09-20 08:32:51 +10:00
Nicholas Nethercote
76aafce23b Bug 1400777 (part 4) - Split nsHTMLElement. r=mrbkap.
This patch splits out most of nsHTMLElement into a new type HTMLElement within
nsElementTable.cpp. Only the static methods IsContainer() and IsBlock() need to
remain exposed via nsHTMLElement. The patch moves TestBits() into
nsElementTable.cpp as well.
2017-09-19 11:11:24 +10:00
Nicholas Nethercote
174f2ee505 Bug 1400777 (part 3) - De-expose gHTMLElements[]. r=mrbkap. 2017-09-19 11:09:30 +10:00
Nicholas Nethercote
013af55153 Bug 1400777 (part 2) - De-expose HTML group constants[]. r=mrbkap.
The patch also removes some low-value comments.
2017-09-19 11:08:39 +10:00
Nicholas Nethercote
7959e1d513 Bug 1400777 (part 1) - Remove eHTMLTags. r=mrbkap.
It's just a too-cute-by-half typedef for nsHTMLTag.
2017-09-19 11:07:49 +10:00
Nicholas Nethercote
ec86006dad Bug 1395828 (part 1) - Add nsHTMLElement::IsBlock(). r=mrbkap.
This mirrors the existing nsHTMLElement::IsContainer() function.
2017-09-01 19:38:09 +10:00
Nicholas Nethercote
20964b29ed Bug 1394300 - Streamline nsElementTable.cpp. r=mrbkap.
This patch does the following.

- Uses a macro to make gHTMLElements[] much more concise.

- Makes nsHTMLElement::mTagID a debug-only field, because it's only used in
  assertions.
2017-08-29 08:05:23 +10:00
Birunthan Mohanathas
735c08304e Bug 1057923 - Flatten parser/htmlparser/{public,src}/ into parent directory. r=mrbkap 2014-08-26 07:10:53 -07:00