From fe602274b6eb5fe88b8db371360d77bcb33edded Mon Sep 17 00:00:00 2001 From: "glazman%netscape.com" Date: Tue, 15 May 2001 08:25:03 +0000 Subject: [PATCH] nsDOMCSSDeclaration::GetCssText not implemented; b=79722, r=harishd, sr=jst git-svn-id: svn://10.0.0.236/trunk@94974 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp | 9 ++++++++- mozilla/layout/style/nsDOMCSSDeclaration.cpp | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp b/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp index a10f72e1926..7be133f7268 100644 --- a/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp +++ b/mozilla/content/html/style/src/nsDOMCSSDeclaration.cpp @@ -67,8 +67,15 @@ NS_IMPL_RELEASE(nsDOMCSSDeclaration); NS_IMETHODIMP nsDOMCSSDeclaration::GetCssText(nsAWritableString& aCssText) { + nsCOMPtr decl; aCssText.Truncate(); - // XXX TBI + GetCSSDeclaration(getter_AddRefs(decl), PR_FALSE); + NS_ASSERTION(decl, "null CSSDeclaration"); + + if (decl) { + decl->ToString(aCssText); + } + return NS_OK; } diff --git a/mozilla/layout/style/nsDOMCSSDeclaration.cpp b/mozilla/layout/style/nsDOMCSSDeclaration.cpp index a10f72e1926..7be133f7268 100644 --- a/mozilla/layout/style/nsDOMCSSDeclaration.cpp +++ b/mozilla/layout/style/nsDOMCSSDeclaration.cpp @@ -67,8 +67,15 @@ NS_IMPL_RELEASE(nsDOMCSSDeclaration); NS_IMETHODIMP nsDOMCSSDeclaration::GetCssText(nsAWritableString& aCssText) { + nsCOMPtr decl; aCssText.Truncate(); - // XXX TBI + GetCSSDeclaration(getter_AddRefs(decl), PR_FALSE); + NS_ASSERTION(decl, "null CSSDeclaration"); + + if (decl) { + decl->ToString(aCssText); + } + return NS_OK; }