Skip to content

Commit 6d5026c

Browse files
committed
Backed out changeset 19fbc34f239c (bug 1374629)
MozReview-Commit-ID: KPYcFSnOpU8
1 parent fe34bc0 commit 6d5026c

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

dom/base/FormData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ using namespace mozilla;
1818
using namespace mozilla::dom;
1919

2020
FormData::FormData(nsISupports* aOwner)
21-
: HTMLFormSubmission(UTF_8_ENCODING, nullptr)
21+
: HTMLFormSubmission(WrapNotNull(UTF_8_ENCODING), nullptr)
2222
, mOwner(aOwner)
2323
{
2424
}
@@ -402,7 +402,7 @@ NS_IMETHODIMP
402402
FormData::GetSendInfo(nsIInputStream** aBody, uint64_t* aContentLength,
403403
nsACString& aContentTypeWithCharset, nsACString& aCharset)
404404
{
405-
FSMultipartFormData fs(UTF_8_ENCODING, nullptr);
405+
FSMultipartFormData fs(WrapNotNull(UTF_8_ENCODING), nullptr);
406406

407407
for (uint32_t i = 0; i < mFormData.Length(); ++i) {
408408
if (mFormData[i].wasNullBlob) {

dom/html/HTMLFormSubmission.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ GetSubmitEncoding(nsGenericHTMLElement* aForm)
889889
if (doc) {
890890
return Encoding::ForName(doc->GetDocumentCharacterSet());
891891
}
892-
return UTF_8_ENCODING;
892+
return WrapNotNull(UTF_8_ENCODING);
893893
}
894894

895895
void

intl/Encoding.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class Encoder;
2727
}; // namespace mozilla
2828

2929
#define ENCODING_RS_ENCODING mozilla::Encoding
30-
#define ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR mozilla::NotNull<const mozilla::Encoding*>
3130
#define ENCODING_RS_ENCODER mozilla::Encoder
3231
#define ENCODING_RS_DECODER mozilla::Decoder
3332

intl/gtest/TestEncoding.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@
44
#include "gtest/gtest.h"
55

66
#include "mozilla/Encoding.h"
7-
#include <type_traits>
87

98
#define ENCODING_TEST(name) TEST(EncodingTest, name)
109

1110
using namespace mozilla;
1211

13-
static_assert(std::is_trivially_copyable<NotNull<const Encoding*>>::value,
14-
"NotNull<const Encoding*> must be trivially copyable.");
15-
static_assert(std::is_standard_layout<NotNull<const Encoding*>>::value,
16-
"NotNull<const Encoding*> must be a standard layout type.");
17-
1812
// These tests mainly test that the C++ interface seems to
1913
// reach the Rust code. More thorough testing of the back
2014
// end is done in Rust.

0 commit comments

Comments
 (0)