From d77f11eff212fe28ff0abcb75acc0a2e40ec0876 Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Thu, 11 Feb 1999 06:39:07 +0000 Subject: [PATCH] added viewport pseudo element tag git-svn-id: svn://10.0.0.236/trunk@20380 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/shared/public/nsLayoutAtoms.h | 3 ++- mozilla/content/shared/src/nsLayoutAtoms.cpp | 9 ++++++--- mozilla/layout/base/nsLayoutAtoms.cpp | 9 ++++++--- mozilla/layout/base/nsLayoutAtoms.h | 3 ++- mozilla/layout/base/public/nsLayoutAtoms.h | 3 ++- mozilla/layout/base/src/nsLayoutAtoms.cpp | 9 ++++++--- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/mozilla/content/shared/public/nsLayoutAtoms.h b/mozilla/content/shared/public/nsLayoutAtoms.h index 075ec6cae77..ad164da609b 100644 --- a/mozilla/content/shared/public/nsLayoutAtoms.h +++ b/mozilla/content/shared/public/nsLayoutAtoms.h @@ -58,8 +58,9 @@ public: static nsIAtom* floaterList; // Alphabetical list of pseudo tag names for non-element content - static nsIAtom* textTagName; static nsIAtom* commentTagName; + static nsIAtom* textTagName; + static nsIAtom* viewportPseudo; }; #endif /* nsLayoutAtoms_h___ */ diff --git a/mozilla/content/shared/src/nsLayoutAtoms.cpp b/mozilla/content/shared/src/nsLayoutAtoms.cpp index 9b70289774f..2da737bd0db 100644 --- a/mozilla/content/shared/src/nsLayoutAtoms.cpp +++ b/mozilla/content/shared/src/nsLayoutAtoms.cpp @@ -43,8 +43,9 @@ nsIAtom* nsLayoutAtoms::colGroupList; nsIAtom* nsLayoutAtoms::fixedList; nsIAtom* nsLayoutAtoms::floaterList; -nsIAtom* nsLayoutAtoms::textTagName; nsIAtom* nsLayoutAtoms::commentTagName; +nsIAtom* nsLayoutAtoms::textTagName; +nsIAtom* nsLayoutAtoms::viewportPseudo; static nsrefcnt gRefCnt; @@ -72,8 +73,9 @@ void nsLayoutAtoms::AddrefAtoms() fixedList = NS_NewAtom("Fixed-list"); floaterList = NS_NewAtom("Floater-list"); - textTagName = NS_NewAtom("__moz_text"); commentTagName = NS_NewAtom("__moz_comment"); + textTagName = NS_NewAtom("__moz_text"); + viewportPseudo = NS_NewAtom(":-MOZ-VIEWPORT"); // XXX lower case } ++gRefCnt; } @@ -103,8 +105,9 @@ void nsLayoutAtoms::ReleaseAtoms() NS_RELEASE(fixedList); NS_RELEASE(floaterList); - NS_RELEASE(textTagName); NS_RELEASE(commentTagName); + NS_RELEASE(textTagName); + NS_RELEASE(viewportPseudo); } } diff --git a/mozilla/layout/base/nsLayoutAtoms.cpp b/mozilla/layout/base/nsLayoutAtoms.cpp index 9b70289774f..2da737bd0db 100644 --- a/mozilla/layout/base/nsLayoutAtoms.cpp +++ b/mozilla/layout/base/nsLayoutAtoms.cpp @@ -43,8 +43,9 @@ nsIAtom* nsLayoutAtoms::colGroupList; nsIAtom* nsLayoutAtoms::fixedList; nsIAtom* nsLayoutAtoms::floaterList; -nsIAtom* nsLayoutAtoms::textTagName; nsIAtom* nsLayoutAtoms::commentTagName; +nsIAtom* nsLayoutAtoms::textTagName; +nsIAtom* nsLayoutAtoms::viewportPseudo; static nsrefcnt gRefCnt; @@ -72,8 +73,9 @@ void nsLayoutAtoms::AddrefAtoms() fixedList = NS_NewAtom("Fixed-list"); floaterList = NS_NewAtom("Floater-list"); - textTagName = NS_NewAtom("__moz_text"); commentTagName = NS_NewAtom("__moz_comment"); + textTagName = NS_NewAtom("__moz_text"); + viewportPseudo = NS_NewAtom(":-MOZ-VIEWPORT"); // XXX lower case } ++gRefCnt; } @@ -103,8 +105,9 @@ void nsLayoutAtoms::ReleaseAtoms() NS_RELEASE(fixedList); NS_RELEASE(floaterList); - NS_RELEASE(textTagName); NS_RELEASE(commentTagName); + NS_RELEASE(textTagName); + NS_RELEASE(viewportPseudo); } } diff --git a/mozilla/layout/base/nsLayoutAtoms.h b/mozilla/layout/base/nsLayoutAtoms.h index 075ec6cae77..ad164da609b 100644 --- a/mozilla/layout/base/nsLayoutAtoms.h +++ b/mozilla/layout/base/nsLayoutAtoms.h @@ -58,8 +58,9 @@ public: static nsIAtom* floaterList; // Alphabetical list of pseudo tag names for non-element content - static nsIAtom* textTagName; static nsIAtom* commentTagName; + static nsIAtom* textTagName; + static nsIAtom* viewportPseudo; }; #endif /* nsLayoutAtoms_h___ */ diff --git a/mozilla/layout/base/public/nsLayoutAtoms.h b/mozilla/layout/base/public/nsLayoutAtoms.h index 075ec6cae77..ad164da609b 100644 --- a/mozilla/layout/base/public/nsLayoutAtoms.h +++ b/mozilla/layout/base/public/nsLayoutAtoms.h @@ -58,8 +58,9 @@ public: static nsIAtom* floaterList; // Alphabetical list of pseudo tag names for non-element content - static nsIAtom* textTagName; static nsIAtom* commentTagName; + static nsIAtom* textTagName; + static nsIAtom* viewportPseudo; }; #endif /* nsLayoutAtoms_h___ */ diff --git a/mozilla/layout/base/src/nsLayoutAtoms.cpp b/mozilla/layout/base/src/nsLayoutAtoms.cpp index 9b70289774f..2da737bd0db 100644 --- a/mozilla/layout/base/src/nsLayoutAtoms.cpp +++ b/mozilla/layout/base/src/nsLayoutAtoms.cpp @@ -43,8 +43,9 @@ nsIAtom* nsLayoutAtoms::colGroupList; nsIAtom* nsLayoutAtoms::fixedList; nsIAtom* nsLayoutAtoms::floaterList; -nsIAtom* nsLayoutAtoms::textTagName; nsIAtom* nsLayoutAtoms::commentTagName; +nsIAtom* nsLayoutAtoms::textTagName; +nsIAtom* nsLayoutAtoms::viewportPseudo; static nsrefcnt gRefCnt; @@ -72,8 +73,9 @@ void nsLayoutAtoms::AddrefAtoms() fixedList = NS_NewAtom("Fixed-list"); floaterList = NS_NewAtom("Floater-list"); - textTagName = NS_NewAtom("__moz_text"); commentTagName = NS_NewAtom("__moz_comment"); + textTagName = NS_NewAtom("__moz_text"); + viewportPseudo = NS_NewAtom(":-MOZ-VIEWPORT"); // XXX lower case } ++gRefCnt; } @@ -103,8 +105,9 @@ void nsLayoutAtoms::ReleaseAtoms() NS_RELEASE(fixedList); NS_RELEASE(floaterList); - NS_RELEASE(textTagName); NS_RELEASE(commentTagName); + NS_RELEASE(textTagName); + NS_RELEASE(viewportPseudo); } }