Commit Graph

53613 Commits

Author SHA1 Message Date
Nicholas Nethercote
cc993d1772 Bug 1293596 (part 4) - Tweak nsIWidget::Create. r=mstange.
They don't need to be NS_IMETHOD, but they should be MOZ_MUST_USE. Adding the
latter catches a few missing checks, which the patch adds.

The patch also gives PuppetWidget an InfallibleCreate() function, which makes
the infallibility of PuppetWidget creation clear.
2016-08-19 09:03:17 +10:00
Nicholas Nethercote
67af4817e9 Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange.
This patch makes GetBounds(), GetScreenBounds() and GetClientBounds() more
obviously infallible, like existing functions such as GetNaturalBounds() and
GetClientSize(). This results in clearer behaviour in nsCocoaWindow.mm if
Objective C exceptions occur. Along the way, the patch removes some useless
failure checks for these functions.

The patch also removes the NS_IMETHOD from GetRestoredBounds and makes that
function MOZ_MUST_USE.
2016-08-19 09:03:04 +10:00
Brian Birtles
335980d902 Bug 1295842 part 2 - Don't overwrite the hold time when the previous current time is less than zero; r=hiro
This implements the spec change here: ee1577c959

MozReview-Commit-ID: 8XKaocLbrmL

--HG--
extra : rebase_source : 18c402b0af7c21b8721ca796c054a3f58eb21a72
2016-08-19 11:35:16 +09:00
Phil Ringnalda
14e34e0350 Backed out changeset 9c5299679c1b (bug 1241899) for SVGZoomAndPan failures in test_interfaces.html 2016-08-18 18:26:30 -07:00
Blake Kaplan
cb264cca60 Bug 1165309 - Make view source and print preview work in e10s-multi. r=mconley 2016-08-18 16:47:28 -07:00
Terrence Cole
a7d2e09c9e Bug 1293360 - Implement MOZ_CCTIMER environment variable; r=mccr8 2016-08-11 11:05:24 -07:00
Wes Kocher
a58f8b89a0 Merge m-c to inbound, a=merge 2016-08-18 16:32:58 -07:00
Wes Kocher
f433f0dd71 Merge fx-team to central, a=merge 2016-08-18 16:16:47 -07:00
Jim Chen
f78bb41597 Bug 1294482 - Move onFullScreenPluginHidden out of AndroidJNI.cpp; r=snorp
Move onFullScreenPluginHidden out of AndroidJNI.cpp and into a new-style
native method in nsAppShell.cpp.
2016-08-18 18:04:11 -04:00
Sebastian Hengst
d89e98bdee Backed out changeset 666bd7d68521 (bug 1241898) for reftest and mochitest failures. r=backout 2016-08-18 23:57:44 +02:00
Jean-Yves Avenard
8ac9ba75d3 Bug 1296152: [ffmpeg] Don't use all CPUs available when decoding. r=mattwoodrow
MozReview-Commit-ID: C4CTiC9H79A

--HG--
extra : rebase_source : 05c37856dc72c0b08e23c523cfa41e011b3802ea
2016-08-18 15:34:19 +10:00
Wes Kocher
75891668b5 Merge m-c to fx-team, a=merge 2016-08-17 17:26:23 -07:00
Wes Kocher
07f8858bf6 Merge inbound to central, a=merge 2016-08-17 16:38:41 -07:00
Randell Jesup
bb59c9e52f Backed out changeset 3fb31d11633e (bug 1295296) 2016-08-17 16:22:41 -04:00
Wes Kocher
37a02d441d Backed out 6 changesets (bug 1264642) for marionette failures a=backout CLOSED TREE
Backed out changeset f0067001c059 (bug 1264642)
Backed out changeset 078e5c447f21 (bug 1264642)
Backed out changeset 7c60fc4144fb (bug 1264642)
Backed out changeset 9f434697ef2e (bug 1264642)
Backed out changeset 06fc278fcedf (bug 1264642)
Backed out changeset 162098402acc (bug 1264642)
2016-08-17 10:49:25 -07:00
Wes Kocher
b7ea1393f2 Backed out 3 changesets (bug 1286476) for frequent windows wpt failures in phases-and-states.html CLOSED TREE
Backed out changeset 53bbfa02d45d (bug 1286476)
Backed out changeset 3947ab570883 (bug 1286476)
Backed out changeset ffd8c37eb695 (bug 1286476)
2016-08-17 10:41:46 -07:00
Wes Kocher
6b3d348f17 Backed out 2 changesets (bug 1294358) for xp mda failures a=backout CLOSED TREE
Backed out changeset 886441076b5f (bug 1294358)
Backed out changeset 848141457f25 (bug 1294358)

--HG--
extra : amend_source : 393a51d18d37246cec3617fb3162478cd98b3bb2
2016-08-17 10:06:40 -07:00
Wes Kocher
6f430a404b Backed out changeset 942b01866756 (bug 1295844) for xp mda failures a=backout 2016-08-17 10:06:27 -07:00
Andreas Pehrson
0083eb9342 Bug 1295296 - Ignore video tracks in MediaStreamAudioSourceNode. r=jesup
MozReview-Commit-ID: 1NeFS5wIpxC

--HG--
extra : transplant_source : %CB%0A%A7c%5C%EF%9A%EA%E6D%AE%9C%8F%CC%16%3E%9E%9E2a
2016-08-17 14:26:47 +02:00
Andreas Pehrson
0dd38ea89e Bug 1295296 - Assert that we don't see video tracks in ExternalAudioInputStream. r=jesup
MozReview-Commit-ID: Cw7KMFhY5Ai

--HG--
extra : transplant_source : w_U%C6%0DVL%3F%22%03D%0F%8E%05%86%8A%97%D6%7C%8D
2016-08-17 14:26:15 +02:00
Andreas Pehrson
97c077fd3e Bug 1295296 - Add a mochitest. r=jesup
MozReview-Commit-ID: OolLgdIQy9

--HG--
extra : transplant_source : %87%0E%B2K%BFr%D4%2B%F4%B99r%F7%F3%92%BA%D3%90%A7%FD
2016-08-17 14:25:33 +02:00
JW Wang
ecaa7b7a0d Bug 1295901 - Change the semantics/naming of MediaDecoderReader::ReleaseMediaResources(). r=jya
MozReview-Commit-ID: DyOwNcC2JK5

--HG--
extra : rebase_source : 5b14dfe1df7ed9eab1783fba64ff4a481e520339
2016-08-17 15:03:30 +08:00
Robert Longson
6c438265fc Bug 1241899 - Make SVGZoomAndPan [NoInterfaceObject]. r=peterv 2016-08-18 21:29:24 +01:00
Robert Longson
31f8ea9fce Bug 1241898 - Make SVGUnitTypes [NoInterfaceObject]. r=peterv 2016-08-18 21:27:55 +01:00
Michael Layzell
c6c3b7b266 Bug 1296277 - Move DataTransferItem.cpp and DataTransferItemList.cpp into UNIFIED_SOURCES, r=baku
MozReview-Commit-ID: IjajWDSuBxn
2016-08-18 15:54:22 -04:00
Michael Layzell
6dbd9e26cb Bug 1296041 - Check subject principal in Data(), instead of IndexedGetter, r=baku
MozReview-Commit-ID: 4aeGjTejP3z
2016-08-18 15:54:21 -04:00
Nathan Froyd
029b26c7e4 Bug 1296078 - avoid passing nsCString objects to %s format string codes; r=gerald 2016-08-18 23:44:51 -04:00
Wes Kocher
66098b3d43 Merge m-c to autoland, a=merge 2016-08-17 17:25:57 -07:00
Jonathan Chan
b35975ec17 Bug 1293739 - Part 2: Rename nsCSSPropertySet to nsCSSPropertyIDSet. r=dholbert
The previous patch in this series renamed nsCSSProperty to nsCSSPropertyID.
This patch renames nsCSSPropertySet to nsCSSPropertyIDSet accordingly.

This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSPropertySet\b/nsCSSPropertyIDSet/g' -i''

Then:

  hg mv layout/style/nsCSSPropertySet.h layout/style/nsCSSPropertyIDSet.h

... and finally, manually renaming nsCSSPropertySet in the include guard in
nsCSSPropertyIDSet.h.

(NOTE: Re-landing this patch on a CLOSED TREE to correctly-address the merge bustage that closed the tree.)

MozReview-Commit-ID: ASUNs7FWbKP

--HG--
rename : layout/style/nsCSSPropertySet.h => layout/style/nsCSSPropertyIDSet.h
2016-08-16 18:46:58 -07:00
Jonathan Chan
4b87f11bd9 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc
1794619188 Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Wes Kocher
48b8d407c8 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change

--HG--
extra : amend_source : f7e57101e1a25d3cf3536a256898ec2a21c54b38
2016-08-16 17:05:30 -07:00
Wes Kocher
29f8ebb92a Backed out changeset 9e24eb751c21 (bug 1291946) for android debug mda1 failures CLOSED TREE 2016-08-16 12:22:20 -07:00
Jeff Walden
c07ca36127 Bug 1174386 - Fix a rebase-induced pointer-to-bool conversion error. r=bustage in a CLOSED TREE 2016-08-16 09:08:00 -07:00
Andrea Marchesini
01bf6ba4a1 Bug 1288770 - Switch worker timeouts to using nsJSTimeoutHandler, r=smaug 2016-08-16 08:10:30 +02:00
ctai
6127c90007 Bug 1140675 - Enable test_bug879717.html on windows. r=jwwang.
MozReview-Commit-ID: Enl9fCqHhYN

--HG--
extra : rebase_source : 2b0345d1e2b2d8cfc31a10057daeef0708492621
2016-08-15 16:07:04 +08:00
ctai
36ce16e4cd Bug 608634 - Add the bug number for the todo part. r=jwwang
MozReview-Commit-ID: 7r3GMRiuTNf

--HG--
extra : rebase_source : f91d18ffdd91fe7be862bd9d7c753dc63088bba0
2016-08-17 17:37:58 +08:00
ctai
57f4a5fc0f Bug 608634 - Enable test_error_in_video_document.html in all platform. r=jwwang.
Bug 1154802 provided a workaround for this race condition. So enable it in all platform.

MozReview-Commit-ID: BS1iW4O7TsZ

--HG--
extra : rebase_source : ac825a25b195b22106ae70cb412a0b61bd846bfb
2016-08-17 17:34:07 +08:00
ctai
070831d08f Bug 608634 - Fix redundant comments. r=jwwang.
MozReview-Commit-ID: EYW8O9vZipH

--HG--
extra : rebase_source : 301427f859ff50c32bc28e243f1a606e2ad9ef7a
2016-08-17 16:17:14 +08:00
Daisuke Akatsuka
b179aa1d62 Bug 1277433 - Part 4: Add CSS Animation tests. r=birtles
MozReview-Commit-ID: 12CdohazBTS

--HG--
extra : rebase_source : 87a6e17b33241d3db230137f4478357df5a8d4f0
2016-08-16 14:30:15 +09:00
Daisuke Akatsuka
095d7039ae Bug 1277433 - Part 1: Use discrete animation for appropriate CSS Alignment properties. r=dholbert,heycam
MozReview-Commit-ID: BHtzuwJOuB5

--HG--
extra : rebase_source : 975720e6ce68743ab8915a62f8f8cda48ee69340
2016-08-16 14:29:21 +09:00
Munro Mengjue Chiang
a365444cc2 Bug 1286429 - MediaDevices ondevicechange mochitest; r=jib
MozReview-Commit-ID: 9Mk1jDzRAEQ

--HG--
extra : rebase_source : 657e31211372be12b92369e56ece1c424a63ad50
2016-08-12 10:40:52 +08:00
Dan Minor
3de6cf478f Bug 1281382 - Fix setTargetAtTime using incorrect starting value when earlier event is skipped; r=karlt
This updates mLastComputedValue when removing events during the call to
CleanupEventsOlderThan.

MozReview-Commit-ID: 1Veyv8kLIna

--HG--
extra : rebase_source : 9ee9aeb458b60316f93616e3310ad26f9e85e79c
2016-08-12 14:57:19 -04:00
Edwin Flores
29a30711a0 Bug 1272123 - Limit the size of CanvasRenderingContext2D::mStyleStack - r=mstange 2016-08-17 09:26:11 +01:00
Andrea Marchesini
248823da76 Bug 1264053 - MessagePort should support transferable objects in multi-e10s - part 2, r=sfink 2016-08-17 07:54:00 +02:00
bechen
931402dd2f Bug 1291629 - Remove RTSP code. r=jwwang
MozReview-Commit-ID: AxaLwO4rTuY

--HG--
extra : rebase_source : f8a5de1be1471238d62b6bbc419b3a45f2590da6
2016-08-10 10:32:25 +08:00
Boris Chiou
2721920a34 Bug 1293106 - Ignore 'spacing' if dom.animations-api.core.enabled is false. r=birtles
MozReview-Commit-ID: K7hbCjLP6vB

--HG--
extra : rebase_source : 0e774faec05527c2267ae1df48db55856b6b6c75
2016-08-10 17:58:49 +08:00
Manish Goregaokar
6519960758 Bug 1295177 - Convert STYLE_FILL_RULE_* to an enum class; r=xidorn
MozReview-Commit-ID: HnNFNyD4oVJ

--HG--
extra : rebase_source : 12dcee0023ec66a49ea2db673bb5ac85cd006c1e
2016-08-15 21:47:04 +05:30
Chris Pearce
3940f4a605 Bug 1258870 - Don't push late video frames to the compositor, drop them. r=jwwang
We can get out of A/V sync if the decode is struggling to keep up. This is
because of the loop in VideoSink::UpdateRenderedVideoFrames(). If this function
runs while there's only one frame in the video queue, we won't drop that one
frame if it's late. If we're struggling to keep up, it's increasingly likely
that we'll end up running this function with only one frame in the video queue.
That results in us entering VideoSink::RenderVideoFrames() with only 1 late
frame, which the compositor dutifully draws. Resulting in a late frame being
drawn, and thus broken A/V sync.

This change makes VideoSink::UpdateRenderedVideoFrames() drop all late
frames, even the last one in the video queue. We now keep A/V sync when the
decode is struggling to keep up. However, if I do this, we end up dropping
(and reporting that we drop) a lot more frames, and thus rendering a lot fewer.
But since we when we drop the frames we report them as dropped, a well written
MSE player can detect that we've failing miserably to keep up, and and lower
their bitrate.




MozReview-Commit-ID: ybkq48mKk2

--HG--
extra : rebase_source : f03c186059a365a45de698b2a30e632daae47fb8
2016-08-15 13:35:52 +12:00
JW Wang
f59d74c259 Bug 1295146 - add assertions to debug null-deref. r=jya
MozReview-Commit-ID: 966DpcaT1p8

--HG--
extra : rebase_source : 79a1079161880771bb17bcfbb5786a53b298d060
2016-08-16 09:38:29 +08:00