Implement the DOM interfaces for CSS style rules on a wrapper object which allows the immutable rule object to be swapped out underneath. b=188803 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@144087 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -148,23 +148,6 @@ nsDOMCSSDeclaration::GetLength(PRUint32* aLength)
|
||||
return result;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMCSSDeclaration::GetParentRule(nsIDOMCSSRule** aParentRule)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aParentRule);
|
||||
*aParentRule = nsnull;
|
||||
|
||||
nsCOMPtr<nsISupports> parent;
|
||||
|
||||
GetParent(getter_AddRefs(parent));
|
||||
|
||||
if (parent) {
|
||||
CallQueryInterface(parent, aParentRule);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMCSSDeclaration::GetPropertyCSSValue(const nsAString& aPropertyName,
|
||||
nsIDOMCSSValue** aReturn)
|
||||
|
||||
Reference in New Issue
Block a user