mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Remove no-longer-needed hook for inspector. b=224164
This commit is contained in:
parent
44b9fdaacb
commit
40deca4b2f
@ -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,
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user