Bug 1495994 - Part 2: Remove some constructors/methods r=emilio
Depends on D7593 Differential Revision: https://phabricator.services.mozilla.com/D7594
This commit is contained in:
@@ -885,20 +885,6 @@ nsCSSValue::Array::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) cons
|
||||
return n;
|
||||
}
|
||||
|
||||
css::URLValueData::URLValueData(already_AddRefed<nsIURI> aURI,
|
||||
ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
CORSMode aCORSMode)
|
||||
: mURI(std::move(aURI))
|
||||
, mExtraData(std::move(aExtraData))
|
||||
, mURIResolved(true)
|
||||
, mString(aString)
|
||||
, mCORSMode(aCORSMode)
|
||||
{
|
||||
MOZ_ASSERT(mExtraData);
|
||||
MOZ_ASSERT(mExtraData->GetPrincipal());
|
||||
}
|
||||
|
||||
css::URLValueData::URLValueData(ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
CORSMode aCORSMode)
|
||||
@@ -1099,16 +1085,6 @@ css::URLValue::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const
|
||||
return n;
|
||||
}
|
||||
|
||||
css::ImageValue::ImageValue(nsIURI* aURI,
|
||||
ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
nsIDocument* aDocument,
|
||||
CORSMode aCORSMode)
|
||||
: URLValueData(do_AddRef(aURI), aString, std::move(aExtraData), aCORSMode)
|
||||
{
|
||||
LoadImage(aDocument);
|
||||
}
|
||||
|
||||
css::ImageValue::ImageValue(ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
CORSMode aCORSMode)
|
||||
|
||||
@@ -107,11 +107,6 @@ protected:
|
||||
URLValueData(ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
CORSMode aCORSMode);
|
||||
// Construct with the actual URI.
|
||||
URLValueData(already_AddRefed<nsIURI> aURI,
|
||||
ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
CORSMode aCORSMode);
|
||||
|
||||
public:
|
||||
// Returns true iff all fields of the two URLValueData objects are equal.
|
||||
@@ -208,24 +203,6 @@ struct ImageValue final : public URLValueData
|
||||
// Not making the constructor and destructor inline because that would
|
||||
// force us to include imgIRequest.h, which leads to REQUIRES hell, since
|
||||
// this header is included all over.
|
||||
//
|
||||
// This constructor is only safe to call from the main thread.
|
||||
ImageValue(nsIURI* aURI, const nsAString& aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
nsIDocument* aDocument,
|
||||
CORSMode aCORSMode);
|
||||
|
||||
// This constructor is only safe to call from the main thread.
|
||||
ImageValue(nsIURI* aURI, ServoRawOffsetArc<RustString> aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
nsIDocument* aDocument,
|
||||
CORSMode aCORSMode);
|
||||
|
||||
// This constructor is safe to call from any thread, but Initialize
|
||||
// must be called later for the object to be useful.
|
||||
ImageValue(const nsAString& aString,
|
||||
already_AddRefed<URLExtraData> aExtraData,
|
||||
CORSMode aCORSMode);
|
||||
|
||||
// This constructor is safe to call from any thread, but Initialize
|
||||
// must be called later for the object to be useful.
|
||||
|
||||
Reference in New Issue
Block a user