b=288714, html canvas implementation, r=various,a=brendan
git-svn-id: svn://10.0.0.236/trunk@172389 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -80,6 +80,7 @@ HTML_TAG(blockquote, Shared)
|
||||
HTML_TAG(body, Body)
|
||||
HTML_TAG(br, BR)
|
||||
HTML_TAG(button, Button)
|
||||
HTML_TAG(canvas, Canvas)
|
||||
HTML_TAG(caption, TableCaption)
|
||||
HTML_TAG(center, Span)
|
||||
HTML_TAG(cite, Span)
|
||||
|
||||
@@ -63,7 +63,7 @@ enum nsHTMLTag {
|
||||
#undef HTML_TAG
|
||||
#undef HTML_OTHER
|
||||
|
||||
// Currently there are 107 HTML tags. eHTMLTag_text = 109.
|
||||
// All tags before eHTMLTag_text are HTML tags
|
||||
#define NS_HTML_TAG_MAX PRInt32(eHTMLTag_text - 1)
|
||||
|
||||
class nsHTMLTags {
|
||||
|
||||
@@ -369,6 +369,16 @@ const nsHTMLElement gHTMLElements[] = {
|
||||
/*special parents,kids,skip*/ 0,&gButtonKids,eHTMLTag_unknown,
|
||||
/*contain-func*/ 0
|
||||
},
|
||||
{
|
||||
/*tag*/ eHTMLTag_canvas,
|
||||
/*req-parent excl-parent*/ eHTMLTag_unknown,eHTMLTag_unknown,
|
||||
/*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
|
||||
/*autoclose starttags and endtags*/ 0,0,0,0,
|
||||
/*parent,incl,exclgroups*/ kSpecial, kNone, kNone,
|
||||
/*special props, prop-range*/ kNonContainer,kDefaultPropRange,
|
||||
/*special parents,kids,skip*/ 0,0,eHTMLTag_unknown,
|
||||
/*contain-func*/ 0
|
||||
},
|
||||
{
|
||||
/*tag*/ eHTMLTag_caption,
|
||||
/*req-parent excl-parent*/ eHTMLTag_table,eHTMLTag_unknown,
|
||||
|
||||
@@ -79,6 +79,8 @@ static const PRUnichar sHTMLTagUnicodeName_br[] =
|
||||
{'b', 'r', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_button[] =
|
||||
{'b', 'u', 't', 't', 'o', 'n', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_canvas[] =
|
||||
{'c', 'a', 'n', 'v', 'a', 's', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_caption[] =
|
||||
{'c', 'a', 'p', 't', 'i', 'o', 'n', '\0'};
|
||||
static const PRUnichar sHTMLTagUnicodeName_center[] =
|
||||
|
||||
Reference in New Issue
Block a user