Backout 58e2cab9572e, bad patch.

This commit is contained in:
Peter Van der Beken 2014-11-04 12:35:02 +01:00
Родитель baa4f7ed4e
Коммит 688c64b71b
14 изменённых файлов: 8 добавлений и 118 удалений

Просмотреть файл

@ -12401,7 +12401,7 @@ nsIDocument::CreateNSResolver(nsINode& aNodeResolver)
already_AddRefed<XPathResult>
nsIDocument::Evaluate(JSContext* aCx, const nsAString& aExpression,
nsINode& aContextNode, XPathNSResolver* aResolver,
nsINode* aContextNode, XPathNSResolver* aResolver,
uint16_t aType, JS::Handle<JSObject*> aResult,
ErrorResult& rv)
{

Просмотреть файл

@ -2344,7 +2344,7 @@ public:
mozilla::ErrorResult& rv);
nsINode* CreateNSResolver(nsINode& aNodeResolver);
already_AddRefed<mozilla::dom::XPathResult>
Evaluate(JSContext* aCx, const nsAString& aExpression, nsINode& aContextNode,
Evaluate(JSContext* aCx, const nsAString& aExpression, nsINode* aContextNode,
mozilla::dom::XPathNSResolver* aResolver, uint16_t aType,
JS::Handle<JSObject*> aResult, mozilla::ErrorResult& rv);
// Touch event handlers already on nsINode

Просмотреть файл

@ -2487,66 +2487,4 @@ GetUserMediaNotificationEvent::Run()
return MediaManager::NotifyRecordingStatusChange(window, msg, mIsAudio, mIsVideo);
}
NS_IMETHODIMP
MediaManager::GetDecoderVersions(uint32_t* aCount, char*** aDecoders)
{
nsTArray<nsCString> decorders;
#ifdef MOZ_RAW
if (MediaDecoder::IsRawEnabled()) {
decorders.AppendElement()->AppendLiteral("Raw");
}
#endif
#ifdef MOZ_WAVE
if (MediaDecoder::IsWaveEnabled()) {
decorders.AppendElement()->AppendLiteral("Wave");
}
#endif
#if defined(MOZ_WEBM) && !defined(MOZ_OMX_WEBM_DECODER)
#endif
#if defined(MOZ_FMP4) && !defined(MOZ_OMX_DECODER)
if (Preferences::GetBool("media.fragmented-mp4.exposed", false)) {
decorders.AppendElement()->AppendLiteral("Fragmented MP4");
}
#endif
#ifdef MOZ_GSTREAMER
if (MediaDecoder::IsGStreamerEnabled()) {
guint major, minor, micro, nano;
gst_version(major, minor, micro, nano);
decorders.AppendElement()->AppendPrintf("Fragmented MP4 %i.%i.%i.%i", major, minor, micro, nano);
}
#endif
#ifdef MOZ_OMX_DECODER
#endif
#ifdef MOZ_OMX_WEBM_DECODER
#endif
#ifdef MOZ_DIRECTSHOW
#endif
#ifdef MOZ_WMF
#endif
#ifdef MOZ_APPLEMEDIA
if (MediaDecoder::IsAppleMP3Enabled()) {
decorders.AppendElement()->AppendLiteral("Apple MP3");
}
#endif
#ifdef MOZ_ANDROID_OMX
#endif
#ifdef NECKO_PROTOCOL_rtsp
#endif
*aCount = decorders.Length();
char** ret =
static_cast<char**>(NS_Alloc(*aCount * sizeof(char*)));
if (!ret) {
return NS_ERROR_OUT_OF_MEMORY;
}
for (uint32_t i = 0; i < *aCount; ++i) {
ret[i] = NS_strdup(decorders[i].get());
}
*aDecoders = ret;
return NS_OK;
}
} // namespace mozilla

Просмотреть файл

@ -73,7 +73,6 @@ GST_FUNC(LIBGSTREAMER, gst_structure_get_int)
GST_FUNC(LIBGSTREAMER, gst_structure_get_value)
GST_FUNC(LIBGSTREAMER, gst_structure_new)
GST_FUNC(LIBGSTREAMER, gst_util_uint64_scale)
GST_FUNC(LIBGSTREAMER, gst_version)
#if GST_VERSION_MAJOR == 0
GST_FUNC(LIBGSTAPP, gst_app_sink_pull_buffer)

Просмотреть файл

@ -22,7 +22,4 @@ interface nsIMediaManagerService : nsISupports
void mediaCaptureWindowState(in nsIDOMWindow aWindow, out boolean aVideo, out boolean aAudio,
[optional] out boolean aScreenShare, [optional] out boolean aWindowShare,
[optional] out boolean aAppShare);
void getDecoderVersions([optional] out unsigned long aCount,
[retval, array, size_is(aCount)] out string aDecoders);
};

Просмотреть файл

@ -13,7 +13,7 @@ interface XPathEvaluator {
[Pure]
Node createNSResolver(Node nodeResolver);
[Throws]
XPathResult evaluate(DOMString expression, Node contextNode,
XPathResult evaluate(DOMString expression, Node? contextNode,
XPathNSResolver? resolver, unsigned short type,
object? result);
};

Просмотреть файл

@ -1,3 +0,0 @@
<script>
var xpathResult = document.evaluate('', null, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
</script>

Просмотреть файл

@ -14,4 +14,3 @@ load 601543.html
load 603844.html
load 602115.html
load 667315.xml
load 1089049.html

Просмотреть файл

@ -175,16 +175,16 @@ XPathEvaluator::Constructor(const GlobalObject& aGlobal,
already_AddRefed<XPathResult>
XPathEvaluator::Evaluate(JSContext* aCx, const nsAString& aExpression,
nsINode& aContextNode, XPathNSResolver* aResolver,
uint16_t aType, JS::Handle<JSObject*> aResult,
ErrorResult& rv)
nsINode* aContextNode,
XPathNSResolver* aResolver, uint16_t aType,
JS::Handle<JSObject*> aResult, ErrorResult& rv)
{
nsAutoPtr<XPathExpression> expression(CreateExpression(aExpression,
aResolver, rv));
if (rv.Failed()) {
return nullptr;
}
return expression->Evaluate(aCx, aContextNode, aType, aResult, rv);
return expression->Evaluate(aCx, *aContextNode, aType, aResult, rv);
}

Просмотреть файл

@ -64,7 +64,7 @@ public:
}
already_AddRefed<XPathResult>
Evaluate(JSContext* aCx, const nsAString& aExpression,
nsINode& aContextNode, XPathNSResolver* aResolver,
nsINode* aContextNode, XPathNSResolver* aResolver,
uint16_t aType, JS::Handle<JSObject*> aResult,
ErrorResult& rv);
private:

Просмотреть файл

@ -271,18 +271,6 @@ let snapshotFormatters = {
$.append($("graphics-tbody"), trs);
},
media: function media(data) {
// media-tbody tbody
dump("BAAAAAR\n" + data.toSource() + "\n");
let trs = data["decoderVersions"].map(function (val) {
return $.new("tr", [
$.new("td", val),
]);
});
$.append($("media-tbody"), trs);
},
javaScript: function javaScript(data) {
$("javascript-incremental-gc").textContent = data.incrementalGCEnabled;
},

Просмотреть файл

@ -247,23 +247,6 @@
<!-- - - - - - - - - - - - - - - - - - - - - -->
<h2 class="major-section">
&aboutSupport.mediaTitle;
</h2>
<table>
<thead class="no-copy">
<th>
&aboutSupport.decoderVersions;
</th>
</thead>
<tbody id="media-tbody">
</tbody>
</table>
<!-- - - - - - - - - - - - - - - - - - - - - -->
<h2 class="major-section">
&aboutSupport.modifiedKeyPrefsTitle;
</h2>

Просмотреть файл

@ -93,6 +93,3 @@ variant of aboutSupport.showDir.label. -->
<!ENTITY aboutSupport.copyTextToClipboard.label "Copy text to clipboard">
<!ENTITY aboutSupport.copyRawDataToClipboard.label "Copy raw data to clipboard">
<!ENTITY aboutSupport.mediaTitle "Media">
<!ENTITY aboutSupport.decoderVersions "Decoder versions">

Просмотреть файл

@ -417,14 +417,6 @@ let dataProviders = {
done(data);
},
media: function media(done) {
let data = {};
let mediaMgr = Cc["@mozilla.org/mediaManagerService;1"].getService(Ci.nsIMediaManagerService);
data.decoderVersions = mediaMgr.getDecoderVersions();
dump("FOOOOOOO\n" + data.toSource() + "\n");
done(data);
},
javaScript: function javaScript(done) {
let data = {};
let winEnumer = Services.ww.getWindowEnumerator();