mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
bug 824970 - nsROCSSPrimitiveValue::GetRectValue() should return nsDOMCSSRect* r=bz
This commit is contained in:
parent
fec9d2daa0
commit
e6efa7865a
@ -158,7 +158,7 @@ DOMInterfaces = {
|
||||
|
||||
"CSSPrimitiveValue": {
|
||||
"nativeType": "nsROCSSPrimitiveValue",
|
||||
"resultNotAddRefed": ["GetRGBColorValue"]
|
||||
"resultNotAddRefed": ["getRGBColorValue", "getRectValue"]
|
||||
},
|
||||
|
||||
'CSSStyleDeclaration': {
|
||||
|
@ -458,7 +458,7 @@ nsROCSSPrimitiveValue::GetCounterValue(ErrorResult& aRv)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
already_AddRefed<nsDOMCSSRect>
|
||||
nsDOMCSSRect*
|
||||
nsROCSSPrimitiveValue::GetRectValue(ErrorResult& aRv)
|
||||
{
|
||||
if (mType != CSS_RECT) {
|
||||
@ -467,7 +467,6 @@ nsROCSSPrimitiveValue::GetRectValue(ErrorResult& aRv)
|
||||
}
|
||||
|
||||
NS_ASSERTION(mValue.mRect, "mValue.mRect should never be null");
|
||||
NS_ADDREF(mValue.mRect);
|
||||
return mValue.mRect;
|
||||
}
|
||||
|
||||
@ -475,7 +474,7 @@ NS_IMETHODIMP
|
||||
nsROCSSPrimitiveValue::GetRectValue(nsIDOMRect** aRect)
|
||||
{
|
||||
ErrorResult error;
|
||||
*aRect = GetRectValue(error).get();
|
||||
NS_IF_ADDREF(*aRect = GetRectValue(error));
|
||||
return error.ErrorCode();
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
void SetStringValue(uint16_t aUnitType, const nsAString& aString,
|
||||
mozilla::ErrorResult& aRv);
|
||||
already_AddRefed<nsIDOMCounter> GetCounterValue(mozilla::ErrorResult& aRv);
|
||||
already_AddRefed<nsDOMCSSRect> GetRectValue(mozilla::ErrorResult& aRv);
|
||||
nsDOMCSSRect* GetRectValue(mozilla::ErrorResult& aRv);
|
||||
nsDOMCSSRGBColor *GetRGBColorValue(mozilla::ErrorResult& aRv);
|
||||
|
||||
// nsROCSSPrimitiveValue
|
||||
|
Loading…
Reference in New Issue
Block a user