Remove no-longer-needed hook for inspector. b=224164

This commit is contained in:
dbaron%dbaron.org 2003-12-29 19:17:22 +00:00
parent 44b9fdaacb
commit 40deca4b2f
6 changed files with 6 additions and 40 deletions

View File

@ -75,14 +75,6 @@ public:
nsresult GetValue(nsCSSProperty aProperty, nsAString& aValue) const;
nsresult GetValue(const nsAString& aProperty, nsAString& aValue) const;
/**
* May be called only for properties whose type is eCSSType_Value.
*
* XXX It would be good to make this protected, which means not using
* it from inspector via CSSStyleRuleImpl.
*/
nsresult GetValueOrImportantValue(nsCSSProperty aProperty, nsCSSValue& aValue) const;
PRBool HasImportantData() const { return mImportantData != nsnull; }
PRBool GetValueIsImportant(nsCSSProperty aProperty) const;
PRBool GetValueIsImportant(const nsAString& aProperty) const;
@ -162,6 +154,9 @@ private:
// return whether there was a value in |aValue| (i.e., it had a non-null unit)
PRBool AppendCSSValueToString(nsCSSProperty aProperty, const nsCSSValue& aValue, nsAString& aResult) const;
// May be called only for properties whose type is eCSSType_Value.
nsresult GetValueOrImportantValue(nsCSSProperty aProperty, nsCSSValue& aValue) const;
void PropertyIsSet(PRInt32 & aPropertyIndex, PRInt32 aIndex, PRUint32 & aSet, PRUint32 aValue) const;
PRBool TryBorderShorthand(nsAString & aString, PRUint32 aPropertiesSet,
PRInt32 aBorderTopWidth,

View File

@ -1192,9 +1192,6 @@ public:
virtual already_AddRefed<nsIStyleRule> GetImportantRule(void);
// hook for inspector
virtual nsresult GetValue(nsCSSProperty aProperty, nsCSSValue& aValue);
NS_IMETHOD GetStyleSheet(nsIStyleSheet*& aSheet) const;
NS_IMETHOD SetStyleSheet(nsICSSStyleSheet* aSheet);
@ -1352,12 +1349,6 @@ already_AddRefed<nsIStyleRule> CSSStyleRuleImpl::GetImportantRule(void)
return mImportantRule;
}
nsresult
CSSStyleRuleImpl::GetValue(nsCSSProperty aProperty, nsCSSValue& aValue)
{
return mDeclaration->GetValueOrImportantValue(aProperty, aValue);
}
NS_IMETHODIMP
CSSStyleRuleImpl::GetStyleSheet(nsIStyleSheet*& aSheet) const
{

View File

@ -215,9 +215,6 @@ public:
virtual already_AddRefed<nsIStyleRule> GetImportantRule(void) = 0;
// Hook for inspector.
virtual nsresult GetValue(nsCSSProperty aProperty, nsCSSValue& aValue) = 0;
// hooks for DOM rule
virtual nsresult GetCssText(nsAString& aCssText) = 0;
virtual nsresult SetCssText(const nsAString& aCssText) = 0;

View File

@ -75,14 +75,6 @@ public:
nsresult GetValue(nsCSSProperty aProperty, nsAString& aValue) const;
nsresult GetValue(const nsAString& aProperty, nsAString& aValue) const;
/**
* May be called only for properties whose type is eCSSType_Value.
*
* XXX It would be good to make this protected, which means not using
* it from inspector via CSSStyleRuleImpl.
*/
nsresult GetValueOrImportantValue(nsCSSProperty aProperty, nsCSSValue& aValue) const;
PRBool HasImportantData() const { return mImportantData != nsnull; }
PRBool GetValueIsImportant(nsCSSProperty aProperty) const;
PRBool GetValueIsImportant(const nsAString& aProperty) const;
@ -162,6 +154,9 @@ private:
// return whether there was a value in |aValue| (i.e., it had a non-null unit)
PRBool AppendCSSValueToString(nsCSSProperty aProperty, const nsCSSValue& aValue, nsAString& aResult) const;
// May be called only for properties whose type is eCSSType_Value.
nsresult GetValueOrImportantValue(nsCSSProperty aProperty, nsCSSValue& aValue) const;
void PropertyIsSet(PRInt32 & aPropertyIndex, PRInt32 aIndex, PRUint32 & aSet, PRUint32 aValue) const;
PRBool TryBorderShorthand(nsAString & aString, PRUint32 aPropertiesSet,
PRInt32 aBorderTopWidth,

View File

@ -1192,9 +1192,6 @@ public:
virtual already_AddRefed<nsIStyleRule> GetImportantRule(void);
// hook for inspector
virtual nsresult GetValue(nsCSSProperty aProperty, nsCSSValue& aValue);
NS_IMETHOD GetStyleSheet(nsIStyleSheet*& aSheet) const;
NS_IMETHOD SetStyleSheet(nsICSSStyleSheet* aSheet);
@ -1352,12 +1349,6 @@ already_AddRefed<nsIStyleRule> CSSStyleRuleImpl::GetImportantRule(void)
return mImportantRule;
}
nsresult
CSSStyleRuleImpl::GetValue(nsCSSProperty aProperty, nsCSSValue& aValue)
{
return mDeclaration->GetValueOrImportantValue(aProperty, aValue);
}
NS_IMETHODIMP
CSSStyleRuleImpl::GetStyleSheet(nsIStyleSheet*& aSheet) const
{

View File

@ -215,9 +215,6 @@ public:
virtual already_AddRefed<nsIStyleRule> GetImportantRule(void) = 0;
// Hook for inspector.
virtual nsresult GetValue(nsCSSProperty aProperty, nsCSSValue& aValue) = 0;
// hooks for DOM rule
virtual nsresult GetCssText(nsAString& aCssText) = 0;
virtual nsresult SetCssText(const nsAString& aCssText) = 0;