Commit Graph

61617 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
fa100db77c Bug 1311257 - Move stuff of KeyframeEffectReadOnly::ComposeStyleRule in Rust. r=heycam
After this, we will implement additive or accumulative calculation
in this Rust function.

MozReview-Commit-ID: 4xAvLz1oTIZ

--HG--
extra : rebase_source : c0672cb1c894eadaaebec94dce2f0d1c1a77d244
2017-04-06 10:34:51 +09:00
Hiroyuki Ikezoe
472261864f Bug 1311257 - Move AnimationPropertySegment in a separate header and expose it in FFI. r=heycam
This will be used for animation value composition in Rust.

MozReview-Commit-ID: Lg4dZrQW1WC

--HG--
extra : rebase_source : e03b19aa7907c122f773b2b06df96aee4fe32ae2
2017-04-06 10:34:50 +09:00
Hiroyuki Ikezoe
80d32932a1 Bug 1311257 - Store base styles for stylo. r=birtles
MozReview-Commit-ID: DcEx4aTDOY0

--HG--
extra : rebase_source : 39d161ca8226b75c6b1c6afec675b8763eb83c1f
2017-04-06 10:34:50 +09:00
JW Wang
9e90566794 Bug 1353668. P3 - rename CMLOG to LOG. r=kaku
MozReview-Commit-ID: 67dN3NEBCA7

--HG--
extra : rebase_source : 2a7e2efd25078d64db2bb6aa454c6fbcc6f53da1
extra : source : e9753b7008497378a3a9ff3e97a00d4af68c5d95
2017-04-05 17:38:20 +08:00
JW Wang
db15462627 Bug 1353668. P2 - remove RESOURCE_LOG. r=kaku
MozReview-Commit-ID: 1PelTy83ETW

--HG--
extra : rebase_source : 10c37d38aca14da009557f81a1e34b96945d4024
extra : source : 5931f833ad91d177e393bf0cba36e2653f42de28
2017-04-05 17:27:35 +08:00
JW Wang
a7ba58c6c2 Bug 1353668. P1 - add a member function, CopySegmentToCache. r=kaku
MozReview-Commit-ID: 5uEWpMigspX

--HG--
extra : rebase_source : 51860bbc6e4de4f80045c774d3393158ff2251dd
extra : source : 9cb8013b0761a95eb0b30b83d05361a6d4dad7fd
2017-04-05 17:24:03 +08:00
JW Wang
555e36e1d0 Bug 1351574. P2 - let MediaDecoderReader::DecodeVideoFrame() take TimeUnit instead of int64_t. r=jya
MozReview-Commit-ID: 84z2yir8sfX

--HG--
extra : rebase_source : 9eda512734dfd7d72b107ee5c6e2c2bac9553b44
extra : source : 5c9d90e876ced6d35dd269e10c817de4f30288b3
2017-03-30 18:07:53 +08:00
JW Wang
8944536d62 Bug 1351574. P1 - let MediaDecoderReader::RequestVideoData() take TimeUnit instead of int64_t. r=jya
MozReview-Commit-ID: DOsYkcJ77Em

--HG--
extra : rebase_source : 3a62ef115f29121ff8b3f10651e4085ee9b0a5f9
extra : intermediate-source : cad177b6c8fbdc3dee80cc8fdb553b2d9d60bd04
extra : source : d26b8549793add957cb4620418fa861a3b8c7aec
2017-03-29 16:52:57 +08:00
Chris Pearce
967567edb5 Bug 1351953 - Pre-allocate shmems for the CDM process to use for storing decrypted and audio samples. r=gerald
Makes transfer of samples between the content and CDM processes use shmems.

The Chromium CDM API requires us to implement a synchronous interface to supply
buffers to the CDM for it to write decrypted samples into. We want our buffers
to be backed by shmems, in order to reduce the overhead of transferring decoded
frames. However due to sandboxing restrictions, the CDM process cannot allocate
shmems itself.  We don't want to be doing synchronous IPC to request shmems
from the content process, nor do we want to have to do intr IPC or make async
IPC conform to the sync allocation interface. So instead we have the content
process pre-allocate a set of shmems and give them to the CDM process in
advance of them being needed.

When the CDM needs to allocate a buffer for storing a decrypted sample, the CDM
host gives it one of these shmems' buffers. When this is sent back to the
content process, we copy the result out (uploading to a GPU surface for video
frames), and send the shmem back to the CDM process so it can reuse it.

We predict the size of buffer the CDM will allocate, and prepopulate the CDM's
list of shmems with shmems of at least that size, plus a bit of padding for
safety. We pad frames out to be the next multiple of 16, as we've seen some
decoders do that.

Normally the CDM won't allocate more than one buffer at once, but we've seen
cases where it allocates two buffers, returns one and holds onto the other. So
the minimum number of shmems we give to the CDM must be at least two, and the
default is three for safety.


MozReview-Commit-ID: 5FaWAst3aeh

--HG--
extra : rebase_source : a0cb126e72bfb2905bcdf02e864dc654e8340410
2017-03-28 18:59:11 +13:00
Chris Pearce
37ae2a9f5a Bug 1351953 - Make DecryptJob::PostResult take a mozilla::Span instead of nsTArray. r=gerald
This means we can pass anything that converts implicitly to a Span to
PostResult, including an nsTArray<uint8_t>. We can also pass a Span
that contains the contents of a Shmem's buffer.

MozReview-Commit-ID: 8AAcRmVCEVy

--HG--
extra : rebase_source : 44dfbc465db14bb689a653e6c0b3cbc626c0a0d1
2017-04-05 10:32:19 +12:00
Chris Pearce
fb5a8a3e0d Bug 1351953 - Send Data to CDM for decrypt and or decode in shmems. r=gerald
MozReview-Commit-ID: 2UdGimoOLKr

--HG--
extra : rebase_source : 04879d8c1639bf6f14cebc6031d8cc23e05e567a
2017-03-27 13:19:38 +13:00
JW Wang
65d7ce66ea Bug 1351053. P1 - add some assertions to debug who is holding the lock. r=jya
MozReview-Commit-ID: 6twXYbLm8Da

--HG--
extra : rebase_source : e122060580ca446e8de454384770e678bf18a117
2017-04-05 16:25:56 +08:00
Kate McKinley
d082c41757 Bug 1322044 - Only mark a subdomain cached when includeSubDomains is true r=ckerschb,keeler
MozReview-Commit-ID: 3lFkuLauyGg

--HG--
extra : rebase_source : c356f1d4bef73b634eed6ca4d8078281ebc3ce3c
2017-02-13 13:36:01 +09:00
Sajid Ahmed
591da76059 Bug 1007034 - Add console warnings for the deprecated BindXXXParameter methods in mozIStorageBaseStatement and replace calls to the deprecated methods in dom/indexedDB/ActorsParent.cpp. r=mak
--HG--
extra : rebase_source : ac32534d36959ff7f3a1c3a382319e6de4225c2f
2017-04-05 14:08:25 -04:00
Wes Kocher
264adb55c2 Merge m-c to autoland, a=merge 2017-04-05 14:20:01 -07:00
Wes Kocher
3d900a5d7e Merge inbound to central, a=merge 2017-04-05 14:16:37 -07:00
Carsten "Tomcat" Book
c5364b4b43 Merge mozilla-central to mozilla-inbound 2017-04-05 14:50:28 +02:00
Carsten "Tomcat" Book
7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
KuoE0
4f17947f0f Bug 1348738 - (Part 4) Add a nsIDocument arg to nsRepeatService::Start to get the event target from it. r=dholbert
In the new architecture of Quantum DOM, all timer callback need a
specified event target. So, we add the new document arg to Start
function to get the event target from it. And update all callers.

MozReview-Commit-ID: a482mukqGc

--HG--
extra : rebase_source : 36f9d47a4afd7c7113adf3f274656b694b8d0943
2017-03-29 16:40:05 +08:00
KuoE0
5f42875bfd Bug 1348738 - (Part 3) Add a string-label arg to nsRepeatService::Start and upgrade to InitWithNamedFuncCallback from InitWithFuncCallback. r=dholbert
In the new architecture of Quantum DOM, all runnables need a name label.
So, we add the new string-label arg to Start function, and update all
callers.

MozReview-Commit-ID: G9LXFjtFcQv

--HG--
extra : rebase_source : a19b605013be56d01780c831d2a48ada8825b1c7
2017-03-29 16:32:52 +08:00
Thomas Nguyen
afaba58d52 Bug 1339004 - Do DocGroup labeling in dom/security. r=ckerschb,smaug
MozReview-Commit-ID: 3QoH8P4J85I

--HG--
extra : rebase_source : 6f62454001fc02380f8aea99a56eff38de0e9fb6
2017-03-29 10:20:32 +08:00
bechen
268a2f5b7a Bug 1318542 - Label NODE_IS_NATIVE_ANONYMOUS on the elements from ::cue up to nsVideoFrame. r=bz,heycam
Since the ::cue div created by JS, it doesn't have the NODE_IS_NATIVE_ANONYMOUS flag.
We set the NODE_IS_NATIVE_ANONYMOUS when binding to domtree from the ::cue up to the RootOfAnonymousSubtree
so that GetClosestNonNativeAnonymousAncestor will return video element as style parent.

MozReview-Commit-ID: 3EiYOqnbY15

--HG--
extra : rebase_source : eedcd5948852c3405a719b9f3c3396ee009f7273
2017-04-05 10:48:52 +08:00
bechen
adb93a2342 Bug 1318542 - Add preference "media.webvtt.pseudo.enabled". r=rillian
MozReview-Commit-ID: BrdCPgapAYi

--HG--
extra : rebase_source : fdfd90313373394f2dc7f36c61a3a3fbd06c70f3
2017-04-05 10:48:49 +08:00
bechen
30f3430251 Bug 1318542 - Make CueStyleBox apply ::cue. r=heycam,rillian
MozReview-Commit-ID: CNhFlffGAfh
* * *
[mq]: trash

MozReview-Commit-ID: KY2DfqPDmx0

--HG--
extra : rebase_source : fb16313ac5715ec1f544f8a80d0bad26aa42013d
2017-04-05 10:47:36 +08:00
Hiroyuki Ikezoe
018667911c Bug 1323648 - Enable crash tests in dom/base/crashtests. r=shinglyu
MozReview-Commit-ID: F96kiCLjqJg

--HG--
extra : rebase_source : af6d212fb628d3459a527e261846bbf5780fc860
2017-04-01 12:07:07 +09:00
Brian Birtles
5986b384f6 Bug 1353208 - Add check for attribute namespace ID when we decide if it should animate as a CSS property or not; r=dholbert
This seems like an existing bug. If the content specifies
attributeType="yer:opacity", we should not try to animate it as a CSS property.
This patch adds a namespace check before we try to animate as a CSS property.

MozReview-Commit-ID: 1LpBa23ddqX

--HG--
extra : rebase_source : c5a4edb4c48bfd6116e58d4ef3eb91384ee86bd5
2017-03-30 16:13:02 +09:00
Brian Birtles
6b8dbeadd1 Bug 1353208 - Simplify logic in GetCSSPropertyToAnimate to remove double negatives; r=dholbert
MozReview-Commit-ID: 41qhKdcNoNB

--HG--
extra : rebase_source : 22541e23514b950e6d48c72bb0ee4a1f992f67b1
2017-04-04 14:56:52 +09:00
Brian Birtles
e96d223104 Bug 1353208 - Factor out nsSMILCompositor::GetCSSPropertyToAnimate helper method; r=dholbert
In bug 1315874 we will create a method to check if we're likely to need to
resolve base styles or not, and for that we need to extract the check for
whether or not we're animating a CSS property.

MozReview-Commit-ID: 9Ybsi91fro8

--HG--
extra : rebase_source : e2f72a7d807bfbe026fbd1a603cd993c3d502584
2017-03-30 13:10:08 +09:00
Brian Birtles
1efabc2e0b Bug 1353208 - Don't allocate separate heap memory for nsSMILCompositor::mCachedBaseValue; r=dholbert
nsSMILCompositor::mCachedBaseValue is an nsAutoPtr<nsSMILValue> that we allocate
on the heap. It looks like we did that back in bug 533291 presumably because it
makes transferring these cached values between nsSMILCompositor objects cheaper.

One drawback of this, however, is that mCachedBaseValue has two null states:
the mCachedBaseValue pointer can be null, and the pointed-to nsSMILValue can be
a null value (i.e. IsNull() returns true).

Now that we have move ctors and operators defined for nsSMILValue we can
transfer these objects between compositors cheaply without requiring the object
to be allocated as separate heap object. This patch makes mCachedBaseValue just
a regular nsSMILValue class member (i.e. drops the nsAutoPtr).

There's a subtle difference in behavior with regards to the first sample.
Previously we would compare the (initially) null mCachedBaseValue pointer with
the passed-in nsSMILValue and set mForceCompositing to true. With this patch,
however, we will only set mForceCompositing to true if the passed-in
mCachedBaseValue is not null.

I believe this is correct, however, since if we don't call GetBaseValue in
ComposeAttribute we should not be setting mForceCompositing to true (something
else should ensure that gets set to true), and if we do call GetBaseValue the
result should not be a null nsSMILValue (except in some OOM cases where we don't
really care if we miss a sample). This patch adds an assertion to check that
GetBaseValue does, in fact, return a non-null value. (I checked the code and
this appears to be the case. Even in error cases we typically return an empty
nsSMILValue of a non-null type. For example, the early return in
nsSMILCSSProperty::GetBaseValue() does this.)

MozReview-Commit-ID: BRJFa4xMdxz

--HG--
extra : rebase_source : f3e3ca1e01e73610523bde7583e2a002d2473184
2017-03-30 13:10:07 +09:00
Brian Birtles
8ff0648aee Bug 1353208 - Use UniquePtr for handling heap-allocated nsISMILAttr objects; r=dholbert
MozReview-Commit-ID: 10lA0ZaXChj

--HG--
extra : rebase_source : f5285b5363b2247ac73f63d9d13f8a109728a7c2
2017-03-30 13:10:07 +09:00
Brian Birtles
b4442afb51 Bug 1353208 - Sort includes in nsSMILAnimationController.cpp; r=dholbert
We will add to these includes later in this patch series so we sort them now so
it's clear where to add to.

MozReview-Commit-ID: CgqlS3f62nu

--HG--
extra : rebase_source : 009e8de1961cfd3d0f9cd72061e2e8f254f03cad
2017-03-30 13:10:06 +09:00
Brian Birtles
a8a97cdc11 Bug 1353208 - Drop a few remaining references to attributeType; r=hiro
These are left over from bug 1062106.

MozReview-Commit-ID: 4vfcT4O2tMz

--HG--
extra : rebase_source : 2d606f0d5470ae0c56318f7d682ff1ab3ad86f19
2017-03-30 13:10:06 +09:00
Makoto Kato
1c93a16bad Bug 1349879 - Intl object is hidden on Android beta and release channel. r=snorp,Waldo
Some interface tests into mochitest is failure on android beta and release.

test_serviceworker_interfaces.js has nonReleaseAndroid flag, so we should use it into test_interfaces.js and test_worker_interfaces.js

MozReview-Commit-ID: A1aHrTXwGil

--HG--
extra : rebase_source : 0990ec8a50b664ac711ee4977a104286f40ae07e
2017-03-30 19:44:28 +09:00
Nico Grunbaum
deeb9fdcf9 Bug 1348657 - Part 2 - split send/recv packet counts r=jib
MozReview-Commit-ID: 2SENT4rGsLX

--HG--
extra : rebase_source : 8a6c960871ed7fffb28d5a7676d20c016daa3b58
2017-03-30 10:59:46 -07:00
Nico Grunbaum
af67a2fb4c Bug 1348657 - implement framesEncoded, pliCount, nackCount and firCount for webrtc stats r=jib,smaug
MozReview-Commit-ID: E873mbcrlLL

--HG--
extra : rebase_source : ca6f5d7ab0490948aaed1ae793ed5906149b7236
2017-03-21 21:52:06 -07:00
Tobias Schneider
fa547be7bd Bug 1353529 - Crash when using IntersectionObserver in XUL pages. r=mstange
MozReview-Commit-ID: 9RBrnst4Wkb

--HG--
extra : rebase_source : 257874993e1a1fa81931b2c513357c92b6f705a9
2017-04-04 20:14:46 -07:00
Carsten "Tomcat" Book
5d8f1744bf Merge mozilla-central to autoland 2017-04-05 14:52:39 +02:00
Paul Adenot
6d9a0e3387 Bug 1351456 - Don't assume that window.load will be called after the pref has been flipped. r=pehrsons
MozReview-Commit-ID: 2r6d6a5vIa

--HG--
extra : rebase_source : ed7ba96903fd92e51ccddb320213313e3b368e17
2017-04-03 13:20:33 +02:00
Wes Kocher
f18ad1cfc8 Merge m-c to autoland, a=merge 2017-04-04 11:28:54 -07:00
Aryeh Gregor
b03daa975a Bug 1314388 - Remove SVGZoomEvent; r=longsonr,smaug
Some code in SVGSVGElement.cpp might be unnecessary now, but Robert said
to leave it for a followup.

MozReview-Commit-ID: 8PpRGeGrREJ
2017-04-04 15:36:22 +03:00
Aryeh Gregor
a7ed0e7cf4 Bug 1297414 - formatBlock should move non-editable nodes; r=masayuki
Before this change, if you did formatBlock on "a<span
contenteditable=false>b</span>c", it would become "acb", because the "a"
and "c" would be moved to the front of the node, and the "b" would be
left alone at the end because the editing code doesn't want to move it.
Now we will move the "b" as well, even though it's not editable, so that
the node remains "abc".  The rule is that a non-editable element cannot
have its attributes or children changed, but it can have its parent
changed, so there's nothing wrong with moving it here.

On the way, I fixed an exception in insert*List if there was an
uneditable inline node around.  I don't intend to fix all the todo's in
the test, but now it should have better coverage, at least.

MozReview-Commit-ID: 3okcGq4an3f
2017-04-04 13:47:28 +03:00
Aryeh Gregor
c442eea5f2 Bug 1297414 - Support execCommand("defaultParagraphSeparator"); r=masayuki
Later commits will add the actual functionality.

MozReview-Commit-ID: 6Ac9V6MjZpa
2017-04-04 13:47:28 +03:00
Carsten "Tomcat" Book
14e0b51ace merge mozilla-inbound to mozilla-central a=merge 2017-04-04 12:35:03 +02:00
Paul Bignier
9103ac60ef Bug 1352808 - Typo fixes for 'browser' in comments. r=MattN
MozReview-Commit-ID: IA42yQO5Sb8

--HG--
extra : rebase_source : b5426724c5b740639f71e5d058742b01868085e2
2017-04-03 15:26:11 -07:00
Wes Kocher
734b25e05c Merge m-c to inbound, a=merge 2017-04-03 14:51:06 -07:00
Wes Kocher
53dde6a1d2 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Olli Pettay
98fff73826 Bug 1351303, add main thread only cache for nsIAtoms to speed up atomization, r=froydnj
--HG--
extra : rebase_source : 9c67cd71c0721329eaeaaa96a295e90abc480042
2017-04-03 23:13:18 +03:00
Olli Pettay
d5caa7c6c0 Bug 1352687, try to recycle HTMLInputElement's nsTextEditorState, r=baku
--HG--
extra : rebase_source : 05c8dc2bd0c29ce3064548e1cabac2d62803cabc
2017-04-03 20:40:48 +03:00
Masayuki Nakano
7fff9e9d7f Bug 1352949 Remove dom.keyboardevent.code.enabled r=smaug
KeyboardEvent.code has already been enabled and it's already available with Chrome too. So, we won't disable it.

MozReview-Commit-ID: LLlAoMebtsU
2017-04-03 18:04:27 +09:00
Carsten "Tomcat" Book
ca094ba5be Merge mozilla-central to mozilla-inbound 2017-04-03 12:32:10 +02:00