From e1d6c0a91b44a5430dd275bd8a91ddf41cafce88 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sat, 17 Jan 2015 14:16:11 -0500 Subject: [PATCH] Bug 1122936 - Make nsPlainTextSerializer final; r=bzbarsky --- dom/base/nsPlainTextSerializer.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dom/base/nsPlainTextSerializer.h b/dom/base/nsPlainTextSerializer.h index 5688fed5d99c..479272a76ad0 100644 --- a/dom/base/nsPlainTextSerializer.h +++ b/dom/base/nsPlainTextSerializer.h @@ -32,7 +32,7 @@ class Element; } // namespace dom } // namespace mozilla -class nsPlainTextSerializer : public nsIContentSerializer +class nsPlainTextSerializer MOZ_FINAL : public nsIContentSerializer { public: nsPlainTextSerializer(); @@ -67,8 +67,8 @@ public: NS_IMETHOD AppendDocumentStart(nsIDocument *aDocument, nsAString& aStr) MOZ_OVERRIDE; -protected: - virtual ~nsPlainTextSerializer(); +private: + ~nsPlainTextSerializer(); nsresult GetAttributeValue(nsIAtom* aName, nsString& aValueRet); void AddToLine(const char16_t* aStringToAdd, int32_t aLength); @@ -114,10 +114,9 @@ protected: bool ShouldReplaceContainerWithPlaceholder(nsIAtom* aTag); -private: bool IsElementPreformatted(mozilla::dom::Element* aElement); -protected: +private: nsString mCurrentLine; uint32_t mHeadLevel; bool mAtFirstColumn;