Hook up new property and fix a crasher.

This commit is contained in:
jst%netscape.com 2000-05-17 06:13:43 +00:00
parent 301a298f35
commit 11724ca7b8
6 changed files with 9 additions and 3 deletions

View File

@ -238,6 +238,8 @@ nsComputedDOMStyle::GetPropertyCSSValue(const nsString& aPropertyName,
nsCSSProperty prop = nsCSSProps::LookupProperty(aPropertyName);
switch (prop) {
case eCSSProperty_display :
rv = GetDisplay(frame, *getter_AddRefs(val)); break;
case eCSSProperty_width :
rv = GetWidth(frame, *getter_AddRefs(val)); break;
case eCSSProperty_height :

View File

@ -27,7 +27,7 @@
nsROCSSPrimitiveValue::nsROCSSPrimitiveValue(nsISupports *aOwner, float aT2P)
: mType(0), mTwips(0), mString(), mOwner(aOwner), mT2P(aT2P)
: mType(0), mTwips(0), mString(), mOwner(aOwner), mT2P(aT2P), mScriptObject(nsnull)
{
NS_INIT_REFCNT();
}

View File

@ -238,6 +238,8 @@ nsComputedDOMStyle::GetPropertyCSSValue(const nsString& aPropertyName,
nsCSSProperty prop = nsCSSProps::LookupProperty(aPropertyName);
switch (prop) {
case eCSSProperty_display :
rv = GetDisplay(frame, *getter_AddRefs(val)); break;
case eCSSProperty_width :
rv = GetWidth(frame, *getter_AddRefs(val)); break;
case eCSSProperty_height :

View File

@ -27,7 +27,7 @@
nsROCSSPrimitiveValue::nsROCSSPrimitiveValue(nsISupports *aOwner, float aT2P)
: mType(0), mTwips(0), mString(), mOwner(aOwner), mT2P(aT2P)
: mType(0), mTwips(0), mString(), mOwner(aOwner), mT2P(aT2P), mScriptObject(nsnull)
{
NS_INIT_REFCNT();
}

View File

@ -238,6 +238,8 @@ nsComputedDOMStyle::GetPropertyCSSValue(const nsString& aPropertyName,
nsCSSProperty prop = nsCSSProps::LookupProperty(aPropertyName);
switch (prop) {
case eCSSProperty_display :
rv = GetDisplay(frame, *getter_AddRefs(val)); break;
case eCSSProperty_width :
rv = GetWidth(frame, *getter_AddRefs(val)); break;
case eCSSProperty_height :

View File

@ -27,7 +27,7 @@
nsROCSSPrimitiveValue::nsROCSSPrimitiveValue(nsISupports *aOwner, float aT2P)
: mType(0), mTwips(0), mString(), mOwner(aOwner), mT2P(aT2P)
: mType(0), mTwips(0), mString(), mOwner(aOwner), mT2P(aT2P), mScriptObject(nsnull)
{
NS_INIT_REFCNT();
}