diff --git a/content/html/content/src/nsHTMLAtomList.h b/content/html/content/src/nsHTMLAtomList.h
index 14c44aacf58..64aee719249 100644
--- a/content/html/content/src/nsHTMLAtomList.h
+++ b/content/html/content/src/nsHTMLAtomList.h
@@ -65,6 +65,9 @@ HTML_ATOM(area, "area")
HTML_ATOM(axis, "axis")
HTML_ATOM(background, "background")
HTML_ATOM(below, "below")
+#ifdef IBMBIDI
+HTML_ATOM(bdo, "bdo")
+#endif
HTML_ATOM(bgcolor, "bgcolor")
HTML_ATOM(blockquote, "blockquote")
HTML_ATOM(body, "body")
diff --git a/content/shared/public/nsHTMLAtomList.h b/content/shared/public/nsHTMLAtomList.h
index 14c44aacf58..64aee719249 100644
--- a/content/shared/public/nsHTMLAtomList.h
+++ b/content/shared/public/nsHTMLAtomList.h
@@ -65,6 +65,9 @@ HTML_ATOM(area, "area")
HTML_ATOM(axis, "axis")
HTML_ATOM(background, "background")
HTML_ATOM(below, "below")
+#ifdef IBMBIDI
+HTML_ATOM(bdo, "bdo")
+#endif
HTML_ATOM(bgcolor, "bgcolor")
HTML_ATOM(blockquote, "blockquote")
HTML_ATOM(body, "body")
diff --git a/content/shared/public/nsLayoutAtomList.h b/content/shared/public/nsLayoutAtomList.h
index 8f943f3893c..c3a5f726f0b 100644
--- a/content/shared/public/nsLayoutAtomList.h
+++ b/content/shared/public/nsLayoutAtomList.h
@@ -181,6 +181,16 @@ LAYOUT_ATOM(Korean, "ko")
LAYOUT_ATOM(wildcard, "*")
LAYOUT_ATOM(mozdirty, "_moz_dirty")
+#ifdef IBMBIDI
+LAYOUT_ATOM(directionalFrame, "DirectionalFrame")
+LAYOUT_ATOM(listControlFrame,"ListControlFrame")
+LAYOUT_ATOM(baseLevel, "BaseLevel") // PRUint8
+LAYOUT_ATOM(embeddingLevel, "EmbeddingLevel") // PRUint8
+LAYOUT_ATOM(endsInDiacritic, "EndsInDiacritic") // PRUint32
+LAYOUT_ATOM(nextBidi, "NextBidi") // nsIFrame*
+LAYOUT_ATOM(charType, "charType") // PRUint8
+#endif
+
#ifdef DEBUG
// Alphabetical list of atoms used by debugging code
LAYOUT_ATOM(cellMap, "TableCellMap")
diff --git a/layout/base/nsLayoutAtomList.h b/layout/base/nsLayoutAtomList.h
index 8f943f3893c..c3a5f726f0b 100644
--- a/layout/base/nsLayoutAtomList.h
+++ b/layout/base/nsLayoutAtomList.h
@@ -181,6 +181,16 @@ LAYOUT_ATOM(Korean, "ko")
LAYOUT_ATOM(wildcard, "*")
LAYOUT_ATOM(mozdirty, "_moz_dirty")
+#ifdef IBMBIDI
+LAYOUT_ATOM(directionalFrame, "DirectionalFrame")
+LAYOUT_ATOM(listControlFrame,"ListControlFrame")
+LAYOUT_ATOM(baseLevel, "BaseLevel") // PRUint8
+LAYOUT_ATOM(embeddingLevel, "EmbeddingLevel") // PRUint8
+LAYOUT_ATOM(endsInDiacritic, "EndsInDiacritic") // PRUint32
+LAYOUT_ATOM(nextBidi, "NextBidi") // nsIFrame*
+LAYOUT_ATOM(charType, "charType") // PRUint8
+#endif
+
#ifdef DEBUG
// Alphabetical list of atoms used by debugging code
LAYOUT_ATOM(cellMap, "TableCellMap")