nsCSSAnonBoxList.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /* atom list for CSS anonymous boxes */
  6. /*
  7. * This file contains the list of nsIAtoms and their values for CSS
  8. * pseudo-element-ish things used internally for anonymous boxes. It is
  9. * designed to be used as inline input to nsCSSAnonBoxes.cpp *only*
  10. * through the magic of C preprocessing. All entries must be enclosed
  11. * in the macro CSS_ANON_BOX which will have cruel and unusual things
  12. * done to it. The entries should be kept in some sort of logical
  13. * order. The first argument to CSS_ANON_BOX is the C++ identifier of
  14. * the atom. The second argument is the string value of the atom.
  15. */
  16. // OUTPUT_CLASS=nsCSSAnonBoxes
  17. // MACRO_NAME=CSS_ANON_BOX
  18. // ::-moz-text and ::-moz-other-non-element are non-elements which no
  19. // rule will match.
  20. CSS_ANON_BOX(mozText, ":-moz-text")
  21. // This anonymous box has two uses:
  22. // 1. placeholder frames,
  23. // 2. nsFirstLetterFrames for content outside the ::first-letter.
  24. CSS_ANON_BOX(mozOtherNonElement, ":-moz-other-non-element")
  25. CSS_ANON_BOX(mozAnonymousBlock, ":-moz-anonymous-block")
  26. CSS_ANON_BOX(mozAnonymousPositionedBlock, ":-moz-anonymous-positioned-block")
  27. CSS_ANON_BOX(mozMathMLAnonymousBlock, ":-moz-mathml-anonymous-block")
  28. CSS_ANON_BOX(mozXULAnonymousBlock, ":-moz-xul-anonymous-block")
  29. // Framesets
  30. CSS_ANON_BOX(horizontalFramesetBorder, ":-moz-hframeset-border")
  31. CSS_ANON_BOX(verticalFramesetBorder, ":-moz-vframeset-border")
  32. CSS_ANON_BOX(mozLineFrame, ":-moz-line-frame")
  33. CSS_ANON_BOX(buttonContent, ":-moz-button-content")
  34. CSS_ANON_BOX(mozButtonLabel, ":-moz-buttonlabel")
  35. CSS_ANON_BOX(cellContent, ":-moz-cell-content")
  36. CSS_ANON_BOX(dropDownList, ":-moz-dropdown-list")
  37. CSS_ANON_BOX(fieldsetContent, ":-moz-fieldset-content")
  38. CSS_ANON_BOX(framesetBlank, ":-moz-frameset-blank")
  39. CSS_ANON_BOX(mozDisplayComboboxControlFrame, ":-moz-display-comboboxcontrol-frame")
  40. CSS_ANON_BOX(htmlCanvasContent, ":-moz-html-canvas-content")
  41. CSS_ANON_BOX(inlineTable, ":-moz-inline-table")
  42. CSS_ANON_BOX(table, ":-moz-table")
  43. CSS_ANON_BOX(tableCell, ":-moz-table-cell")
  44. CSS_ANON_BOX(tableColGroup, ":-moz-table-column-group")
  45. CSS_ANON_BOX(tableCol, ":-moz-table-column")
  46. CSS_ANON_BOX(tableWrapper, ":-moz-table-wrapper")
  47. CSS_ANON_BOX(tableRowGroup, ":-moz-table-row-group")
  48. CSS_ANON_BOX(tableRow, ":-moz-table-row")
  49. CSS_ANON_BOX(canvas, ":-moz-canvas")
  50. CSS_ANON_BOX(pageBreak, ":-moz-pagebreak")
  51. CSS_ANON_BOX(page, ":-moz-page")
  52. CSS_ANON_BOX(pageContent, ":-moz-pagecontent")
  53. CSS_ANON_BOX(pageSequence, ":-moz-page-sequence")
  54. CSS_ANON_BOX(scrolledContent, ":-moz-scrolled-content")
  55. CSS_ANON_BOX(scrolledCanvas, ":-moz-scrolled-canvas")
  56. CSS_ANON_BOX(scrolledPageSequence, ":-moz-scrolled-page-sequence")
  57. CSS_ANON_BOX(columnContent, ":-moz-column-content")
  58. CSS_ANON_BOX(viewport, ":-moz-viewport")
  59. CSS_ANON_BOX(viewportScroll, ":-moz-viewport-scroll")
  60. // Inside a flex container, a contiguous run of text gets wrapped in
  61. // an anonymous block, which is then treated as a flex item.
  62. CSS_ANON_BOX(anonymousFlexItem, ":-moz-anonymous-flex-item")
  63. // Inside a grid container, a contiguous run of text gets wrapped in
  64. // an anonymous block, which is then treated as a grid item.
  65. CSS_ANON_BOX(anonymousGridItem, ":-moz-anonymous-grid-item")
  66. CSS_ANON_BOX(ruby, ":-moz-ruby")
  67. CSS_ANON_BOX(rubyBase, ":-moz-ruby-base")
  68. CSS_ANON_BOX(rubyBaseContainer, ":-moz-ruby-base-container")
  69. CSS_ANON_BOX(rubyText, ":-moz-ruby-text")
  70. CSS_ANON_BOX(rubyTextContainer, ":-moz-ruby-text-container")
  71. #ifdef MOZ_XUL
  72. CSS_ANON_BOX(moztreecolumn, ":-moz-tree-column")
  73. CSS_ANON_BOX(moztreerow, ":-moz-tree-row")
  74. CSS_ANON_BOX(moztreeseparator, ":-moz-tree-separator")
  75. CSS_ANON_BOX(moztreecell, ":-moz-tree-cell")
  76. CSS_ANON_BOX(moztreeindentation, ":-moz-tree-indentation")
  77. CSS_ANON_BOX(moztreeline, ":-moz-tree-line")
  78. CSS_ANON_BOX(moztreetwisty, ":-moz-tree-twisty")
  79. CSS_ANON_BOX(moztreeimage, ":-moz-tree-image")
  80. CSS_ANON_BOX(moztreecelltext, ":-moz-tree-cell-text")
  81. CSS_ANON_BOX(moztreecheckbox, ":-moz-tree-checkbox")
  82. CSS_ANON_BOX(moztreeprogressmeter, ":-moz-tree-progressmeter")
  83. CSS_ANON_BOX(moztreedropfeedback, ":-moz-tree-drop-feedback")
  84. #endif
  85. CSS_ANON_BOX(mozSVGMarkerAnonChild, ":-moz-svg-marker-anon-child")
  86. CSS_ANON_BOX(mozSVGOuterSVGAnonChild, ":-moz-svg-outer-svg-anon-child")
  87. CSS_ANON_BOX(mozSVGForeignContent, ":-moz-svg-foreign-content")
  88. CSS_ANON_BOX(mozSVGText, ":-moz-svg-text")