Bug 1625138 - Part 38: Replace mozilla::IsSame with std::is_same in dom/. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D68557
This commit is contained in:
André Bargull
2020-03-28 13:57:21 +00:00
parent 6cb8ad876e
commit 6a24aefe02
9 changed files with 38 additions and 29 deletions

View File

@@ -122,6 +122,7 @@
#include <algorithm>
#include <cmath>
#include <limits>
#include <type_traits>
mozilla::LazyLogModule gMediaElementLog("nsMediaElement");
static mozilla::LazyLogModule gMediaElementEventsLog("nsMediaElementEvents");
@@ -4907,7 +4908,7 @@ nsresult HTMLMediaElement::SetupDecoder(DecoderType* aDecoder,
rv = FinishDecoderSetup(aDecoder);
// Only ChannelMediaDecoder supports resource cloning.
if (IsSame<DecoderType, ChannelMediaDecoder>::value && NS_SUCCEEDED(rv)) {
if (std::is_same_v<DecoderType, ChannelMediaDecoder> && NS_SUCCEEDED(rv)) {
AddMediaElementToURITable();
NS_ASSERTION(
MediaElementTableCount(this, mLoadingSrc) == 1,