Commit Graph

12404 Commits

Author SHA1 Message Date
Jeff Muizelaar
fb108fc4cc Bug 811836. Fast path eCSSUnit_Color colors when parsing colors in canvas. r=dholbert
This will avoid doing extra work/flushing layout in the common case.

--HG--
extra : rebase_source : 95df23c3e6a5118ec4964336465a6554705b99dd
2012-11-14 12:46:26 -08:00
Peter Van der Beken
04d165e18c Fix for bug 807075 (New DOM binding APIs for HTMLElement). r=bz.
--HG--
extra : rebase_source : 842b9397d2b050f880c44d3366bcc838e6615fd5
2012-11-11 00:30:15 +01:00
Ehsan Akhgari
d6aa3be16d Bug 811555 - Make AudioContext.createDelay not accept arguments greater than or equal to 3; r=bzbarsky
--HG--
extra : rebase_source : 5ad2006acb9c27ba7f94c0d1858a19d71cc663c4
2012-11-13 16:46:25 -08:00
Chris Pearce
9abb830db0 Bug 811381 - Remove ns prefix from media code. r=roc
--HG--
rename : content/media/nsAudioAvailableEventManager.cpp => content/media/AudioAvailableEventManager.cpp
rename : content/media/nsAudioAvailableEventManager.h => content/media/AudioAvailableEventManager.h
rename : content/media/nsAudioStream.cpp => content/media/AudioStream.cpp
rename : content/media/nsAudioStream.h => content/media/AudioStream.h
rename : content/media/nsMediaCache.cpp => content/media/MediaCache.cpp
rename : content/media/nsMediaCache.h => content/media/MediaCache.h
rename : content/media/nsBuiltinDecoder.cpp => content/media/MediaDecoder.cpp
rename : content/media/nsBuiltinDecoder.h => content/media/MediaDecoder.h
rename : content/media/nsBuiltinDecoderReader.cpp => content/media/MediaDecoderReader.cpp
rename : content/media/nsBuiltinDecoderReader.h => content/media/MediaDecoderReader.h
rename : content/media/nsBuiltinDecoderStateMachine.cpp => content/media/MediaDecoderStateMachine.cpp
rename : content/media/nsBuiltinDecoderStateMachine.h => content/media/MediaDecoderStateMachine.h
rename : content/media/dash/nsDASHDecoder.cpp => content/media/dash/DASHDecoder.cpp
rename : content/media/dash/nsDASHDecoder.h => content/media/dash/DASHDecoder.h
rename : content/media/dash/nsDASHReader.cpp => content/media/dash/DASHReader.cpp
rename : content/media/dash/nsDASHReader.h => content/media/dash/DASHReader.h
rename : content/media/dash/nsDASHRepDecoder.cpp => content/media/dash/DASHRepDecoder.cpp
rename : content/media/dash/nsDASHRepDecoder.h => content/media/dash/DASHRepDecoder.h
rename : content/media/gstreamer/nsGStreamerDecoder.cpp => content/media/gstreamer/GStreamerDecoder.cpp
rename : content/media/gstreamer/nsGStreamerDecoder.h => content/media/gstreamer/GStreamerDecoder.h
rename : content/media/gstreamer/nsGStreamerReader.cpp => content/media/gstreamer/GStreamerReader.cpp
rename : content/media/gstreamer/nsGStreamerReader.h => content/media/gstreamer/GStreamerReader.h
rename : content/media/ogg/nsOggCodecState.cpp => content/media/ogg/OggCodecState.cpp
rename : content/media/ogg/nsOggCodecState.h => content/media/ogg/OggCodecState.h
rename : content/media/ogg/nsOggDecoder.cpp => content/media/ogg/OggDecoder.cpp
rename : content/media/ogg/nsOggDecoder.h => content/media/ogg/OggDecoder.h
rename : content/media/ogg/nsOggReader.cpp => content/media/ogg/OggReader.cpp
rename : content/media/ogg/nsOggReader.h => content/media/ogg/OggReader.h
rename : content/media/omx/nsMediaOmxDecoder.cpp => content/media/omx/MediaOmxDecoder.cpp
rename : content/media/omx/nsMediaOmxDecoder.h => content/media/omx/MediaOmxDecoder.h
rename : content/media/omx/nsMediaOmxReader.cpp => content/media/omx/MediaOmxReader.cpp
rename : content/media/omx/nsMediaOmxReader.h => content/media/omx/MediaOmxReader.h
rename : content/media/plugins/nsMediaPluginDecoder.cpp => content/media/plugins/MediaPluginDecoder.cpp
rename : content/media/plugins/nsMediaPluginDecoder.h => content/media/plugins/MediaPluginDecoder.h
rename : content/media/plugins/nsMediaPluginHost.cpp => content/media/plugins/MediaPluginHost.cpp
rename : content/media/plugins/nsMediaPluginHost.h => content/media/plugins/MediaPluginHost.h
rename : content/media/plugins/nsMediaPluginReader.cpp => content/media/plugins/MediaPluginReader.cpp
rename : content/media/plugins/nsMediaPluginReader.h => content/media/plugins/MediaPluginReader.h
rename : content/media/raw/nsRawDecoder.cpp => content/media/raw/RawDecoder.cpp
rename : content/media/raw/nsRawDecoder.h => content/media/raw/RawDecoder.h
rename : content/media/raw/nsRawReader.cpp => content/media/raw/RawReader.cpp
rename : content/media/raw/nsRawReader.h => content/media/raw/RawReader.h
rename : content/media/raw/nsRawStructs.h => content/media/raw/RawStructs.h
rename : content/media/wave/nsWaveDecoder.cpp => content/media/wave/WaveDecoder.cpp
rename : content/media/wave/nsWaveDecoder.h => content/media/wave/WaveDecoder.h
rename : content/media/wave/nsWaveReader.cpp => content/media/wave/WaveReader.cpp
rename : content/media/wave/nsWaveReader.h => content/media/wave/WaveReader.h
rename : content/media/webm/nsWebMBufferedParser.cpp => content/media/webm/WebMBufferedParser.cpp
rename : content/media/webm/nsWebMBufferedParser.h => content/media/webm/WebMBufferedParser.h
rename : content/media/webm/nsWebMDecoder.cpp => content/media/webm/WebMDecoder.cpp
rename : content/media/webm/nsWebMDecoder.h => content/media/webm/WebMDecoder.h
rename : content/media/webm/nsWebMReader.cpp => content/media/webm/WebMReader.cpp
rename : content/media/webm/nsWebMReader.h => content/media/webm/WebMReader.h
2012-11-14 11:46:40 -08:00
Chris Pearce
42d7fd21b1 Bug 811381 - Move media code into mozilla namespace. r=roc 2012-11-14 11:45:33 -08:00
Chris Pearce
43653d0ccc Bug 811381 - Move NextFrameStatus to MediaDecoderOwner, so that nsHTMLMediaElement doesn't need to include all of nsBuiltinDecoder. r=roc 2012-11-14 11:45:31 -08:00
Chris Pearce
f9e8b1f20a Bug 811381 - Flatten nsMediaDecoder and nsBuiltinDecoder into a single class. r=roc 2012-11-14 11:45:13 -08:00
Daniel Glazman
ec5abc800c Bug 811679 - Add nsIEditorObserver back; r=ehsan 2012-11-14 11:23:35 -08:00
John Schoenick
84042d1614 Bug 787778 - Add test. r=josh 2012-11-14 11:20:02 -08:00
Cameron McCormack
c70fffb507 Bug 811581 - Add a base class for all *RuleProcessorData classes. r=bz 2012-11-15 06:09:01 +11:00
Boris Zbarsky
065f87a659 Bug 811663 part 2. Create a DocumentFragment.h header. r=smaug
All the code is just being moved without any changes.
2012-11-14 10:05:41 -08:00
Boris Zbarsky
31e38ced9b Bug 811663 part 1. Rename nsDocumentFragment to mozilla::dom::DocumentFragment. r=smaug
--HG--
rename : content/base/src/nsDocumentFragment.cpp => content/base/src/DocumentFragment.cpp
2012-11-14 10:05:41 -08:00
Boris Zbarsky
bc9949138a Bug 809765. Match the HTML spec in terms of which event handler attributes are compiled on which elements. r=smaug 2012-11-14 10:05:41 -08:00
Bobby Holley
46b9d205df Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
If callers want to throw, it's now their responsibility.
2012-11-14 09:56:26 -08:00
Ed Morley
b47760337b Backout 54c4f2ff78e3 (bug 807075) for Windows compilation errors 2012-11-14 16:45:28 +00:00
Benoit Jacob
bc758b2b7a Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 2: handmade fixups - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob
a1d7e0f511 Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
Benoit Jacob
0c5372efc3 Bug 806279 - CC macros refactoring: part 5: sample porting: content/canvas - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Benoit Jacob
ee1217da86 Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Benoit Jacob
4a50000d0e Bug 806279 - CC macros refactoring: part 1: implement type-generic CC UNLINK/TRAVERSE macros - r=mccr8,smaug 2012-11-15 02:32:39 -05:00
Robert O'Callahan
ef63ff8332 Bug 811301. Part 2: Remove saved state IDs now that the root scroll frame state is captured normally. r=mats 2012-11-14 22:40:17 -08:00
David Zbarsky
bfca907d39 No bug, fix struct/class mismatch warnings 2012-11-14 21:38:26 -05:00
David Zbarsky
472e3b25fa No bug, Fix virtual dtor warning, blanket r=bz 2012-11-14 21:38:25 -05:00
Brad Lassey
edd5ac461b bug 739542 - Disable screen timeout when playing HTML5 <video> (webm, H.264) r=doublec 2012-11-01 08:47:51 -04:00
Masayuki Nakano
84fc70f3a0 Bug 808287 nsTextStateManager shouldn't notify widget of selection changes and text changes after IME loses focus r=smaug 2012-11-13 10:20:40 +09:00
Ehsan Akhgari
894e1bca85 Merge mozilla-central into mozilla-inbound 2012-11-14 17:51:31 -08:00
Ehsan Akhgari
bb1d6972af Bug 811864 - Remove PannerNode.coneGain/distanceGain; r=bzbarsky 2012-11-14 13:03:24 -08:00
Randell Jesup
dde7ff9d8c Bug 809554: if a device has no uniqueId, use the name r=derf 2012-11-12 20:46:52 -05:00
Peter Van der Beken
30532e2297 Fix for bug 811069 (Make *Element.onerror return EventHandler instead of OnErrorEventHandler). r=bz.
--HG--
extra : rebase_source : a40c6cd2bad3126ee18392b41f4274380b211d10
2012-11-13 14:37:39 +01:00
Masayuki Nakano
b7ca37a234 Bug 805767 part.1 nsTextStateManager should use nsIWidget::GetIMEUpdatePreference() instead of the result of nsIWidget::OnIMEFocusChange() r=smaug 2012-11-13 22:04:44 +09:00
Andrew McCreight
84003305cc Bug 810094 - make nsXMLContentSink::mDocElement a COMptr. r=hsivonen 2012-11-12 09:43:02 -08:00
Peter Van der Beken
508194a997 Fix for bug 804950 (New DOM binding APIs for Element). r=bz.
--HG--
extra : rebase_source : a8691ead07dfa8ecca812396047627dc15474d83
2012-10-16 13:51:00 +02:00
Justin Lebar
3cd4470107 Bug 806127 - ThirdPartyUtil should not consider in-process <iframe mozbrowser/mozapp> to be third-party. r=bz 2012-11-10 10:32:37 -08:00
Justin Lebar
8c64b0474c Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-10 10:32:37 -08:00
Justin Lebar
5fc1f70e94 Bug 802366 - Prelude, part 1: Rename in-process-browser-frame-shown to in-process-browser-or-app-frame-shown. r=bz 2012-11-10 10:32:35 -08:00
Anant Narayanan
b541c1dade Bug 810164: Disable bfcache for pages with active PeerConnections; r=smaug,jesup 2012-11-09 21:04:27 -08:00
Benoit Jacob
637a173e95 Bug 800612 - actually increase WebGL element array test repetitions, patch didnt apply cleanly - r=jgilbert 2012-11-09 20:49:15 -05:00
Philipp von Weitershausen
c7830976fa Bug 809727 - Wait for the write transaction to finish so that the blobs are expired. r=janv 2012-11-09 20:32:10 -05:00
Ryan VanderMeulen
f774dcd8ba Backed out 12 changesets (bug 806127, bug 802366, bug 806168) for Windows build bustage.
--HG--
rename : dom/indexedDB/test/webapp_clearBrowserData.js => dom/indexedDB/test/test_webapp_clearBrowserData.html
2012-11-09 20:14:40 -05:00
Justin Lebar
aa329ec788 Bug 806127 - ThirdPartyUtil should not consider in-process <iframe mozbrowser/mozapp> to be third-party. r=bz 2012-11-09 16:37:40 -08:00
Justin Lebar
19b287d268 Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.
2012-11-09 16:37:39 -08:00
Justin Lebar
6a364c5f37 Bug 802366 - Prelude, part 1: Rename in-process-browser-frame-shown to in-process-browser-or-app-frame-shown. r=bz 2012-11-09 16:37:38 -08:00
Jim Mathies
264552a173 Backout Bug 810164 due to bustage. r=bustage 2012-11-09 18:04:23 -06:00
Anant Narayanan
515fe04fc1 Bug 810164: Disable bfcache for pages with active PeerConnections; r=smaug,jesup 2012-11-09 15:27:38 -08:00
Benoit Jacob
f6051a1713 Bug 806094 - Remove USE_ANGLE - r=jgilbert 2012-11-09 17:04:43 -05:00
Benoit Jacob
75063389a1 Bug 806091 - Don't export WebGL headers - r=jgilbert 2012-11-09 17:04:41 -05:00
Benoit Jacob
334956d772 Bug 802778 - validate level parameter in copyTexImage2D - r=jgilbert 2012-11-09 16:48:54 -05:00
Benoit Jacob
0281b26dbe Bug 800612 - 2/2 - Enable compiled code tests in content/canvas - r=ted
--HG--
rename : content/canvas/test/compiled/Makefile.in => content/canvas/compiledtest/Makefile.in
rename : content/canvas/test/compiled/TestWebGLElementArrayCache.cpp => content/canvas/compiledtest/TestWebGLElementArrayCache.cpp
2012-11-09 16:42:23 -05:00
Benoit Jacob
e2c9eb0eb1 Bug 800612 - 1/2 - fix WebGLElementArrayCache bug and increase test repetitions to catch this bug - r=jgilbert 2012-11-09 16:42:21 -05:00
Peter Van der Beken
584658dc3e Fix for bug 804991 (Make FromContent expect a non-null pointer and add FromContentOrNull). r=bz.
--HG--
extra : rebase_source : 52e1c9171d05ba034971cfa16741e12061e7335d
2012-09-26 16:17:51 +02:00
Boris Zbarsky
e1ded25637 Bug 807226 part 8. Remove the exceptions for EventHandler in WebIDL codegen. r=smaug 2012-11-09 08:00:25 -08:00
Boris Zbarsky
8e705c1123 Bug 807226 part 7. Move creation of our event handlers out to the relevant API methods. r=smaug
Note that once we switch all these guys to WebIDL bindings they'll
automatically get the callback objects passed in from binding code.
2012-11-09 08:00:25 -08:00
Boris Zbarsky
ec6ddc39d0 Bug 807226 part 6. Centralize our IMPL_EVENT_HANDLER macro definitions in nsDOMEventTargetHelper. r=smaug 2012-11-09 08:00:25 -08:00
Boris Zbarsky
6bb2c5dffa Bug 807226 part 5. Allow event handlers to have a null scope object if they don't have to compile from a string. r=smaug 2012-11-09 08:00:25 -08:00
Boris Zbarsky
2daa94afcd Bug 807226 part 4. Allow event handlers to have a null nsIScriptContext if they won't have to compile from a string. r=smaug 2012-11-09 08:00:25 -08:00
Boris Zbarsky
bf51164dc8 Bug 807226 part 2. Change event handlers to store WebIDL callback functions. r=smaug 2012-11-09 08:00:25 -08:00
Boris Zbarsky
3fff1fa34b Bug 807226 part 1. Make it easier to do special things with beforeunload and error events as needed. r=smaug 2012-11-09 08:00:24 -08:00
Boris Zbarsky
721e804d9a Bug 807224. Implement native-to-JS conversion for WebIDL unions. r=peterv 2012-11-09 07:59:33 -08:00
Boris Zbarsky
b44862af8b Bug 779048 part 10. Start using the new callback codegen in argument and return value conversion. r=peterv,smaug 2012-11-09 07:43:58 -08:00
Boris Zbarsky
2cca8f2c52 Bug 779048 part 9. Give JS-to-native conversion an object pointer to work with so it can convert callback objects. r=peterv 2012-11-09 07:43:58 -08:00
Boris Zbarsky
f05491aec8 Bug 779048 part 0.5. Don't require a JSContext argument for nsJSUtils::GetStaticScriptGlobal. r=bholley 2012-11-09 07:43:57 -08:00
Ehsan Akhgari
5c3198f30a Bug 809882 - Disallow non-positive arguments to AudioContext.createDelay; r=bzbarsky 2012-11-08 13:17:22 -05:00
Mounir Lamouri
2671f5a513 Bug 807613 - Add a pref to make the placeholder disappear when a text field is focused. r=bz 2012-11-09 10:32:58 +00:00
Mounir Lamouri
5eed937cc5 Bug 809584 - Move the placeholder visibility logic to nsTextEditorState. r=ehsan 2012-11-09 10:31:34 +00:00
Mounir Lamouri
58aa0a96d8 Bug 737786 - 2/5 - Use a pseudo-element instead of a pseudo-class for placeholder styling. r=bz 2012-11-09 10:24:23 +00:00
Mounir Lamouri
b48108567b Bug 737786 - 1/5 - Show/hide placeholder based on display lists instead of CSS class. r=bz 2012-11-09 10:22:29 +00:00
Marco Bonardo
552921d7dc Bug 799609 - Disable Places in B2G - Part 2 - Allow docshell and content to build without Places
Expose NotifyVisited API and fix code so it can be built with alternative history implementations.
r=jlebar
2012-11-09 10:55:54 +01:00
Masayuki Nakano
85e4e24816 Bug 806996 part.6 Test if nsIWidget::OnIMEFocusChange() is called by nsTextStateManager properly r=smaug 2012-11-09 17:40:40 +09:00
Masayuki Nakano
7ae8174ff1 Bug 806996 part.4 Make sure to recreate nsTextStateManager instance in OnFocusInEditor() and UpdateIMEState() if the focused editor isn't being managed r=smaug 2012-11-09 17:40:39 +09:00
Masayuki Nakano
20ea1ebbf7 Bug 806996 part.3 Make sure to call nsIWidget::OnIMEFocusChange(false) at destroying nsTextStateManager instance only once per calling nsIWidget::OnIMEFocusChange(true) r=smaug 2012-11-09 17:40:39 +09:00
Masayuki Nakano
2a122ad59f Bug 806996 part.2 nsTextStateManager::IsManaging() should check if mRootContent is still in the mEditableNode r=smaug 2012-11-09 17:40:39 +09:00
Masayuki Nakano
305c137140 Bug 806996 part.1 Remove nsTextStateManager::mDestroying r=smaug 2012-11-09 17:40:39 +09:00
Ehsan Akhgari
f739744839 Bug 810177 - Part 4: Make nsMediaDecoder not depend on nsHTMLMediaElement; r=cpearce
The basic idea in this patch is to create an MediaDecoderOwner
interface which nsHTMLMediaElement would implement, and put everything
needed by nsMediaDeocder on that interface.  In addition to that,
there are a number of other cleanup patches which enables us to
eliminate many of the nsHTMLMediaElement.h #includes in the media code.
2012-11-09 00:52:53 -05:00
Ehsan Akhgari
94d2c303e6 Bug 810177 - Part 3: Move the IsFormatEnabled methods from nsHTMLMediaElement to nsMediaDecoder; r=cpearce
This patch moves the various Is{Format}Enabled methods to
nsMediaDecoder.  These methods are all implemented on top of prefs, and
they logically belong to the decoder class, because it needs to know
what media types it should be able to decode.  This also helps reduce
the dependency on nsHTMLMediaElement.h.
2012-11-08 21:46:10 -05:00
Ehsan Akhgari
0704216980 Bug 810177 - Part 2: Break MetadataTags out of nsHTMLMediaElements; r=cpearce
This patch simply moves the MetadataTags typedef to nsMediaDecoder.h to
reduce the dependencies on nsHTMLMediaElements.h.  The rest of the
changes are made to make this compile.
2012-11-08 19:40:08 -05:00
Ehsan Akhgari
12f30adf52 Bug 810177 - Part 1: Move NextFrameStatus to nsMediaDecoder; r=cpearce
This patch simply moves the NextFrameStatus enum to nsMediaDecoder and
reorganizes things so that they compile again.
2012-11-08 18:22:32 -05:00
Dave Hylands
8d4907583e Backout e655c9d59704 Bug 809186 until we decide that we really want this. 2012-11-08 21:50:08 -08:00
Chris Pearce
f462e42fad Bug 799344 - Remove virtual from media state machine methods, since they're not inherited. r=roc 2012-11-07 11:33:02 +13:00
Chris Pearce
dc33e1da54 Bug 799344 - Flatten nsBultinDecoderStateMachine and nsDecoderStateMachine into a single class. r=roc 2012-11-07 11:33:02 +13:00
Chris Pearce
3b143c4c58 Bug 799344 - Un-templatify nsBuiltinDecoderReader::DecodeToFirstData() so that we don't need to know nsBuiltinDecoderStateMachine's interface in nsBuiltinDecoderReader.h. This means that nsBuiltinDecoderReader.h doesn't need to include nsBuiltinDecoderStateMachine.h when we move the state machine declaration from nsBuiltinDecoder.h to nsBuiltinDecoderStateMachine.h (in a later patch). nsBuiltinDecoderStateMachine.h needs to include nsBuiltinDecoderReader.h, so if nsBuiltinDecoderReader.h needed to include nsBuiltinDecoderStateMachine.h we'd have an include cycle, which is bad. r=roc 2012-11-07 11:33:01 +13:00
Chris Pearce
9ee26e5a65 Bug 799344 - Remove nsBuiltinDecoder::GetDecodeState(), so that nsBuiltinDecoder doesn't need to know about nsDecoderStateMachine::State. r=roc 2012-11-07 11:33:01 +13:00
Dave Hylands
6e9b2d5735 Bug 809186 - Recognize .aac file extensions, and the audio/aac-adts mimetype for b2g. r=doublec 2012-11-08 10:08:48 -08:00
Ehsan Akhgari
5114440464 Add the missing file for the test in bug 809654 2012-11-08 09:33:12 -05:00
Ehsan Akhgari
19a5f2cb0b Bug 809654 - Implement BiquadFilterNode; r=bzbarsky 2012-11-07 20:59:14 -05:00
Robert O'Callahan
6b2b2ee5c8 Bug 792675. Part 7: Add support for MediaStream URIs to media elements. r=cpearce
--HG--
extra : rebase_source : 1c27fa7038dcdd3ab4e7eac6219b2ed5a6affa4a
2012-09-25 15:25:43 +12:00
Robert O'Callahan
8e76b2dcac Bug 792675. Part 6: Extend createObjectURL to support MediaStreams. r=sicking
--HG--
extra : rebase_source : ffec7b146552362b576e88c6dea24d612a5860b9
2012-09-25 15:24:45 +12:00
Robert O'Callahan
5b4fb3c358 Bug 792675. Part 5: Extend nsHostObjectProtocolHandler with support for 'mediastream' scheme. r=sicking
--HG--
rename : content/base/public/nsBlobProtocolHandler.h => content/base/public/nsHostObjectProtocolHandler.h
rename : content/base/src/nsBlobProtocolHandler.cpp => content/base/src/nsHostObjectProtocolHandler.cpp
rename : content/base/src/nsBlobURI.h => content/base/src/nsHostObjectURI.h
extra : rebase_source : aea1ab3b9eed985ea238d2e9fb74bf3b2f574756
2012-09-25 15:24:44 +12:00
Robert O'Callahan
d723594f8f Bug 792675. Part 4: Refactor nsBlobURI/nsBlobProtocolHandler to nsHostObjectURI/nsHostObjectProtocolHandler. r=sicking
The code to handle MediaStream URIs is almost the same as for Blobs, so share it.
nsHostObjectProtocolHandler is modified a bit to simplify method names. Also
we make nsHostObjectProtocolHandler::AddDataEntry take responsibility for
generating the URI to avoid duplicating that code later.
We need separate subclasses for each kind of host object protocol handler,
but we don't need separate subclasses for each kind of host object URI.

--HG--
rename : content/base/public/nsBlobProtocolHandler.h => content/base/public/nsHostObjectProtocolHandler.h
rename : content/base/src/nsBlobProtocolHandler.cpp => content/base/src/nsHostObjectProtocolHandler.cpp
rename : content/base/src/nsBlobURI.cpp => content/base/src/nsHostObjectURI.cpp
rename : content/base/src/nsBlobURI.h => content/base/src/nsHostObjectURI.h
extra : rebase_source : bfb1d7ea2813100a35f9a2054a67584e38f5f330
2012-09-25 15:24:44 +12:00
Robert O'Callahan
9572e1f68e Bug 792675. Part 2: Change assertion to warning since Web content can trigger it (trying to create URIs relative to a blob URI). r=sicking
--HG--
extra : rebase_source : 256474307aeed04af0aae1445a2e488a5afb8fb0
2012-09-25 15:24:43 +12:00
Justin Lebar
d94c61c8ac Bug 809587 - Increment the JS malloc counter when doing canvas.toBlob(). r=khuey 2012-11-07 17:49:21 -08:00
Ehsan Akhgari
ac35497057 Bug 579517 follow-up: Remove NSPR types that crept in 2012-11-07 20:34:50 -05:00
Masatoshi Kimura
3bd83e2eac Bug 801402 - Use EncodingUtils::FindEncodingForLabel from DOM. r=sicking 2012-11-07 18:04:22 -05:00
Masatoshi Kimura
7ef7c7a41b Bug 801402 - Make EncodingUtil methods case sensitive. r=hsivonen 2012-11-07 18:04:22 -05:00
Masatoshi Kimura
004281653d Bug 801402 - Use FindEncodingForLabel from XSLT. r=sicking 2012-11-07 18:04:21 -05:00
Ehsan Akhgari
7155c4fc5f Merge mozilla-central into mozilla-inbound 2012-11-07 17:24:27 -05:00
s@rednaks.tn
fe869f336f Bug 808964 - AccessKeyLabel should be empty string for elements without the accesskey attribute,r=smaug 2012-11-07 20:47:34 +02:00
Ryan VanderMeulen
4f33e32827 Backout 3f0e69962962, 84a1afc5b15e, c62f225d0dbb, 24870ebc9665, and dd7663e68657 (bug 799344) for mochitest-1 orange. 2012-11-06 19:36:49 -05:00
Tobias Schneider
d0adae1591 Bug 803124 - Implement mozIsPointInStroke. r=jmuizelaar 2012-10-29 16:54:53 +01:00
Chris Pearce
cce841e3bc Bug 799344 - Remove virtual from media state machine methods, since they're not inherited. r=roc 2012-11-07 11:33:02 +13:00
Chris Pearce
22fe237724 Bug 799344 - Flatten nsBultinDecoderStateMachine and nsDecoderStateMachine into a single class. r=roc 2012-11-07 11:33:02 +13:00
Chris Pearce
13826e54a7 Bug 799344 - Un-templatify nsBuiltinDecoderReader::DecodeToFirstData() so that we don't need to know nsBuiltinDecoderStateMachine's interface in nsBuiltinDecoderReader.h. This means that nsBuiltinDecoderReader.h doesn't need to include nsBuiltinDecoderStateMachine.h when we move the state machine declaration from nsBuiltinDecoder.h to nsBuiltinDecoderStateMachine.h (in a later patch). nsBuiltinDecoderStateMachine.h needs to include nsBuiltinDecoderReader.h, so if nsBuiltinDecoderReader.h needed to include nsBuiltinDecoderStateMachine.h we'd have an include cycle, which is bad. r=roc 2012-11-07 11:33:01 +13:00
Chris Pearce
ecd71d8846 Bug 799344 - Remove nsBuiltinDecoder::GetDecodeState(), so that nsBuiltinDecoder doesn't need to know about nsDecoderStateMachine::State. r=roc 2012-11-07 11:33:01 +13:00
Ryan VanderMeulen
23e4ee0b90 Merge m-c to inbound. 2012-11-06 17:32:31 -05:00
Ed Morley
e74b154022 Bug 701060 - Disable test_bug401046.html & test_lang.xhtml for too many intermittent failures 2012-11-06 22:26:56 +00:00
Ed Morley
8eac9457d3 Bug 786539 - Disable test_timeupdate_small_files.html on Windows for too many intermittent timeouts 2012-11-06 22:26:03 +00:00
Olli Pettay
9339cfe01c Bug 809003 - Don't dispatch load and error events on generated content images, r=bz 2012-11-06 20:54:02 +02:00
Olli Pettay
0eb2523ed9 Bug 808993, ASSERTION: must have binding parent when in native anonymous subtree with a parent node, r=bz 2012-11-06 20:52:46 +02:00
Ehsan Akhgari
3bcb2b8761 Backed out changeset ecf0c2a7cb9f (bug 808876) for build bustage 2012-11-05 22:30:08 -05:00
Ehsan Akhgari
ad84bd3d7f Bug 808876 - Implement PannerNode; r=bzbarsky 2012-11-05 21:14:13 -05:00
Ehsan Akhgari
d537c98fbc Bug 808841 follow-up: Add ThreeDPoint.h 2012-11-05 21:34:31 -05:00
Ehsan Akhgari
448c1c4497 Bug 808841 - Implement AudioContext.listener; r=bzbarsky 2012-11-05 19:26:03 -05:00
Aryeh Gregor
a48443ba83 Bug 805287 - Block scripts in PrepareEditorEvent::Run; r=ehsan
--HG--
extra : rebase_source : cfe5bf684a384421094acb3f1e7bdea7bedc51bc
2012-11-04 14:27:49 +02:00
Ehsan Akhgari
5a4f074522 Bug 808876 - Part 1: Implement PannerNode; r=bzbarsky
--HG--
extra : rebase_source : a7b901dcc7758ff9c7a8917a956d0541187fea07
2012-11-05 21:14:13 -05:00
Jeff Walden
793acbdae0 Bug 803439 - Add removeFrom() that takes a list and asserts the element is initially present in it. r=jlebar
--HG--
extra : rebase_source : c2aad35774a71167f97f940fb416735862b78950
2012-10-23 17:43:23 -07:00
Ehsan Akhgari
972faa6f3c Bug 808374 - Balance holding and dropping the JS object references for AudioBuffers initialized with 0 channels; r=mmcr8 2012-11-05 13:49:35 -05:00
Boris Zbarsky
b39f210d35 Bug 804649. Create a CommentNode header. r=peterv
--HG--
rename : content/base/src/nsCommentNode.cpp => content/base/src/Comment.cpp
rename : content/base/src/nsCommentNode.cpp => content/base/src/Comment.h
2012-11-05 11:58:04 -05:00
Boris Zbarsky
bad3a03ce9 Bug 803129. Convert DOMStringMap to WebIDL. r=peterv 2012-11-05 11:58:03 -05:00
Boris Zbarsky
da22cd5b71 Bug 772869. Make getOwnPropertyNames work correctly for WebIDL proxy bindings. r=peterv,ms2ger 2012-11-05 11:58:03 -05:00
Olli Pettay
fde2f7a7f4 Bug 805749, validate the view parameter of initUIEvent, r=jst 2012-11-05 10:59:12 +02:00
Ehsan Akhgari
6e3b90c43e Merge mozilla-central into mozilla-inbound 2012-11-04 11:09:45 -05:00
Ms2ger
dd0deeb865 Merge PGO-green chanageset from inbound to m-c. 2012-11-04 10:26:52 +01:00
Ms2ger
48475a4d75 Bug 808305 - Pass a gfx::Rect instead of a gfxRect in InvalidateCanvasContent; r=Bas 2012-11-04 09:05:25 +01:00
Ms2ger
5ffd0edacd Bug 807410 - Part b: Pass the "GC on destruction" flag to the nsJSContext constructor; r=jst 2012-11-04 09:05:23 +01:00
Ms2ger
ca9e7e960f Bug 807410 - Part a: Pass the global object to the nsJSContext constructor; r=jst 2012-11-04 09:04:04 +01:00
Ms2ger
8b5a6cf23f Bug 709954 - Fix assertion failure "!cx->isExceptionPending()" with invalid regexp in <input pattern>; r=bz 2012-11-04 09:00:07 +01:00
Ms2ger
8acaa800d6 Bug 629876 - Throw when drawImage's sw/sh arguments are zero; r=bz 2012-11-04 09:00:06 +01:00
Seth Fowler
4388c1b02d Bug 807556 - Remove imgIRequest::loadImage's aRequest argument. r=joe 2012-11-03 23:04:07 -04:00
Ed Morley
0e0ca5c163 Backout 5eec0a5b76ff, 64e143317082 & f356d9b2524c (bug 808288) for reftest failures 2012-11-04 00:53:06 +00:00
Jonathan Kew
6f943e5171 bug 808288 - part 3 - draw missing-glyph hexboxes for <canvas> text, similar to missing glyphs in HTML text. r=bas 2012-11-03 23:01:33 +00:00
Jonathan Kew
07a2fab28f bug 808288 - part 2 - render the font's .notdef glyph for missing glyphs in <canvas>. r=bas 2012-11-03 23:01:33 +00:00
Jonathan Kew
5299435d4a bug 808288 - part 1 - leave missing glyphs blank in <canvas> text, rather than rendering arbitrary (incorrect) glyphs. r=bas 2012-11-03 23:01:32 +00:00
Jonathan Kew
6be1bd5f98 bug 804927 - fix text control frame and accessibility issues. r=ehsan,tbsaunde 2012-11-03 12:08:09 +00:00
Neil Rashbrook
8cdc6abc40 Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg r=msucan 2012-11-03 10:59:29 +00:00
Ryan VanderMeulen
e3feaeecef Backout 06b998c1100d (bug 664695) due to mochitest-other orange. 2012-11-02 17:12:22 -04:00
Jan Beich
95464f420e Bug 806139 - Add more supported h264 codecs, used by youtube for 1080p/720p and 240p. r=doublec 2012-11-02 16:11:51 -04:00
Ehsan Akhgari
cbe0e3a4d1 Bug 800193 - Print a warning when setting nsILoadContext.usePrivateBrowsing in per-window private browsing builds; r=bzbarsky 2012-10-31 00:15:24 -04:00
Jonathan Kew
f20b79de6f bug 808288 - render missing glyphs as hexboxes in <canvas> text. r=bas 2012-11-04 10:51:03 +00:00
Neil Rashbrook
7464774f68 Bug 664695 Improve signature of nsIConsoleService::GetMessageArray r=bsmedberg 2012-11-02 20:07:50 +00:00
Randell Jesup
5f9b147f0d Bug 807929: Make DataChannel refcounted r=mcmanus 2012-11-02 15:28:13 -04:00
Justin Lebar
8e0132501a Bug 806243 - Fix blob memory reporter's SHA1s on 32-bit by passing a correct format string to nsPrintfCString. r=njn 2012-11-02 15:06:03 -04:00
Robert O'Callahan
e8d5856ece Bug 796452. Add mozpasspointerevents attribute for IFRAMEs in chrome windows. r=mats 2012-11-02 23:42:59 +13:00
Robert O'Callahan
0cf4130886 Bug 787831. Keep TrackIDs instead of Track pointers to guard against Tracks being deleted. r=jesup 2012-11-02 23:42:59 +13:00
Ben Turner
1225b426c1 Bug 753981 - 'XHR in Web Workers bypasses Offline AppCache'. r=smaug. 2012-11-01 20:37:55 -07:00
Ehsan Akhgari
41f9f14161 Bug 807533 - Implement DelayNode; r=bzbarsky
--HG--
extra : rebase_source : 36bb70c9f4b9c86fc1564447a34153d92fe7f347
2012-10-31 20:26:03 -04:00
Benoit Jacob
cc10ea918f Bug 806369 - Stagefright blacklisting. Also extends Android Gfxinfo to support blacklist rules by Android API version, Model, Product, Hardware, Manufacturer - r=joe,doublec 2012-11-01 17:13:10 -04:00
Erick Dransch
548d04b119 bug 801986 - restore renderbuffer attachments on detach when necessary; r=bjacob 2012-10-31 15:11:40 -04:00
Ehsan Akhgari
8ba6137c34 Bug 807526 - Implement GainNode; r=bzbarsky 2012-10-31 15:09:32 -04:00
Ehsan Akhgari
43ceb46e4b Merge mozilla-central into mozilla-inbound 2012-11-01 10:42:41 -04:00
Ed Morley
3df60ccac7 Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-11-01 13:42:02 +00:00
Olli Pettay
05782f593d Bug 779306 - Wildcard for 'all events', nsIEventListenerService.addListenerForAllEvents(target, listener), r=jst 2012-11-01 13:42:29 +01:00
Ehsan Akhgari
205efbc82f Bug 807171 - Implement AudioParam.cancelScheduledValues; r=bzbarsky 2012-10-30 20:12:19 -04:00
Ryan VanderMeulen
713bb812f1 Merge m-c to inbound. 2012-10-31 20:19:27 -04:00
Chris Pearce
ead18a1762 Bug 807360 - Missing string rename which should have been in patch for bug 805301. r=jlebar 2012-11-01 11:58:41 +13:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Justin Lebar
6f958d371d Backed out changeset 86d8067fa9e5 (bug 802366) on a CLOSED TREE 2012-10-30 21:36:32 -04:00
Justin Lebar
d75eb03310 Backed out changeset a6a847452dbf (bug 802366) 2012-10-30 21:36:29 -04:00
Justin Lebar
474f67107e Backed out changeset 7fa2f2eff658 (bug 806127) 2012-10-30 21:35:47 -04:00
Jet Villegas
3727936e46 Bug 806068 part 2: Change in-tree usage of -moz-initial to initial. r=dholbert 2012-10-30 16:57:36 +01:00
Masayuki Nakano
8c03368fdb Bug 801101 Allow to scoll over one page scroll with mouse wheel if delta mulitipliers are large enough r=smaug 2012-10-31 08:22:23 +09:00
Masayuki Nakano
8ecdaabd92 Bug 805357 part.2 Get rid of NS_SUCCESS_IME_NO_UPDATES since OnIMEFocusChange(false) is always called r=roc 2012-10-31 08:22:23 +09:00
Masayuki Nakano
36985553ef Bug 805357 part.1 nsIMEStateManager should always call nsIWidget::OnIMEFocusChange(false) when our editor loses focus r=smaug 2012-10-31 08:22:22 +09:00
Ehsan Akhgari
a60888e51d Use #include guards in the web audio code, no bug 2012-10-30 17:39:38 -04:00
Justin Lebar
7e748f5b3a Bug 802366 - The main event: Let a browser process inherit its app's id. r=bz,cjones DONTBUILD
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id. This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process. I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.

(Re-landing changeset a6a847452dbf, backed out in 5091aa6083c4, because it was originally landed with the incorrect bug number.)
2012-10-30 16:13:21 -04:00
Justin Lebar
6bd563b2ee Backed out changeset a6a847452dbf due to incorrect bug number (should be bug 802366, but was bug 802367). DONTBUILD 2012-10-30 16:13:20 -04:00
Justin Lebar
e377463cf3 Bug 806127 - ThirdPartyUtil should not consider in-process <iframe mozbrowser/mozapp> to be third-party. r=bz
--HG--
extra : rebase_source : e6142b0f71f6a6daf7740d694f0d4201cfba7642
2012-10-30 15:55:05 -04:00
Justin Lebar
c936f604ec Bug 802367 - The main event: Let a browser process inherit its app's id. r=bz,cjones
The main bug fixed here is that in half of our interfaces, we use "is browser frame/element" to mean "browser or app", and in the other half, we use it to mean "is browser not app".

There's a related, functional bug also fixed here, which is that a browser process doesn't inherit its parent's app-id.  This causes problems e.g. for IndexedDB: If a browser inside an app uses IndexedDB, the DB should have the app's app-id.

I also modified Tab{Parent,Child} and nsFrameLoader to call "app" "ownOrContainingApp", to emphasize that we might have inherited the app from a parent process.  I left nsIDocShell::appId alone, because changing that would have necessitated changing nsILoadGroup and therefore a /lot/ of users in Necko; it's also not clear it would have clarified anything in those cases.

--HG--
extra : rebase_source : f3ef9475e21204da10bf39c6cca506bc08096949
2012-10-30 15:55:05 -04:00
Justin Lebar
4c333b07a9 Bug 802366 - Prelude, part 1: Rename in-process-browser-frame-shown to in-process-browser-or-app-frame-shown. r=bz
--HG--
extra : rebase_source : 683e1facc5a6356a4cce0546fd2593a701fe69c0
2012-10-30 15:55:05 -04:00
Nathan Froyd
410810fd70 Bug 806971 - avoid passing a "null" charset to GetUnicodeDecoder; r=hsivonen 2012-10-29 14:44:24 -04:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Nathan Froyd
bd55a07f0e Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Vicamo Yang
1d73a296f4 Bug 742790 - Part 2/5: DOM implementation, r=mounir 2012-10-30 18:53:24 +08:00
Ehsan Akhgari
451773ee5b Bug 803392 - Initial implementation of AudioParam; r=bzbarsky
This patch implements most of the semantics of AudioParam in a
templatized base class called AudioEventTimeline.  This is done in order
to make it possible to test this code from C++ without the need of
linking to libxul.  Basically we take everything that could depend on
libxul or is not suitable for a genertic implementation and put it in a
traits like type as a template argument.  Then the test creates mock
objects that conform to the argument interfaces, and tests the logic of
AudioEventTimeline.
2012-10-16 21:19:06 -04:00
Chris Pearce
d33bf73a47 Bug 803287 - Don't use GStreamer (when enabled) for Ogg/WebM if builtin backends present. r=doublec 2012-10-30 14:38:42 +13:00
Jacek Szpot
0b35b0e3d8 Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan 2012-10-26 15:32:10 +02:00
Chris Pearce
818603ae1d Bug 805301 - Rename iframe.mozallowfullscreen to allowfullscreen. r=jlebar 2012-10-30 11:02:24 +13:00
Nathan Froyd
eb508945a4 Bug 807329 - fix AudioEventTimeline.h for compilers that don't support enum classes; r=ehsan 2012-10-31 11:58:42 -04:00
Ehsan Akhgari
8426704b9f Bug 809271 - Implement DynamicsCompressorNode; r=bzbarsky 2012-11-06 20:01:11 -05:00
Mounir Lamouri
7805230a8b Bug 795715 - Remove B2G-specific stuff from nsIDOMWindow. r=khuey,fabrice sr=smaug 2012-11-07 18:10:40 +00:00
Josh Matthews
fcf5f9bfe7 Bug 723002 - Determine privacy status from provided nsILoadContext in ContentPrefService. r=ehsan 2012-06-30 07:50:07 -07:00
Gabor Krizsanits
f83543b9ea Bug 804120 - Offer a way to apply author stylesheet on a given document. r=bz 2012-10-29 12:21:15 +01:00
Peter Van der Beken
efd72d6b0c Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript) - rename ProtoOrIfaceArray. r=bz.
--HG--
extra : rebase_source : c426270fc1ebee818629bd94dfc8d11af59bfc00
2012-10-09 20:50:27 +02:00
Mats Palmgren
ab048c47bd Bug 804486 - Tweak a few scrolling tests that makes the assumption that a horizontal "line" scroll scrolls the same amount of pixels as a vertical line scroll. r=roc 2012-10-29 06:44:31 +01:00
Mats Palmgren
cbfa147ac8 Bug 804486 - Add toolkit.scrollbox.horizontalScrollDistance pref, default 5. Change horizontal scroll increment from 10px to horizontalScrollDistance * GetLineScrollAmount().width(). Make GetLineScrollAmount() use the font's AveCharWidth() for the horizontal amount rather than MaxHeight(). r=roc 2012-10-29 06:44:31 +01:00
Robert O'Callahan
8fe699d05c Bug 805703. Part 1: MediaStreamGraph::CreateInputStream -> CreateSourceStream. r=jesup
--HG--
extra : rebase_source : 3c327e9ead92508f12df4b95f2fd24fa2ba97ab5
2012-10-29 17:36:31 +13:00
Robert O'Callahan
91a7abe566 Bug 805721. Recursively mark streams as consumed starting at the consumption point and working backwards through the graph. r=jesup
--HG--
extra : rebase_source : ba2f2fd4755336bc429ba85cd7296c31fef8aabf
2012-10-29 17:34:17 +13:00
Robert O'Callahan
443a476988 Bug 805730. Convert HasListenerFor(nsAString) callers to HasListenerFor(nsIAtom*), which is more efficient. r=smaug
--HG--
extra : rebase_source : fb0e607b8a1edcbced75b96e0aefcc626a4f436b
2012-10-29 17:33:51 +13:00
Anthony Jones
4832a592be Bug 802658 - Part 2: Apply matrix transform to text bounds; r=Bas 2012-10-28 21:52:21 +01:00
Anthony Jones
be3042410b Bug 802658 - Part 1: Whitespace fixes 2012-10-28 21:51:43 +01:00
Ryan VanderMeulen
dd87cc277e Bug 799917 - Backout for various regressions. 2012-10-28 08:49:20 -04:00
Aryeh Gregor
a228233511 Bug 801425 - Make hasFeature() and isSupported() always return true for non-SVG features; r=bz 2012-10-15 13:59:38 +02:00
Matt Joras
d1fe98e6b3 Bug 798033 - Removes 'using namespace' from /content headers - r=bsmedberg 2012-10-27 13:24:04 -04:00
Phil Ringnalda
b6c07f4fe7 Back out c25bc74b7fd3 (bug 798033) for build bustage 2012-10-26 19:05:18 -07:00
Matt Joras
cc0bb2727c Bug 798033 - Removes 'using namespace' from /content headers - r=bsmedberg 2012-10-14 00:04:51 -05:00
Mats Palmgren
68d8f0b847 Bug 805957. r=roc 2012-10-27 03:02:57 +02:00
Masayuki Nakano
d76bb01beb Bug 801989 part.1 Add mNativeIMEContext to InputContext and TextComposition should use it instead of nsIWidget r=smaug, sr=roc 2012-10-27 08:35:20 +09:00
Ryan VanderMeulen
22439e63c4 Merge m-c to inbound. 2012-10-26 16:06:04 -04:00
Daniel Holbert
638f6d9bd4 Bug 805607 - Mark content/xbl/src as FAIL_ON_WARNINGS. r=bz 2012-10-26 10:49:57 -07:00
Daniel Holbert
f6e984bc20 Bug 805606: Add DebugOnly annotation to fix build warning in nsXBLDocumentInfo.cpp. r=Ms2ger 2012-10-26 10:49:57 -07:00
Jonathan Kew
1bfe978044 bug 805787 - fix for build failure in nsNodeUtils.cpp with Apple clang 4.0 or other not-up-to-date versions. r=dbaron 2012-10-26 15:48:29 +01:00
Bill McCloskey
2e039c483d Bug 692267 - Remove jsgc.h from INSTALLED_HEADERS (r=terrence) 2012-10-26 11:17:24 -07:00
Robert O'Callahan
c14b6532cb Bug 805771. Don't call NotifyPull after a stream has finished. r=jesup 2012-10-26 13:11:50 -04:00
Robert O'Callahan
981ed9e7ef Bug 805254. Part 13: Make nsAudioStream::Write take an AudioDataValue* parameter instead of void. r=kinetik 2012-10-25 23:10:51 +13:00
Robert O'Callahan
8d0872c840 Bug 805254. Part 12: Simplify AudioSegment::WriteTo and related code now that the output format is known statically. r=kinetik
Also fixes what I think is a bug in InterleaveAndConvertBuffer converting S16 to S16.
Instead of clamping the volume, we should handle arbitrary volumes by falling back
to the float conversion path.
2012-10-25 23:09:41 +13:00
Robert O'Callahan
ac69d1579a Bug 805254. Part 11: Move Vorbis-specific definitons into a new file VorbisUtils.h. r=kinetik 2012-10-25 23:09:41 +13:00
Robert O'Callahan
b80c14bd5b Bug 805254. Part 10: remove MOZ_CONVERT_AUDIO_SAMPLE. r=kinetik 2012-10-25 23:09:40 +13:00
Robert O'Callahan
d44792d2db Bug 805254. Part 9: Get rid of some more #ifdefs in nsWaveDecoder. r=kinetik 2012-10-25 23:09:40 +13:00
Robert O'Callahan
4dcad1fa98 Bug 805254. Part 8: Consolidate audio sample processing code using templates over the format types. r=kinetik
Replace nsAudioStream::Format with an AUDIO_OUTPUT_FORMAT enum value so we
can use it as a template parameter.

Introduce AudioSampleTraits<AudioSampleFormat> to give us access to the C++ type
corresponding to an enum value.

Move SampleToFloat/FloatToSample to AudioSampleFormat.h.

Introduce ConvertAudioSamples and ConvertAudioSamplesWithScale functions
and use them from various places.

Moves AudioDataValue to AudioSampleFormat.h. The name isn't great, but it'll do.
2012-10-25 23:09:40 +13:00
Robert O'Callahan
b1f3765e26 Bug 805254. Part 7: Move SampleFormat to mozilla::AudioSampleFormat in its own file. r=kinetik 2012-10-25 23:09:40 +13:00
Robert O'Callahan
d92a1b5efc Bug 805254. Part 6: Replace some #ifdefs with if statements. r=kinetik
This is largely obsoleted by part 8. Sorry.
2012-10-25 23:09:39 +13:00
Robert O'Callahan
e0ece2f796 Bug 805254. Part 5: Remove format parameter from PAudio constructor. r=kinetik 2012-10-25 23:09:39 +13:00
Robert O'Callahan
9542499e15 Bug 805254. Part 4: Remove FORMAT_U8 from nsAudioStream::SampleFormat. r=kinetik
We also give nsWaveReader its own separate format enum.
2012-10-25 23:09:39 +13:00
Robert O'Callahan
9d77102812 Bug 805254. Part 3: Remove SampleType. r=kinetik 2012-10-25 23:09:39 +13:00
Robert O'Callahan
2cbb708232 Bug 805254. Part 2: Rename nsAudioStream::GetFormat() to Format(), make it static, and use it instead of the MOZ_AUDIO_DATA_FORMAT macro. r=kinetik
Part 8 mostly replaces this patch, but it's quite difficult to reorder the patches to avoid this one.
2012-10-25 23:09:38 +13:00
Robert O'Callahan
f71993e45d Bug 805254. Part 1: Remove mFormat from nsAudioStream. r=kinetik 2012-10-25 23:09:38 +13:00
Andrea Marchesini
21bae2dc23 Bug 804395 - Allow app:// protocol and XHR. r=sicking 2012-10-25 21:57:57 -04:00
Ryan VanderMeulen
d9543c4b84 Merge m-c to inbound. 2012-10-25 21:57:47 -04:00
Daniel Holbert
b70cb9aaaa Bug 805555: Mark nsXBLProtoImpl member-vars "cx" and "versionBefore" as DebugOnly. r=bz 2012-10-25 18:48:22 -07:00
Robert O'Callahan
77fe33f9cb Bug 790854. Keep MediaStream alive until MediaStream::Destroy ends. r=jesup 2012-10-26 14:39:05 +13:00
Ryan VanderMeulen
40f09ef25e Merge the last PGO-green inbound chnageset to m-c. 2012-10-25 21:14:50 -04:00
Masayuki Nakano
072949e794 Bug 805306 Get rid of nsIMEStateManager::OnTextStateBlur() and nsIMEStateManager::OnTextStateFocus() r=smaug 2012-10-26 09:49:13 +09:00
Randell Jesup
2546ad6ad0 Bug 805596: Incorrect audio rates used for fake audio streams r=anant 2012-10-25 20:14:47 -04:00
Andrew Quartey
549c0bfc08 Bug 792581 - part 22: Replace LL_ZERO and LL_Zero() macros with 0. r=ehsan 2012-10-25 19:25:59 -04:00
Nikhil Marathe
36f99c3113 Bug 804174 - Inline IsCallerTrustedForWrite with IsCallerChrome. r=mccr8 2012-10-25 16:10:54 -07:00
Nikhil Marathe
17ccba841b Bug 804174 - Inline IsCallerTrustedForRead with IsCallerChrome. r=mccr8 2012-10-25 16:10:53 -07:00
Nikhil Marathe
453b3dce5f Bug 804174 - Inline CallerHasUniversalXPConnect with IsCallerChrome. r=mccr8 2012-10-25 16:10:53 -07:00
Robert O'Callahan
a01b0389bf Backout 15c4d6334107 (bug 790854) for test failures 2012-10-26 12:08:38 +13:00
Robert O'Callahan
553c22e6e6 Bug 790854. Set mMainThreadDestroyed before the stream is destroyed. r=jesup
--HG--
extra : rebase_source : 6b1d2a64b9af082b02a207759f051cb6d7975e35
2012-10-26 11:07:59 +13:00
Daniel Holbert
3a861ae421 Bug 805527: Mark nsBindingManager as MOZ_FINAL to fix GCC -Wdelete-non-virtual-dtor warning. r=ehsan 2012-10-25 15:16:15 -04:00
John Schoenick
f4f29b626e Bug 803159 - Guess plugin types from extension prior to falling back to channel loading. r=bz 2012-10-25 11:05:17 -07:00
John Schoenick
1121ac25cc Bug 803159 - Fix type error in plugin code. r=bz 2012-10-25 11:04:52 -07:00
Ehsan Akhgari
f117c7a7b0 Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
48b5c1a608 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
Bobby Holley
6bae1ef04d Bug 797821 - Address Ms2ger's review comments. r=me 2012-10-25 17:01:09 +02:00
Bobby Holley
c562949e50 Bug 797821 - Hoist XPConnect-y stuff out of the compartment private and into the XPCWrappedNativeScope. r=mrbkap
This change means we no longer have to keep around a set of XPConnect compartments.
We keep the compartment private around for non-xpconnecty stuff like about:memory
instrumentation that needs to happen on non-xpconnect compartments.
2012-10-25 17:01:09 +02:00
Bobby Holley
d7bb2e50ba Bug 797821 - Don't pass XPCONNECT_GLOBAL_FLAGS for xbl and xul document gSharedGlobalClass. r=mrbkap
A lot of these flags don't make sense in this context.
2012-10-25 17:01:08 +02:00
Bobby Holley
703a9798c9 Bug 797821 - Stop making nsXBLDocumentInfo and nsXULPrototypeDocument globals with XPConnect. r=mrbkap
We already weren't creating a scope for them. They're generally pretty isolated
and are just used for holding functions that get cloned into other scopes.
Apparently mccr8 once found an edge from an nsXULPrototypeDocument scope into
another scope, but I don't think that should really break anything.
2012-10-25 17:01:07 +02:00
Bobby Holley
826ce1e16b Bug 797821 - Stop passing wantXrays directly to CreateGlobalObject. r=mrbkap
This can happen after the fact where it needs to.
2012-10-25 17:01:07 +02:00
Bobby Holley
3b50be121c Bug 797821 - Simplify the call signature for XPC::CreateGlobalObject. r=mrbkap 2012-10-25 17:01:07 +02:00
Jim Mathies
ae9b1663ef Bug 798821 - On Windows, restrict enabling of W3C touch interfaces to devices that support touch input. Also convert touch pref to 3-state value. r=bsmedberg 2012-10-25 09:57:51 -05:00
Mook
265cffd198 bug 782549 - check if the window has device sensor listeners, instead of global listener count (r=dougt) 2012-10-20 21:40:56 -07:00
Justin Lebar
f5e5b6d4cc Bug 803684 - Add a memory reporter for in-memory file data. r=khuey,njn 2012-10-24 22:06:31 -04:00
Randell Jesup
b7a4ba499c Bug 803976: Implementation of LocalMediaStreams for .stop() r=roc,anant 2012-10-24 19:21:32 -04:00
Randell Jesup
0b36cd32e3 Bug 803799: Start gUM streams in Success callback; add MediaManager mutex r=anant,roc 2012-10-24 19:21:15 -04:00
Ehsan Akhgari
e4097ac608 Backed out changeset ea436c6f7d2d (bug 803799), landed on a CLOSED TREE 2012-10-24 20:30:08 -04:00
Ehsan Akhgari
cab6e9af53 Backed out changeset 165208ecd591 (bug 803976) 2012-10-24 20:29:32 -04:00
Randell Jesup
8865bcac96 Bug 803976: Implementation of LocalMediaStreams for .stop() r=roc,anant 2012-10-24 19:21:32 -04:00
Randell Jesup
491dae523f Bug 803799: Start gUM streams in Success callback; add MediaManager mutex r=anant,roc 2012-10-24 19:21:15 -04:00