From 1f8cfdbaac335a86727177e54c82cb78fcd239d0 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 26 Feb 1999 17:13:30 +0000 Subject: [PATCH] Use our own null value --- layout/html/tests/TestAttributes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/html/tests/TestAttributes.cpp b/layout/html/tests/TestAttributes.cpp index d1c4e240fb61..8d6728badd66 100644 --- a/layout/html/tests/TestAttributes.cpp +++ b/layout/html/tests/TestAttributes.cpp @@ -33,6 +33,8 @@ #include "nsINameSpaceManager.h" void testAttributes(nsIHTMLContent* content) { + nsHTMLValue nullValue; + nsIAtom* sBORDER = NS_NewAtom("border"); nsIAtom* sWIDTH = NS_NewAtom("width"); nsIAtom* sHEIGHT = NS_NewAtom("height"); @@ -41,7 +43,7 @@ void testAttributes(nsIHTMLContent* content) { nsString sempty(""); nsString sfoo_gif("foo.gif"); - content->SetHTMLAttribute(sBORDER, nsHTMLValue::kNull, PR_FALSE); + content->SetHTMLAttribute(sBORDER, nullValue, PR_FALSE); content->SetHTMLAttribute(sWIDTH, nsHTMLValue(5, eHTMLUnit_Pixel), PR_FALSE); content->SetAttribute(kNameSpaceID_HTML, sHEIGHT, sempty, PR_FALSE); content->SetAttribute(kNameSpaceID_HTML, sSRC, sfoo_gif, PR_FALSE);