From bf8b4d519b84501dfb684456f9b11596e58b6c92 Mon Sep 17 00:00:00 2001 From: "blythe%netscape.com" Date: Wed, 17 May 2006 02:33:53 +0000 Subject: [PATCH] Fix bug 107270 Reduce nsCSSDeclaration footprint r=dbaron, sr=hyatt --- layout/inspector/src/inCSSValueSearch.cpp | 4 ++-- layout/inspector/src/inCSSValueSearch.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/inspector/src/inCSSValueSearch.cpp b/layout/inspector/src/inCSSValueSearch.cpp index 70c6a36520ad..af97ac02672c 100644 --- a/layout/inspector/src/inCSSValueSearch.cpp +++ b/layout/inspector/src/inCSSValueSearch.cpp @@ -314,7 +314,7 @@ inCSSValueSearch::SearchStyleRule(nsIStyleRule* aStyleRule) nsCOMPtr cssRule = do_QueryInterface(aStyleRule); if (cssRule) { - nsCOMPtr aDec = cssRule->GetDeclaration(); + nsCSSDeclaration* aDec = cssRule->GetDeclaration(); for (PRUint32 i = 0; i < mPropertyCount; i++) { nsCSSProperty prop = mProperties[i]; SearchStyleValue(aDec, prop); @@ -327,7 +327,7 @@ inCSSValueSearch::SearchStyleRule(nsIStyleRule* aStyleRule) } nsresult -inCSSValueSearch::SearchStyleValue(nsICSSDeclaration* aDec, nsCSSProperty aProp) +inCSSValueSearch::SearchStyleValue(nsCSSDeclaration* aDec, nsCSSProperty aProp) { const nsAFlatCString& cstring = nsCSSProps::GetStringValue(aProp); diff --git a/layout/inspector/src/inCSSValueSearch.h b/layout/inspector/src/inCSSValueSearch.h index fa6eabe856ab..8d1105175865 100644 --- a/layout/inspector/src/inCSSValueSearch.h +++ b/layout/inspector/src/inCSSValueSearch.h @@ -49,7 +49,7 @@ #include "nsVoidArray.h" #include "nsICSSStyleSheet.h" #include "nsICSSStyleRule.h" -#include "nsICSSDeclaration.h" +#include "nsCSSDeclaration.h" #include "nsCSSValue.h" class inCSSValueSearch : public inICSSValueSearch @@ -82,7 +82,7 @@ protected: nsresult KillSearch(PRInt16 aResult); nsresult SearchStyleSheet(nsIStyleSheet* aStyleSheet); nsresult SearchStyleRule(nsIStyleRule* aStyleRule); - nsresult SearchStyleValue(nsICSSDeclaration* aDec, nsCSSProperty aProp); + nsresult SearchStyleValue(nsCSSDeclaration* aDec, nsCSSProperty aProp); nsresult EqualizeURL(nsAutoString* aURL); };