Bug 1400777 (part 3) - De-expose gHTMLElements[]. r=mrbkap.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 19 Sep 2017 11:09:30 +1000
changeset 433130 2de6882645603af89ea672180239825dce408918
parent 433129 2b23e3f158dd747de9c40c068d4e9a5da583cf98
child 433131 50d9715e7b0ada2111baa0d51fa888135f78d1d7
push id8114
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 16:33:21 +0000
treeherdermozilla-beta@73e0d89a540f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1400777
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1400777 (part 3) - De-expose gHTMLElements[]. r=mrbkap.
parser/htmlparser/nsElementTable.cpp
parser/htmlparser/nsElementTable.h
--- a/parser/htmlparser/nsElementTable.cpp
+++ b/parser/htmlparser/nsElementTable.cpp
@@ -42,17 +42,17 @@ static const int kAllTags       = 0xffff
 
 
 #ifdef DEBUG
 #define ELEM(tag, parent, leaf) { eHTMLTag_##tag, parent, leaf },
 #else
 #define ELEM(tag, parent, leaf) { parent, leaf },
 #endif
 
-const nsHTMLElement gHTMLElements[] = {
+static const nsHTMLElement gHTMLElements[] = {
   ELEM(unknown,     kNone,                       true)
   ELEM(a,           kSpecial,                    false)
   ELEM(abbr,        kPhrase,                     false)
   ELEM(acronym,     kPhrase,                     false)
   ELEM(address,     kBlock,                      false)
   ELEM(applet,      kSpecial,                    false)
   ELEM(area,        kNone,                       true)
   ELEM(article,     kBlock,                      false)
--- a/parser/htmlparser/nsElementTable.h
+++ b/parser/htmlparser/nsElementTable.h
@@ -45,11 +45,9 @@ struct nsHTMLElement {
 #endif
   int             mParentBits;        //defines groups that can contain this element
   bool            mLeaf;
 
   static  bool    IsContainer(nsHTMLTag aTag);
   static  bool    IsBlock(nsHTMLTag aTag);
 };
 
-extern const nsHTMLElement gHTMLElements[];
-
 #endif