Граф коммитов

60990 Коммитов

Автор SHA1 Сообщение Дата
Hiroyuki Ikezoe cb4ce7109c Bug 1340958 - Drop AnimationRule and ServoAnimationRule. r=boris
MozReview-Commit-ID: ClnvyShHpsN

--HG--
extra : rebase_source : c554550264bfedafbf91ed2ed754603fb5c3e4c6
2017-03-17 13:24:42 +09:00
Hiroyuki Ikezoe 3b9f585232 Bug 1340958 - Put computed values into AnimationValueMap instead of hashtable in gecko. r=heycam
Before this patch, we store each computed values in a hashtable,
nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>, for all
KeyframeEffectReadOnly on an element, and convert the ServoAnimationValues of
the hashtable into an nsTArray<ServoAnimationValue*> and then convert
the ServoAnimationValues of the nsTArray into PropertyDeclarationBlock
in rust.  This way was really inefficient.
In this patch, we store the computed values into AnimationValueMap and
convert all AnimationValue in the map into PropertyDeclarationBlock
after EffectCompositor::GetAnimationRule.

MozReview-Commit-ID: EJ2Kl65fVeF

--HG--
extra : rebase_source : e30a9d440dc9855e21b94501b07a3501d31bc345
2017-03-17 13:23:21 +09:00
Hiroyuki Ikezoe 2511ac5d4e Bug 1340958 - Templatize ComposeStyle. r=birtles
Later in this patch series we will replace ServoAnimationRule with a hashmap.
At that point, we would like to pass the hashmap to ComposeStyle. In order
to achieve that, this patch templatizes the 'animation rule' parameter of
ComposeStyle in both Animation and KeyframeEffectReadOnly so that it can
represent a hashmap instead.

MozReview-Commit-ID: H5bMxjN3W8n

--HG--
extra : rebase_source : 58cd9ee1cda51970d35c52b39d2cdab12055e24a
2017-03-17 13:22:13 +09:00
Hiroyuki Ikezoe 2d5908cdb1 Bug 1340958 - Separate ComposeStyle() into servo and gecko versions. r=birtles
MozReview-Commit-ID: FAXf6J9UVjo

--HG--
extra : rebase_source : 606043e23b478558dd931756c0769dd2ef592b3b
2017-03-17 12:48:56 +09:00
Hiroyuki Ikezoe faa7a6f3cb Bug 1340958 - Allocate StyleRule only if we need to compose styles. r=birtles
MozReview-Commit-ID: 6ucsxBAaYRp

--HG--
extra : rebase_source : ec0bd4627d40335c353b79720f7dfb2e4f3c304c
2017-03-17 12:48:51 +09:00
Hiroyuki Ikezoe a3c9c5051e Bug 1340958 - Do not call EffectCompositor::GetServoAnimationRule for print preview. r=heycam
The only one caller of GetServoAnimationRule is Gecko_GetAnimationRule.
There is no risk that pres context is destroyed in Gecko_GetAnimationRule.

MozReview-Commit-ID: 52pxbCiCNoJ

--HG--
extra : rebase_source : 8000e267d1d5706c709f807e11396dda3579c4dc
2017-03-17 12:48:34 +09:00
Kaku Kuo 0d5f3a200f Bug 1347402 part 5 - create MediaElementGMPCrashHelper in HTMLMediaElement.cpp; r=cpearce,jwwang
Move the creation of MediaElementGMPCrashHelper out from MediaDecoder.cpp
which reduces the dependency of MediaDecoder to HTMLMediaElement.

MozReview-Commit-ID: E60aMfcFr7V

--HG--
extra : rebase_source : f50a8ee6f2fbec0bdf117eb1217066bc9c701745
extra : source : dd4e52da6d0d6205fe61d0caba44bbff008fd21a
2017-03-16 11:16:15 +08:00
Kaku Kuo b7fee84e84 Bug 1347402 part 4 - move ConstructMediaTracks/RemoveMediaTracks to HTMLMediaElemnt; r=jwwang
ConstructMediaTracks and RemoveMediaTracks are actually HTMLMediaElement's responsibilities.

MozReview-Commit-ID: 8lOdzD4pN7N

--HG--
extra : rebase_source : 7159d2c62b77429e5b2305b9e3eb7a0020a3b52c
extra : source : 0467c059be3cd8f066da5fc912b7738a5b9c4dd9
2017-03-15 17:33:21 +08:00
Kaku Kuo 81d9f0e2db Bug 1347402 part 3 - get owner document via polymorphism; r=jwwang
MozReview-Commit-ID: GCr2xQyST4X

--HG--
extra : rebase_source : 2798b2f962d52f1fbb2a4459951a1c18e4a0050a
extra : source : 03ead19e945201d3f0e42643cfe0ddf1bc43764f
2017-03-15 14:56:05 +08:00
Kaku Kuo a71c156f34 Bug 1347402 part 2 - open a GetOwnerDoc() interface at the MediaDecoderOwner; r=jwwang
Open a GetOwnerDoc() method to the MediaDecoderOwner interface and then we can get the
owner document via a pointer to MediaDecoderOwner in MediaDecoder.

MozReview-Commit-ID: JCzQDLx1MsU

--HG--
extra : rebase_source : e194c95cb1513046ec7aa19d6c6e9f8231971a2d
extra : source : 1b9c45911a036e3677b6636cda84a636681d71de
2017-03-15 11:40:37 +08:00
Kaku Kuo c8bd9d4d79 Bug 1347402 part 1 - call DownloadSuspended() via polymorphism; r=jwwang
Instead of calling DownloadSuspended() via a pointer to a HTMLMediaElement,
we should call DownloadSuspended() via a pointer to a MediaDecoderOwner.

MozReview-Commit-ID: BvExQuchsWb

--HG--
extra : rebase_source : 0c8a5d412e91e2c370050a4706fc6f2afc0c20e9
extra : source : fb5ca26fc018e273296411a037b70b922cb26f4d
2017-03-15 11:20:57 +08:00
Carsten "Tomcat" Book 1c400b7ed3 Backed out changeset 39ee9556d4a0 (bug 1346623) 2017-03-17 08:18:53 +01:00
Kaku Kuo 7f7c37e4b3 Bug 1347836 part 2 - make HTMLMediaElement::GetCurrentImage() return an already_AddRefed<layers::Image>; r=jwwang
MozReview-Commit-ID: FZ4JRdbPUry

--HG--
extra : rebase_source : 9d532e4bb55be8b9d83d120ee62a7b2f5e521efc
2017-03-16 17:07:04 +08:00
Kaku Kuo 97ae833320 Bug 1347836 part 1 - fix comment; r=jwwang
MozReview-Commit-ID: 61ElwSsArw1

--HG--
extra : rebase_source : bf7ffa38145692c47762b0f47c7f2dc943f2c33d
2017-03-16 17:05:10 +08:00
bechen 098e6e6897 Bug 1344604 - part2: Return empty DocumentFragment if the ConvertCueToDOMTree() return null. r=alwu
It is a regression of bug1307710, if something wrong during the ConvertCueToDOMTree() in vtt.jsm, we will get null ptr.

MozReview-Commit-ID: LSQrJIhBzRU

--HG--
extra : rebase_source : b0a2cf675f9288ddc9c264faaffcf97049c6c1c6
2017-03-16 15:25:56 +08:00
bechen 622a99a3ec Bug 1344604 - Return null if there is an incomplete tag in nextToken(). r=alwu
MozReview-Commit-ID: 5mvFhaAx2s5

--HG--
extra : rebase_source : 5ca9f9ae29cbe5bc5a7fdf31489212d252f52656
2017-03-16 15:25:34 +08:00
Thomas Nguyen 7c3117165a Bug 1192940 - Support referrer policy in sendBeacon r=Ehsan
MozReview-Commit-ID: FEyqInOkiT6

--HG--
extra : rebase_source : 573e9b2c9ae906f7b75983c4cc4edcea7cfeff92
2017-03-17 11:53:16 +08:00
Cameron McCormack d47e6354c6 Bug 1346623 - Part 2: Add an API to get computed style values through an AnonymousContent object. r=bholley
MozReview-Commit-ID: Dbvuk16CjFT

--HG--
extra : rebase_source : 2c40e4cd9ce08d6f2a5feb13293cc151de6deb80
2017-03-16 22:46:43 +08:00
Masayuki Nakano c038f800f7 Bug 1339331 TextEventDispatcher should replace \r in composition string with \n and TextComposition should allow to input \n with composition events r=m_kato
According to ATOK's behavior, IME may send different line breaker from its platform's standard.  Therefore, we should treat \r as \n too.

Additionally, currently, TextComposition doesn't allow to input \n with composition.  However, this was added for preventing to see odd control characters as boxes with code point.  Therefore, we should allow \n for IMEs. (It was allowed, this limitation is unexpected when I reviewed the patch to reject control characters in TextComposition.)

MozReview-Commit-ID: DzGSMgp89Av

--HG--
extra : rebase_source : 0644e5941a080583af8701546111fbf46ec646ec
2017-03-16 16:26:43 +09:00
Frederik Braun 17c2bf2604 Bug 1224225: Tests for punycode/unicode in CSP source matching code r=ckerschb,KWierso
MozReview-Commit-ID: 21Mr9ekUvnk

--HG--
extra : rebase_source : be5d673efaa31e322fea5da5ff4e7e6fa749daca
2017-03-15 13:22:55 +01:00
Frederik Braun cef461241c Bug 1224225: Use GetAsciiHost in CSP source matching code r=ckerschb,KWierso
MozReview-Commit-ID: B7SwUEMiVwc

--HG--
extra : rebase_source : d5dbec9f6aac4a627c35fb93f85f8e922fa695dd
2017-03-15 13:22:06 +01:00
Daosheng Mu 7365b64923 Bug 1306493 - Part 6: disable require gesture when running VR tests; r=kip
MozReview-Commit-ID: EGTumxkgcDW

--HG--
extra : rebase_source : f9448d700c6b58c7aaa865e5f73e9265240f5569
2017-03-16 11:46:22 +08:00
Daosheng Mu 1785cdc8c9 Bug 1306493 - Part 4: Make timestamp to be a monotonically increasing value in VRMockDisplay; r=kip
MozReview-Commit-ID: COR9n3fQBTX

--HG--
extra : rebase_source : 373621c4f46ad438b7ba2ae5555965025e46ce23
2017-03-15 13:49:39 +08:00
Daosheng Mu df416a1cc2 Bug 1306493 - Part 3: Add VRDisplay getFrameData test for WebVR; r=kip
MozReview-Commit-ID: CEufWUY7xNZ

--HG--
extra : rebase_source : c1ce7948fde9ad75aad945facff25bba1d3fe794
2017-03-13 13:10:33 +08:00
Daosheng Mu c7e761255a Bug 1306493 - Part 2: Make vrMockDisplay to be the global var in VRSimulationDriver; r=kip
MozReview-Commit-ID: HTHqehkUMwC

--HG--
extra : rebase_source : dee4245fcdee8f054703287fc5c321bd55ffc8f1
2017-03-13 13:09:19 +08:00
Daosheng Mu f09c777451 Bug 1306493 - Part 1: Fix bug of getting frame data from VRPuppet; r=kip
MozReview-Commit-ID: L8gPVjxELtV

--HG--
extra : rebase_source : 1790c8970e5401c1e0c4431c947f9bdad2fa2c34
2017-03-13 13:07:48 +08:00
Wes Kocher 1b3ffba4d5 Merge m-c to autoland, a=merge
MozReview-Commit-ID: CtdOO1SeODv
2017-03-16 14:07:44 -07:00
Sebastian Hengst 409b7d9ed9 Backed out changeset 3a6cb84f8cf8 (bug 1341008) for frequently failing toolkit/components/extensions/test/xpcshell/test_ext_i18n.js on Windows. r=backout 2017-03-16 17:29:49 +01:00
Sebastian Hengst e43c8a0ce7 Backed out changeset 8a1c36e9ba80 (bug 1341008) 2017-03-16 17:29:18 +01:00
Carsten "Tomcat" Book 023d5aecd1 Merge mozilla-central to mozilla-inbound 2017-03-16 15:39:58 +01:00
Carsten "Tomcat" Book 468f7d8e9f merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Gabor Krizsanits 2fc4ec4086 Bug 1341008 - Use the preallocated process manager by default. r=billm, r=kmag 2017-03-16 11:22:37 +01:00
Gabor Krizsanits c49bd7ffcf Bug 1341008 - Stop rebroadcasting BlobURLUnregistration. r=baku 2017-03-16 11:22:29 +01:00
Andrea Marchesini a628be7b36 Bug 1344415 - Introduce a security check about which files can be opened by a content process, r=ehsan
Entries API gives access to the filesystem. With this patch we allow that only
to patches, previously shared by a FilePicker or a DataTransfer event.
2017-03-16 08:53:49 +01:00
Bevis Tseng 2a318e8c71 Bug 1332491 - Delete SelectorCacheKey synchronously. r=bz
1. The current asynchronous behavior is pointless, because we still remove the
   hashtable entry synchronously, which deletes the value, and it's the value
   we're using.
2. Trying to asynchronously delete the value is difficult, and not currently
   needed because we can't get a memory-pressure notification while we're using
   the value, and hence can't expire it from the expiration tracker.
   Note: we can't get this memory-pressure notification because the stage 2 of
   mozalloc_handle_oom() to reclaim memory when OOM is not implemented yet.
2017-03-13 14:37:19 +08:00
Matthew Gregan f95527065e Bug 1341238 - Don't hang on to pointer from temporary NS_LossyConvertUTF16toASCII. r=padenot 2017-03-16 18:26:33 +13:00
Damien Zammit ce4722833c Bug 1341238 - Introduce (hidden) pref to force a particular libcubeb backend. r=kinetik,ehsan
This adds 'media.cubeb.backend' to ContentPrefs, which is necessary because
`cubeb_init` is called _very_ early in the lifetime of a content process,
because it needs to be called before enabling seccomp.
2017-03-16 18:26:33 +13:00
Kaku Kuo 642536ba3b Bug 1345179 - use MakeUniqueFallible() in BlankVideoDataCreator; r=jwwang
If OOM happends, just return null and the DummyMediaDataDecoder will reject the DecodePromise with NS_ERROR_OUT_OF_MEMORY.

MozReview-Commit-ID: H6sTyoQWZk5

--HG--
extra : rebase_source : 5046a68978b817db8f1191e1f56e80ec5848899c
2017-03-16 12:09:23 +08:00
Kerem KAT 0d9b07ec14 Bug 247996 - Add JS console warnings for every script element with an src that fails to load/execute it. r=bzbarsky
MozReview-Commit-ID: 4fH6UFqUhfY
2017-03-09 19:54:26 +03:00
John Lin 66e158e1c6 Bug 1345599 - part 3: for recyclable decoder, don't drain/flush when stream ID/SPS change. r=jya
MozReview-Commit-ID: 4qtlbMWgfPo

--HG--
extra : rebase_source : f5b71b6803e2f725639e675081bc30cd0b1bde2a
2017-03-14 15:04:52 +08:00
Hiroyuki Ikezoe a9a15a1807 Bug 1347806 - Fix pseudo nsIAtom for ::before and ::after. r=birtles
cssPseudoElementBeforeProperty and cssPseudoElementAfterProperty are for
CSSPseudoElement.

MozReview-Commit-ID: 3WETv4QeC5

--HG--
extra : rebase_source : b7e902786ca9ebe7c92a573604e15d868c6067a7
2017-03-16 14:01:44 +09:00
BharatR123 9747fa7418 Bug 1302637 - Animation::PostUpdate() calls KeyframeEffectReadonly::RequestRestyle() r=hiro
Also removed the function GetPresContext() in KeyframeEffectReadOnly.cpp
and KeyframeEffectReadOnly.h

MozReview-Commit-ID: AJCgxQ05yVQ

--HG--
extra : rebase_source : d85db8bf29079964e4210e5b3a381e8483d92441
2017-03-14 22:03:22 +05:30
David Major ed12ea611f Bug 1346078: Remove nsAString_internal and just use the nsAString name directly. r=bsmedberg
MozReview-Commit-ID: DWDEDMIVKm7

--HG--
extra : rebase_source : 7fe8dc07c816dca234c67761e61cdee372a87e97
2017-03-10 15:17:23 +13:00
Wes Kocher 1d6765414b Merge m-c to autoland, a=merge
MozReview-Commit-ID: AcDLWqQhcBe
2017-03-15 14:29:24 -07:00
Wes Kocher 06af2f1e92 Merge inbound to central, a=merge
MozReview-Commit-ID: 4p4SK3EhvJ2
2017-03-15 14:24:58 -07:00
Sebastian Hengst f99f62aa8e Backed out changeset 4f2cd3f715a2 (bug 1343550) for failing its own test. r=backout 2017-03-15 18:48:33 +01:00
Sebastian Hengst c052e5df14 Backed out changeset b258ffe9ee50 (bug 1343550) 2017-03-15 18:47:40 +01:00
Brad Lassey 947433c766 bug 1342685 - Intermittent ts_paint | Found crashes after test run, terminating test r=billm
the << operator of std:stringstream is occationally hanging on Windows 7 PGO builds, this uses nsPrintfCString to do formatting rather than stringstreams and replaces the std::string with nsFixedCSting for string building
2017-03-15 13:35:53 -04:00
Sebastian Hengst 442777727d Backed out changeset 753843fed8a9 (bug 1346737) for build bustage. r=backout on a CLOSED TREE 2017-03-15 15:48:17 +01:00
Sylvestre Ledru 119d178a43 Bug 1346737 - Use a const in the for loop declaration to avoid copy in nsGlobalWindow.cpp r=Ehsan
MozReview-Commit-ID: Gu6BFUVIILb

--HG--
extra : rebase_source : f8d6a9fa1c70bda963604d6cee01cb42e059e129
2017-03-13 12:13:41 +01:00