From 195e2e29d8a6976368377c3f163656e4df6e00b8 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 16 Apr 1999 17:08:16 +0000 Subject: [PATCH] added code to create a tristatecheckbox when seen in xul. --- layout/base/nsCSSFrameConstructor.cpp | 4 ++++ layout/html/style/src/nsCSSFrameConstructor.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index a17a93297f2..0a3aa9b6702 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -61,6 +61,7 @@ #ifdef INCLUDE_XUL #include "nsXULAtoms.h" +#include "nsTriStateCheckboxFrame.h" #include "nsTreeFrame.h" #include "nsToolboxFrame.h" #include "nsToolbarFrame.h" @@ -1555,6 +1556,7 @@ nsCSSFrameConstructor::TableIsValidCellContent(nsIPresContext* aPresContext, if ( (nsXULAtoms::button == tag.get()) || (nsXULAtoms::titledbutton == tag.get()) || (nsXULAtoms::checkbox == tag.get()) || + (nsXULAtoms::tristatecheckbox == tag.get()) || (nsXULAtoms::radio == tag.get()) || (nsXULAtoms::text == tag.get()) || (nsXULAtoms::widget == tag.get()) || @@ -2475,6 +2477,8 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext, rv = NS_NewButtonControlFrame(newFrame); else if (aTag == nsXULAtoms::checkbox) rv = NS_NewCheckboxControlFrame(newFrame); + else if (aTag == nsXULAtoms::tristatecheckbox) + rv = NS_NewTriStateCheckboxFrame(newFrame); else if (aTag == nsXULAtoms::radio) rv = NS_NewRadioControlFrame(newFrame); else if (aTag == nsXULAtoms::text) diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index a17a93297f2..0a3aa9b6702 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -61,6 +61,7 @@ #ifdef INCLUDE_XUL #include "nsXULAtoms.h" +#include "nsTriStateCheckboxFrame.h" #include "nsTreeFrame.h" #include "nsToolboxFrame.h" #include "nsToolbarFrame.h" @@ -1555,6 +1556,7 @@ nsCSSFrameConstructor::TableIsValidCellContent(nsIPresContext* aPresContext, if ( (nsXULAtoms::button == tag.get()) || (nsXULAtoms::titledbutton == tag.get()) || (nsXULAtoms::checkbox == tag.get()) || + (nsXULAtoms::tristatecheckbox == tag.get()) || (nsXULAtoms::radio == tag.get()) || (nsXULAtoms::text == tag.get()) || (nsXULAtoms::widget == tag.get()) || @@ -2475,6 +2477,8 @@ nsCSSFrameConstructor::ConstructXULFrame(nsIPresContext* aPresContext, rv = NS_NewButtonControlFrame(newFrame); else if (aTag == nsXULAtoms::checkbox) rv = NS_NewCheckboxControlFrame(newFrame); + else if (aTag == nsXULAtoms::tristatecheckbox) + rv = NS_NewTriStateCheckboxFrame(newFrame); else if (aTag == nsXULAtoms::radio) rv = NS_NewRadioControlFrame(newFrame); else if (aTag == nsXULAtoms::text)