mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
38663d2b9f
- Bug 1230163 - White-space copy issue: Add conditional compile also for SeaMonkey. r=ehsan (6c6cf03257) - Bug 1066663, move call to SetDragState to happen when a window is lowered to avoid the issue with selection being prevented, r=smaug (7a15008ac3) - Bug 1245452, null check window->GetDocShell return value, r=khuey (77fee59e52) - Bug 1168398 - Ensure that the presshell is initialized before attempting to scroll something into its view; r=enndeakin (4aba157104) - Bug 1227461, don't iterate multiple times past the top-level document during tab navigation, prevents hang navigating in page info dialog, r=smaug (0a69f5085d) - Bug 1263443 - Typo in nsGkAtomList.h; r=smaug (9a0b34d075) - Bug 1260480 - Remove mozNoMarginBoxes. r=dbaron (fb06487de9) - Bug 1254378 - Make SpeechSynthesis an event target with a "voiceschanged" event. r=smaug (8d00157559) - some missing bits to be reapplied (e046af733d) - Bug 1097398 Part 1 - Move AccessibleCaret default assets to layout/style/. r=nalexander, r=heycam (694c4617d2) - Bug 1097398 Part 2 - Add preferences to make carets always tilt. r=roc (61ccfa508e) - Bug 1252368 - Move resource files in layout/style/ into layout/style/res/ directory. r=nalexander (6049fec5ba) - partial of Bug 1258177 - Make the list-item markers non-selectable. r=bz (9387a5a1f7) - Bug 1259889 Part 2 - Load html.css lazily for pref changes. r=heycam (16f139a9b4) - Bug 1258657 Part 1 - Change summary default style to "display: list-item" to match html spec. r=bz (a90a87025c) - Bug 1258657 Part 2 - Remove SummaryFrame. r=bz (7e555a570e) - Bug 1236828 part 1 - Apply proper clip state to top layer frames. r=mstange (5f3b55e475) - Bug 1236828 part 2 - Make frame constructor support absolutely-positioned top layer frame. r=bz (052f7d5d71) - Bug 1236828 part 3 - Allow setting position: absolute for top layer element and add test. r=heycam (ddf55b2e57) - Bug 1264533 - Correct the universal selector for summary to include all namespaces. r=bz (4bd53c11cc) - simple formatting (f19a2351a2) - Bug 1235321 - Enable using line cursor to optimize reflowing absolute frames. r=bz (35199c6780) - Bug 1260090 - Remove nsBlockFrameSuper as nsContainerFrame alias. r=dholbert (dbf60b2ef2) - minor format fix (a057efcf1c) - minor format fix (ac1f3b6691) - Bug 1145218 followup - Properly parenthesize macro argument. No review. (6a5d9fcf64) - Bug 1256727 - Back out the functional parts of cset 59a1ca7d784c now that we have a better fix using empty transactions. r=me (007080dd0a) - Bug 1256040 - Follow-up fix for nsGridContainerFrame.h/cpp compile errors in non-unified build. r=me (9c08e31572) - Bug 1243125 - patch 0 - Relax overly-harsh writing mode assertions in nsReflowMetrics size accessors. r=dholbert (3f75521c74) - Bug 1243125 - patch 1 - Check block size instead of height when detecting truncated frames. r=jfkthame (66a36d7c35) - Bug 1243125 - patch 2 - Don't ever set NS_FRAME_TRUNCATED for orthogonal flows. r=dholbert (ce4650213c) - Bug 1243125 - Reftest for floats overflowing container, with diverse writing-modes. r=jfkthame (f621d8d17e) - Bug 1250674 - Don't print header/footer if larger than user defined margins. r=dbaron (604e4c8f28) - Bug 1182247 - Only RegisterPluginForGeometryUpdates in nsPluginFrame::EndSwapDocShells if mInstanceOwner is non-null. r=tnikkel (8958766501) - fix misspatch compared to esr52 (06be2eb39c) - Bug 1237236 - When collapsing the selection to the end of textframe that ends in a significant newline then set mHint to CARET_ASSOCIATE_AFTER so that the caret is rendered at the start of the next line if any. r=ehsan (1f86bf7a57) - Bug 1258308 - Lookup the frame (continuation) associated with aParentNode/aOffset instead of assuming it's always the primary frame (follow-up from bug 1237236). r=ehsa (8849eecf94) - Bug 1259949 - Set the CARET_ASSOCIATE_AFTER hint also when we collapse just after a text node that ends with a significant newline. r=ehsan (065b4f6c9a) - Bug 1261718. In nsSubDocumentFrame when getting the document from a view go through the view manager because it is more like to succeed. r=mats (508f485aeb) - Bug 1178060 - Ensure that if there is a document-level apz-aware event listener on a subdocument, we build the nsDisplaySubdocument item to hold that information. r=tn (8e235581a5) - Bug 1240799 - Apply axis height for mfrac elements without bar. r=fredw (6a5fb4a3fa) - Bug 1224113 - fix ref count issue during channel close. r=jdm (35c5a01787)
624 lines
13 KiB
C++
624 lines
13 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=2 sw=2 et tw=78: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
#include "nsIAtom.h"
|
|
#include "nsElementTable.h"
|
|
|
|
/*****************************************************************************
|
|
Now it's time to list all the html elements all with their capabilities...
|
|
******************************************************************************/
|
|
|
|
// The Element Table (sung to the tune of Modern Major General)
|
|
|
|
const nsHTMLElement gHTMLElements[] = {
|
|
{
|
|
/*tag*/ eHTMLTag_unknown,
|
|
/*parent,leaf*/ kNone, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_a,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_abbr,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_acronym,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_address,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_applet,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_area,
|
|
/*parent,leaf*/ kNone, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_article,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_aside,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_audio,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_b,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_base,
|
|
/*parent,leaf*/ kHeadContent, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_basefont,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_bdo,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_bgsound,
|
|
/*parent,leaf*/ (kFlowEntity|kHeadMisc), true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_big,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_blockquote,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_body,
|
|
/*parent,leaf*/ kHTMLContent, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_br,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_button,
|
|
/*parent,leaf*/ kFormControl, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_canvas,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_caption,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_center,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_cite,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_code,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_col,
|
|
/*parent,leaf*/ kNone, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_colgroup,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_content,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_data,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_datalist,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_dd,
|
|
/*parent,leaf*/ kInlineEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_del,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_details,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_dfn,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_dir,
|
|
/*parent,leaf*/ kList, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_div,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_dl,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_dt,
|
|
/*parent,leaf*/ kInlineEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_em,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_embed,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_fieldset,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_figcaption,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_figure,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_font,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_footer,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_form,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_frame,
|
|
/*parent,leaf*/ kNone, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_frameset,
|
|
/*parent,leaf*/ kHTMLContent, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_h1,
|
|
/*parent,leaf*/ kHeading, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_h2,
|
|
/*parent,leaf*/ kHeading, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_h3,
|
|
/*parent,leaf*/ kHeading, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_h4,
|
|
/*parent,leaf*/ kHeading, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_h5,
|
|
/*parent,leaf*/ kHeading, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_h6,
|
|
/*parent,leaf*/ kHeading, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_head,
|
|
/*parent,leaf*/ kHTMLContent, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_header,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_hgroup,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_hr,
|
|
/*parent,leaf*/ kBlock, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_html,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_i,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_iframe,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_image,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_img,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_input,
|
|
/*parent,leaf*/ kFormControl, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_ins,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_kbd,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_keygen,
|
|
/*parent,leaf*/ kFlowEntity, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_label,
|
|
/*parent,leaf*/ kFormControl, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_legend,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_li,
|
|
/*parent,leaf*/ kBlockEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_link,
|
|
/*parent,leaf*/ kAllTags - kHeadContent, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_listing,
|
|
/*parent,leaf*/ kPreformatted, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_main,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_map,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_mark,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_marquee,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_menu,
|
|
/*parent,leaf*/ kList, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_menuitem,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_meta,
|
|
/*parent,leaf*/ kHeadContent, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_meter,
|
|
/*parent,leaf*/ kFormControl, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_multicol,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_nav,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_nobr,
|
|
/*parent,leaf*/ kExtensions, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_noembed,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_noframes,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_noscript,
|
|
/*parent,leaf*/ kFlowEntity|kHeadMisc, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_object,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_ol,
|
|
/*parent,leaf*/ kList, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_optgroup,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_option,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_output,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_p,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_param,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_picture,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_plaintext,
|
|
/*parent,leaf*/ kExtensions, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_pre,
|
|
/*parent,leaf*/ kBlock|kPreformatted, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_progress,
|
|
/*parent,leaf*/ kFormControl, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_q,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_rb,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_rp,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_rt,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_rtc,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_ruby,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_s,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_samp,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_script,
|
|
/*parent,leaf*/ (kSpecial|kHeadContent), false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_section,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_select,
|
|
/*parent,leaf*/ kFormControl, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_shadow,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_small,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_source,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_span,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_strike,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_strong,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_style,
|
|
/*parent,leaf*/ kAllTags - kHeadContent, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_sub,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_summary,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_sup,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_table,
|
|
/*parent,leaf*/ kBlock, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_tbody,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_td,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_textarea,
|
|
/*parent,leaf*/ kFormControl, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_tfoot,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_th,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_thead,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_template,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_time,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_title,
|
|
/*parent,leaf*/ kHeadContent, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_tr,
|
|
/*parent,leaf*/ kNone, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_track,
|
|
/*parent,leaf*/ kSpecial, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_tt,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_u,
|
|
/*parent,leaf*/ kFontStyle, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_ul,
|
|
/*parent,leaf*/ kList, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_var,
|
|
/*parent,leaf*/ kPhrase, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_video,
|
|
/*parent,leaf*/ kSpecial, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_wbr,
|
|
/*parent,leaf*/ kExtensions, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_xmp,
|
|
/*parent,leaf*/ kInlineEntity|kPreformatted, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_text,
|
|
/*parent,leaf*/ kFlowEntity, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_whitespace,
|
|
/*parent,leaf*/ kFlowEntity|kHeadMisc, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_newline,
|
|
/*parent,leaf*/ kFlowEntity|kHeadMisc, true
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_comment,
|
|
/*parent,leaf*/ kFlowEntity|kHeadMisc, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_entity,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_doctypeDecl,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_markupDecl,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_instruction,
|
|
/*parent,leaf*/ kFlowEntity, false
|
|
},
|
|
{
|
|
/*tag*/ eHTMLTag_userdefined,
|
|
/*parent,leaf*/ (kFlowEntity|kHeadMisc), false
|
|
},
|
|
};
|
|
|
|
/*********************************************************************************************/
|
|
|
|
bool nsHTMLElement::IsContainer(eHTMLTags aChild)
|
|
{
|
|
return !gHTMLElements[aChild].mLeaf;
|
|
}
|
|
|
|
bool nsHTMLElement::IsMemberOf(int32_t aSet) const
|
|
{
|
|
return TestBits(aSet,mParentBits);
|
|
}
|
|
|
|
#ifdef DEBUG
|
|
void CheckElementTable()
|
|
{
|
|
for (eHTMLTags t = eHTMLTag_unknown; t <= eHTMLTag_userdefined; t = eHTMLTags(t + 1)) {
|
|
NS_ASSERTION(gHTMLElements[t].mTagID == t, "gHTMLElements entries does match tag list.");
|
|
}
|
|
}
|
|
#endif
|