Backed out changeset 9a76090acf6e (bug 1377158)

This commit is contained in:
Carsten "Tomcat" Book 2017-07-25 14:33:56 +02:00
parent 7e08f878eb
commit 5a0eb76631
2 changed files with 4 additions and 9 deletions

View File

@ -22,8 +22,6 @@
#include "nsIXMLContentSink.h"
#include "nsNetCID.h"
#include "nsComponentManagerUtils.h"
#include "nsContentDLF.h"
#include "nsContentCID.h"
#include "nsSMILAnimationController.h"
#include "nsServiceManagerUtils.h"
#include "mozilla/dom/SVGSVGElement.h"
@ -50,9 +48,8 @@ NS_IMPL_ISUPPORTS(SVGDocumentWrapper,
nsIObserver,
nsISupportsWeakReference)
SVGDocumentWrapper::SVGDocumentWrapper(StyleBackendType aStyleBackendType /* = StyleBackendType::None */)
: mStyleBackendType(aStyleBackendType),
mIgnoreInvalidation(false),
SVGDocumentWrapper::SVGDocumentWrapper()
: mIgnoreInvalidation(false),
mRegisteredForXPCOMShutdown(false)
{ }
@ -348,7 +345,7 @@ SVGDocumentWrapper::SetupViewer(nsIRequest* aRequest,
newLoadGroup,
NS_LITERAL_CSTRING(IMAGE_SVG_XML),
nullptr, nullptr,
(int16_t)mStyleBackendType,
nsIDocumentLoaderFactory::STYLE_BACKEND_TYPE_NONE,
getter_AddRefs(listener),
getter_AddRefs(viewer));
NS_ENSURE_SUCCESS(rv, rv);

View File

@ -9,7 +9,6 @@
#define mozilla_image_SVGDocumentWrapper_h
#include "mozilla/Attributes.h"
#include "mozilla/StyleBackendType.h"
#include "nsCOMPtr.h"
#include "nsIStreamListener.h"
@ -40,7 +39,7 @@ class SVGDocumentWrapper final : public nsIStreamListener,
nsSupportsWeakReference
{
public:
explicit SVGDocumentWrapper(StyleBackendType aStyleBackendType = StyleBackendType::None);
SVGDocumentWrapper();
NS_DECL_ISUPPORTS
NS_DECL_NSISTREAMLISTENER
@ -142,7 +141,6 @@ private:
nsCOMPtr<nsIContentViewer> mViewer;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsCOMPtr<nsIStreamListener> mListener;
StyleBackendType mStyleBackendType;
bool mIgnoreInvalidation;
bool mRegisteredForXPCOMShutdown;
};