kjs_html.cpp

来自「最新Nokia手机浏览器全套源代码完美版。」· C++ 代码 · 共 1,528 行 · 第 1/5 页

CPP
1,528 行
字号
    return &pre_info;
  case ID_BR:
    return &br_info;
  case ID_BASEFONT:
    return &baseFont_info;
  case ID_FONT:
    return &font_info;
  case ID_HR:
    return &hr_info;
  case ID_INS:
  case ID_DEL:
    return &mod_info;
  case ID_A:
    return &a_info;
  case ID_CANVAS:
    return &canvas_info;
  case ID_IMG:
    return &img_info;
  case ID_OBJECT:
    return &object_info;
#if NOKIA_CHANGES
  case ID_EMBED:
    return &embed_info;
#endif
  case ID_PARAM:
    return &param_info;
  case ID_APPLET:
    return &applet_info;
  case ID_MAP:
    return &map_info;
  case ID_AREA:
    return &area_info;
  case ID_SCRIPT:
    return &script_info;
  case ID_TABLE:
    return &table_info;
  case ID_CAPTION:
    return &caption_info;
  case ID_COL:
    return &col_info;
  case ID_THEAD:
    return &tablesection_info;
  case ID_TBODY:
    return &tablesection_info;
  case ID_TFOOT:
    return &tablesection_info;
  case ID_TR:
    return &tr_info;
  case ID_TH:
    return &tablecell_info;
  case ID_TD:
    return &tablecell_info;
  case ID_FRAMESET:
    return &frameSet_info;
  case ID_FRAME:
    return &frame_info;
  case ID_IFRAME:
    return &iFrame_info;
  case ID_MARQUEE:
    return &marquee_info;
  default:
    return &info;
  }
}
/*
@begin HTMLElementTable 14
  id    KJS::HTMLElement::ElementId DontDelete
  title   KJS::HTMLElement::ElementTitle  DontDelete
  lang    KJS::HTMLElement::ElementLang DontDelete
  dir   KJS::HTMLElement::ElementDir  DontDelete
### isn't this "class" in the HTML spec?
  className KJS::HTMLElement::ElementClassName DontDelete
  innerHTML KJS::HTMLElement::ElementInnerHTML DontDelete
  innerText KJS::HTMLElement::ElementInnerText DontDelete
  outerHTML KJS::HTMLElement::ElementOuterHTML DontDelete
  outerText KJS::HTMLElement::ElementOuterText DontDelete
  document  KJS::HTMLElement::ElementDocument  DontDelete|ReadOnly
# IE extension
  children  KJS::HTMLElement::ElementChildren  DontDelete|ReadOnly
  contentEditable   KJS::HTMLElement::ElementContentEditable  DontDelete
  isContentEditable KJS::HTMLElement::ElementIsContentEditable  DontDelete|ReadOnly
@end
@begin HTMLHtmlElementTable 1
  version KJS::HTMLElement::HtmlVersion DontDelete
@end
@begin HTMLHeadElementTable 1
  profile KJS::HTMLElement::HeadProfile DontDelete
@end
@begin HTMLLinkElementTable 11
  disabled  KJS::HTMLElement::LinkDisabled  DontDelete
  charset KJS::HTMLElement::LinkCharset DontDelete
  href    KJS::HTMLElement::LinkHref  DontDelete
  hreflang  KJS::HTMLElement::LinkHrefLang  DontDelete
  media   KJS::HTMLElement::LinkMedia DontDelete
  rel   KJS::HTMLElement::LinkRel       DontDelete
  rev   KJS::HTMLElement::LinkRev DontDelete
  target  KJS::HTMLElement::LinkTarget  DontDelete
  type    KJS::HTMLElement::LinkType  DontDelete
  sheet   KJS::HTMLElement::LinkSheet DontDelete|ReadOnly
@end
@begin HTMLTitleElementTable 1
  text    KJS::HTMLElement::TitleText DontDelete
@end
@begin HTMLMetaElementTable 4
  content KJS::HTMLElement::MetaContent DontDelete
  httpEquiv KJS::HTMLElement::MetaHttpEquiv DontDelete
  name    KJS::HTMLElement::MetaName  DontDelete
  scheme  KJS::HTMLElement::MetaScheme  DontDelete
@end
@begin HTMLBaseElementTable 2
  href    KJS::HTMLElement::BaseHref  DontDelete
  target  KJS::HTMLElement::BaseTarget  DontDelete
@end
@begin HTMLIsIndexElementTable 2
  form    KJS::HTMLElement::IsIndexForm DontDelete|ReadOnly
  prompt  KJS::HTMLElement::IsIndexPrompt DontDelete
@end
@begin HTMLStyleElementTable 4
  disabled  KJS::HTMLElement::StyleDisabled DontDelete
  media   KJS::HTMLElement::StyleMedia  DontDelete
  type    KJS::HTMLElement::StyleType DontDelete
  sheet   KJS::HTMLElement::StyleSheet  DontDelete|ReadOnly
@end
@begin HTMLBodyElementTable 10
  aLink   KJS::HTMLElement::BodyALink DontDelete
  background  KJS::HTMLElement::BodyBackground  DontDelete
  bgColor KJS::HTMLElement::BodyBgColor DontDelete
  link    KJS::HTMLElement::BodyLink  DontDelete
  text    KJS::HTMLElement::BodyText  DontDelete
  vLink   KJS::HTMLElement::BodyVLink DontDelete
  scrollLeft    KJS::HTMLElement::BodyScrollLeft        DontDelete
  scrollTop     KJS::HTMLElement::BodyScrollTop         DontDelete
  scrollHeight  KJS::HTMLElement::BodyScrollHeight  DontDelete|ReadOnly
  scrollWidth KJS::HTMLElement::BodyScrollWidth DontDelete|ReadOnly
@end
@begin HTMLFormElementTable 11
# Also supported, by name/index
  elements  KJS::HTMLElement::FormElements  DontDelete|ReadOnly
  length  KJS::HTMLElement::FormLength  DontDelete|ReadOnly
  name    KJS::HTMLElement::FormName  DontDelete
  acceptCharset KJS::HTMLElement::FormAcceptCharset DontDelete
  action  KJS::HTMLElement::FormAction  DontDelete
  enctype KJS::HTMLElement::FormEncType DontDelete
  method  KJS::HTMLElement::FormMethod  DontDelete
  target  KJS::HTMLElement::FormTarget  DontDelete
  submit  KJS::HTMLElement::FormSubmit  DontDelete|Function 0
  reset   KJS::HTMLElement::FormReset DontDelete|Function 0
@end
@begin HTMLSelectElementTable 11
# Also supported, by index
  type    KJS::HTMLElement::SelectType  DontDelete|ReadOnly
  selectedIndex KJS::HTMLElement::SelectSelectedIndex DontDelete
  value   KJS::HTMLElement::SelectValue DontDelete
  length  KJS::HTMLElement::SelectLength  DontDelete
  form    KJS::HTMLElement::SelectForm  DontDelete|ReadOnly
  options KJS::HTMLElement::SelectOptions DontDelete|ReadOnly
  disabled  KJS::HTMLElement::SelectDisabled  DontDelete
  multiple  KJS::HTMLElement::SelectMultiple  DontDelete
  name    KJS::HTMLElement::SelectName  DontDelete
  size    KJS::HTMLElement::SelectSize  DontDelete
  tabIndex  KJS::HTMLElement::SelectTabIndex  DontDelete
  add   KJS::HTMLElement::SelectAdd DontDelete|Function 2
  remove  KJS::HTMLElement::SelectRemove  DontDelete|Function 1
  blur    KJS::HTMLElement::SelectBlur  DontDelete|Function 0
  focus   KJS::HTMLElement::SelectFocus DontDelete|Function 0
@end
@begin HTMLOptGroupElementTable 2
  disabled  KJS::HTMLElement::OptGroupDisabled  DontDelete
  label   KJS::HTMLElement::OptGroupLabel   DontDelete
@end
@begin HTMLOptionElementTable 8
  form    KJS::HTMLElement::OptionForm    DontDelete|ReadOnly
  defaultSelected KJS::HTMLElement::OptionDefaultSelected DontDelete
  text    KJS::HTMLElement::OptionText    DontDelete
  index   KJS::HTMLElement::OptionIndex   DontDelete|ReadOnly
  disabled  KJS::HTMLElement::OptionDisabled  DontDelete
  label   KJS::HTMLElement::OptionLabel   DontDelete
  selected  KJS::HTMLElement::OptionSelected  DontDelete
  value   KJS::HTMLElement::OptionValue   DontDelete
@end
@begin HTMLInputElementTable 23
  defaultValue  KJS::HTMLElement::InputDefaultValue DontDelete
  defaultChecked KJS::HTMLElement::InputDefaultChecked  DontDelete
  form    KJS::HTMLElement::InputForm   DontDelete|ReadOnly
  accept  KJS::HTMLElement::InputAccept   DontDelete
  accessKey KJS::HTMLElement::InputAccessKey  DontDelete
  align   KJS::HTMLElement::InputAlign    DontDelete
  alt   KJS::HTMLElement::InputAlt    DontDelete
  checked KJS::HTMLElement::InputChecked    DontDelete
  disabled  KJS::HTMLElement::InputDisabled   DontDelete
  maxLength KJS::HTMLElement::InputMaxLength  DontDelete
  name    KJS::HTMLElement::InputName   DontDelete
  readOnly  KJS::HTMLElement::InputReadOnly   DontDelete
  selectionStart  KJS::HTMLElement::InputSelectionStart DontDelete
  selectionEnd  KJS::HTMLElement::InputSelectionEnd DontDelete
  size    KJS::HTMLElement::InputSize   DontDelete
  src   KJS::HTMLElement::InputSrc    DontDelete
  tabIndex  KJS::HTMLElement::InputTabIndex   DontDelete
  type    KJS::HTMLElement::InputType   DontDelete
  useMap  KJS::HTMLElement::InputUseMap   DontDelete
  value   KJS::HTMLElement::InputValue    DontDelete
  blur    KJS::HTMLElement::InputBlur   DontDelete|Function 0
  focus   KJS::HTMLElement::InputFocus    DontDelete|Function 0
  select  KJS::HTMLElement::InputSelect   DontDelete|Function 0
  click   KJS::HTMLElement::InputClick    DontDelete|Function 0
  setSelectionRange KJS::HTMLElement::InputSetSelectionRange  DontDelete|Function 2
@end
@begin HTMLTextAreaElementTable 17
  defaultValue  KJS::HTMLElement::TextAreaDefaultValue  DontDelete
  form    KJS::HTMLElement::TextAreaForm    DontDelete|ReadOnly
  accessKey KJS::HTMLElement::TextAreaAccessKey DontDelete
  cols    KJS::HTMLElement::TextAreaCols    DontDelete
  disabled  KJS::HTMLElement::TextAreaDisabled  DontDelete
  name    KJS::HTMLElement::TextAreaName    DontDelete
  readOnly  KJS::HTMLElement::TextAreaReadOnly  DontDelete
  rows    KJS::HTMLElement::TextAreaRows    DontDelete
  selectionStart  KJS::HTMLElement::TextAreaSelectionStart  DontDelete
  selectionEnd  KJS::HTMLElement::TextAreaSelectionEnd  DontDelete
  tabIndex  KJS::HTMLElement::TextAreaTabIndex  DontDelete
  type    KJS::HTMLElement::TextAreaType    DontDelete|ReadOnly
  value   KJS::HTMLElement::TextAreaValue   DontDelete
  blur    KJS::HTMLElement::TextAreaBlur    DontDelete|Function 0
  focus   KJS::HTMLElement::TextAreaFocus   DontDelete|Function 0
  select  KJS::HTMLElement::TextAreaSelect  DontDelete|Function 0
  setSelectionRange KJS::HTMLElement::TextAreaSetSelectionRange DontDelete|Function 2
@end
@begin HTMLButtonElementTable 7
  form    KJS::HTMLElement::ButtonForm    DontDelete|ReadOnly
  accessKey KJS::HTMLElement::ButtonAccessKey DontDelete
  disabled  KJS::HTMLElement::ButtonDisabled  DontDelete
  name    KJS::HTMLElement::ButtonName    DontDelete
  tabIndex  KJS::HTMLElement::ButtonTabIndex  DontDelete
  type    KJS::HTMLElement::ButtonType    DontDelete|ReadOnly
  value   KJS::HTMLElement::ButtonValue   DontDelete
  blur    KJS::HTMLElement::ButtonBlur    DontDelete|Function 0
  focus   KJS::HTMLElement::ButtonFocus   DontDelete|Function 0
@end
@begin HTMLLabelElementTable 3
  form    KJS::HTMLElement::LabelForm   DontDelete|ReadOnly
  accessKey KJS::HTMLElement::LabelAccessKey  DontDelete
  htmlFor KJS::HTMLElement::LabelHtmlFor    DontDelete
@end
@begin HTMLFieldSetElementTable 1
  form    KJS::HTMLElement::FieldSetForm    DontDelete|ReadOnly
@end
@begin HTMLLegendElementTable 3
  form    KJS::HTMLElement::LegendForm    DontDelete|ReadOnly
  accessKey KJS::HTMLElement::LegendAccessKey DontDelete
  align   KJS::HTMLElement::LegendAlign   DontDelete
@end
@begin HTMLUListElementTable 2
  compact KJS::HTMLElement::UListCompact    DontDelete
  type    KJS::HTMLElement::UListType   DontDelete
@end
@begin HTMLOListElementTable 3
  compact KJS::HTMLElement::OListCompact    DontDelete
  start   KJS::HTMLElement::OListStart    DontDelete
  type    KJS::HTMLElement::OListType   DontDelete
@end
@begin HTMLDListElementTable 1
  compact KJS::HTMLElement::DListCompact    DontDelete
@end
@begin HTMLDirectoryElementTable 1
  compact KJS::HTMLElement::DirectoryCompact  DontDelete
@end
@begin HTMLMenuElementTable 1
  compact KJS::HTMLElement::MenuCompact   DontDelete
@end
@begin HTMLLIElementTable 2
  type    KJS::HTMLElement::LIType    DontDelete
  value   KJS::HTMLElement::LIValue   DontDelete
@end
@begin HTMLDivElementTable 1
  align   KJS::HTMLElement::DivAlign    DontDelete
@end
@begin HTMLParagraphElementTable 1
  align   KJS::HTMLElement::ParagraphAlign  DontDelete
@end
@begin HTMLHeadingElementTable 1
  align   KJS::HTMLElement::HeadingAlign    DontDelete
@end
@begin HTMLBlockQuoteElementTable 1
  cite    KJS::HTMLElement::BlockQuoteCite  DontDelete
@end
@begin HTMLQuoteElementTable 1
  cite    KJS::HTMLElement::QuoteCite   DontDelete
@end
@begin HTMLPreElementTable 1
  width   KJS::HTMLElement::PreWidth    DontDelete
@end
@begin HTMLBRElementTable 1
  clear   KJS::HTMLElement::BRClear   DontDelete
@end
@begin HTMLBaseFontElementTable 3
  color   KJS::HTMLElement::BaseFontColor   DontDelete
  face    KJS::HTMLElement::BaseFontFace    DontDelete
  size    KJS::HTMLElement::BaseFontSize    DontDelete
@end
@begin HTMLFontElementTable 3
  color   KJS::HTMLElement::FontColor   DontDelete
  face    KJS::HTMLElement::FontFace    DontDelete
  size    KJS::HTMLElement::FontSize    DontDelete
@end
@begin HTMLHRElementTable 4
  align   KJS::HTMLElement::HRAlign   DontDelete
  noShade KJS::HTMLElement::HRNoShade   DontDelete

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?