mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Hook up new property and fix a crasher.
This commit is contained in:
parent
301a298f35
commit
11724ca7b8
@ -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 :
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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 :
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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 :
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user