Commit Graph

18 Commits

Author SHA1 Message Date
Boris Zbarsky
dba6013b27 Bug 1445983. <bdi> should be an HTMLElement, not HTMLUnknownElement. r=hsivonen
MozReview-Commit-ID: 9eJ45uXRDfR
2018-03-16 11:26:09 -04:00
Olli Pettay
9ca325753f Bug 1418002 - Remove HTMLContentElement, r=jessica 2017-11-30 10:57:15 +02:00
Olli Pettay
9428b4f885 Bug 1402941 - Add HTMLSlotElement (disabled for now), r=hsivonen 2017-10-02 13:22:12 +03:00
Sylvestre Ledru
29ad0802e0 Bug 1403150 - Ignore the formatting on gHTMLElements r=smaug
MozReview-Commit-ID: FKHbmNBJjia
2017-09-26 14:40:06 +02:00
Olli Pettay
98580ecdff Bug 1396584 - Remove support for multiple ShadowRoots, r=mrbkap 2017-09-25 18:09:26 +03:00
Nicholas Nethercote
6b88a1af42 Bug 1401097 (part 1) - Simplify gHTMLElements. r=mrbkap.
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.
2017-09-22 08:14:03 +10:00
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
Tim Nguyen
d6b021c4e5 Bug 1322938 - Basic implementation of HTMLDialogElement. r=smaug, masayuki
MozReview-Commit-ID: AU92mq2QZIc
2016-12-23 16:01:50 +01:00
William Chen
3f3db96963 Bug 1259590 - Remove B2G ACL code. r=khuey 2016-04-07 09:50:01 -07:00
Ting-Yu Lin
f8e1232b70 Bug 591737 - Teach parser about <details> and <summary>. r=mrbkap 2016-01-20 23:20:39 +08:00
William Chen
3381cd7c51 Bug 1178513 - Add <extapp> element and interfaces to be used by ACL. r=khuey 2015-06-30 11:27:57 -07:00
Birunthan Mohanathas
735c08304e Bug 1057923 - Flatten parser/htmlparser/{public,src}/ into parent directory. r=mrbkap 2014-08-26 07:10:53 -07:00