Bug 870022 - Part 5.3 - Teach parser about <picture> (non-generated bits). r=hsivonen

This commit is contained in:
John Schoenick 2014-05-13 15:58:26 -07:00
parent 797ac7a161
commit e8e0b200ac
4 changed files with 10 additions and 0 deletions

View File

@ -693,6 +693,7 @@ public final class ElementName
public static final ElementName NOEMBED = new ElementName("noembed", "noembed", TreeBuilder.NOEMBED | SPECIAL);
public static final ElementName POLYGON = new ElementName("polygon", "polygon", TreeBuilder.OTHER);
public static final ElementName PATTERN = new ElementName("pattern", "pattern", TreeBuilder.OTHER);
public static final ElementName PICTURE = new ElementName("picture", "picture", TreeBuilder.OTHER);
public static final ElementName PRODUCT = new ElementName("product", "product", TreeBuilder.OTHER);
public static final ElementName SETDIFF = new ElementName("setdiff", "setdiff", TreeBuilder.OTHER);
public static final ElementName SECTION = new ElementName("section", "section", TreeBuilder.ADDRESS_OR_ARTICLE_OR_ASIDE_OR_DETAILS_OR_DIR_OR_FIGCAPTION_OR_FIGURE_OR_FOOTER_OR_HEADER_OR_HGROUP_OR_MAIN_OR_NAV_OR_SECTION_OR_SUMMARY | SPECIAL);
@ -1090,6 +1091,7 @@ public final class ElementName
NOEMBED,
POLYGON,
PATTERN,
PICTURE,
PRODUCT,
SETDIFF,
SECTION,
@ -1488,6 +1490,7 @@ public final class ElementName
249697357,
252132601,
252135604,
251841204,
252317348,
255007012,
255278388,

View File

@ -126,6 +126,7 @@ HTML_TAG(option, Option)
HTML_TAG(output, Output)
HTML_TAG(p, Paragraph)
HTML_TAG(param, Shared)
HTML_TAG(picture, Picture)
HTML_HTMLELEMENT_TAG(plaintext)
HTML_TAG(pre, Pre)
HTML_TAG(progress, Progress)

View File

@ -383,6 +383,10 @@ const nsHTMLElement gHTMLElements[] = {
/*tag*/ eHTMLTag_param,
/*parent,leaf*/ kSpecial, true
},
{
/*tag*/ eHTMLTag_picture,
/*parent,leaf*/ kSpecial, false
},
{
/*tag*/ eHTMLTag_plaintext,
/*parent,leaf*/ kExtensions, false

View File

@ -199,6 +199,8 @@ static const char16_t sHTMLTagUnicodeName_p[] =
{'p', '\0'};
static const char16_t sHTMLTagUnicodeName_param[] =
{'p', 'a', 'r', 'a', 'm', '\0'};
static const char16_t sHTMLTagUnicodeName_picture[] =
{'p', 'i', 'c', 't', 'u', 'r', 'e', '\0'};
static const char16_t sHTMLTagUnicodeName_plaintext[] =
{'p', 'l', 'a', 'i', 'n', 't', 'e', 'x', 't', '\0'};
static const char16_t sHTMLTagUnicodeName_pre[] =