From 770cb9a4b98947b5508278aeb7532d42fd973cae Mon Sep 17 00:00:00 2001 From: athenian200 Date: Tue, 27 Oct 2020 20:37:50 -0500 Subject: Issue #1673 - Part 4: Unprefix -moz-tab-size. While we do fail a couple of tests, the other mainstream browsers also fail them and I think our implementation of tab-size is good enough to be unprefixed at this point. Having this patch also makes testing easier. --- parser/html/nsHtml5ViewSourceUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser') diff --git a/parser/html/nsHtml5ViewSourceUtils.cpp b/parser/html/nsHtml5ViewSourceUtils.cpp index b2f635bff..910a6691e 100644 --- a/parser/html/nsHtml5ViewSourceUtils.cpp +++ b/parser/html/nsHtml5ViewSourceUtils.cpp @@ -31,7 +31,7 @@ nsHtml5ViewSourceUtils::NewBodyAttributes() int32_t tabSize = mozilla::Preferences::GetInt("view_source.tab_size", 4); if (tabSize > 0) { nsString style; - style.AssignASCII("-moz-tab-size: "); + style.AssignASCII("tab-size: "); style.AppendInt(tabSize); bodyAttrs->addAttribute( nsHtml5AttributeName::ATTR_STYLE, nsHtml5String::FromString(style), -1); -- cgit v1.2.3 From 727f4372a9b3f8cfd4e8c7077a85b60041090b57 Mon Sep 17 00:00:00 2001 From: Henri Sivonen Date: Wed, 18 Nov 2020 23:28:27 +0000 Subject: [parser] Make the refcount of nsHtml5OwningUTF16Buffer atomic. --- parser/html/nsHtml5OwningUTF16Buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser') diff --git a/parser/html/nsHtml5OwningUTF16Buffer.h b/parser/html/nsHtml5OwningUTF16Buffer.h index d7e3200ea..0d8777464 100644 --- a/parser/html/nsHtml5OwningUTF16Buffer.h +++ b/parser/html/nsHtml5OwningUTF16Buffer.h @@ -52,7 +52,7 @@ public: nsrefcnt AddRef(); nsrefcnt Release(); private: - nsAutoRefCnt mRefCnt; + mozilla::ThreadSafeAutoRefCnt mRefCnt; }; #endif // nsHtml5OwningUTF16Buffer_h -- cgit v1.2.3