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

524603 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 05122c4a24 Bug 1315601 part 15 - Move some common methods to a new CSSMediaRule binding class. r=heycam
MozReview-Commit-ID: GWpIzTex2le

--HG--
extra : rebase_source : bac2c6fe225ddc19b107de66986623627ce51a8d
2017-03-09 17:37:38 +11:00
Xidorn Quan 4e903ddf5c Bug 1315601 part 14 - Add InsertRuleIntoGroup support to ServoStyleSheet. r=heycam
MozReview-Commit-ID: GUHtvjQXECW

--HG--
extra : rebase_source : dadf70886038ae4d1d62945ee4f4fbc4a3e756aa
2017-03-08 18:27:53 +11:00
Xidorn Quan 50cd42411d Bug 1315601 part 13 - Move common code of DeleteRuleFromGroup/InsertRuleIntoGroup from CSSStyleSheet to StyleSheet. r=heycam
MozReview-Commit-ID: BDxnYb0OkCk

--HG--
extra : rebase_source : 379cfa5390c2235b56d9539ec85d9bf821b8f209
2017-03-08 18:04:15 +11:00
Xidorn Quan 63dfed31ba Bug 1315601 part 12 - Remove useless retval out param from InsertRuleIntoGroup. r=heycam
MozReview-Commit-ID: Iyj0zLj8nsL

--HG--
extra : rebase_source : 39815c7f1c4ab65b32fa5b41c4231c3e76661628
2017-03-08 17:11:42 +11:00
Xidorn Quan 7d403bebc2 Bug 1315601 part 11 - Add Servo support to GroupRule. r=heycam
MozReview-Commit-ID: HLYRz0hsFWc

--HG--
extra : rebase_source : a1ecece1115d08e3c377d8eb1bcd8f7e34957dc2
2017-03-09 20:52:26 +11:00
Xidorn Quan 3c7372ed02 Bug 1315601 part 10 - Make ServoCSSRuleList support being nested. r=heycam
MozReview-Commit-ID: 8IUGxkMZPMj

--HG--
extra : rebase_source : a51c88fd19cf85376a52b4c61b3bd84df6356dab
2017-03-09 20:53:34 +11:00
Xidorn Quan 5155993e83 Bug 1315601 part 9 - Split Gecko-specific GroupRule logic into a separate struct. r=heycam
MozReview-Commit-ID: 7CkGO2KgJN3

--HG--
extra : rebase_source : 04cb9ea11e01a4f57497b4edf148adbd4fc1311b
2017-03-09 22:02:26 +11:00
Xidorn Quan 0e11635123 Bug 1315601 part 8 - Constify Rule::GetCssText. r=heycam
MozReview-Commit-ID: Dn2lWQWUedL

--HG--
extra : rebase_source : 6051886a6695e01f811fecdcdbf2274b2dd470e9
2017-03-08 12:10:16 +11:00
Xidorn Quan abbff1ff9a Bug 1315601 part 7 - Simplify ConditionRule. r=heycam
MozReview-Commit-ID: 1Ip53AOirbi

--HG--
extra : rebase_source : 078ee67ece475cbf68f7395624abfa4e17cbc42c
2017-02-24 14:12:23 +11:00
Xidorn Quan 60fc385265 Bug 1315601 part 6 - Move GroupRule-related code into a separate source file. r=heycam
MozReview-Commit-ID: 7vgqnYC8Y0j

--HG--
extra : rebase_source : 3dc10330853b1e486be83aec6d11388c8bbe8dac
2017-03-07 15:19:03 +11:00
Xidorn Quan 7941bea334 Bug 1315601 part 5 - Implement MediaList for Stylo. r=heycam,manishearth
MozReview-Commit-ID: 1NSyoqguoJr

--HG--
extra : rebase_source : 63e482fa74ef1f88777d9fbe7cdc4c4cb7832666
2017-03-09 17:56:31 +11:00
Xidorn Quan 6f6f7ace2c Bug 1315601 part 4 - Add raw Servo types for MediaList and MediaRule. r=manishearth
MozReview-Commit-ID: HaeqBVL700g

--HG--
extra : rebase_source : cfa00f45b4ff00857956cad9094a68a22149a692
2017-03-09 15:10:11 +11:00
Xidorn Quan 85464df1c1 Bug 1315601 part 3 - Add base class MediaList and move part of nsMediaList to it. r=heycam
MozReview-Commit-ID: A2uJpbGgO55

--HG--
extra : rebase_source : 40a9171307b6a30288169e27caa43595349d2df7
2016-11-09 17:28:24 +11:00
Xidorn Quan 1c7faa5774 Bug 1315601 part 2 - Replace macros with template function with lambda in nsMediaList. r=heycam
MozReview-Commit-ID: 2k2eMZDoBd9

--HG--
extra : rebase_source : e7cbb83a6e205e6359e5a81ade6996a3b6a1cdd4
2017-02-22 15:41:44 +11:00
Xidorn Quan ce71746090 Bug 1315601 part 1 - Move type_traits include down in nsCSSValue.h. r=heycam
MozReview-Commit-ID: 9ptq7e7NlSB

--HG--
extra : rebase_source : c73bec7d8ec0a86d8cc71b36f3c4b032afb40248
2017-02-22 15:04:30 +11:00
Manish Goregaokar 5ce0fe128d Bug 1341102 - Update stylo test expectations; r=bustage
MozReview-Commit-ID: 3zIi8Yu1GJO
2017-03-13 01:04:58 -07:00
Xidorn Quan fb329e7467 servo: Merge #15924 - Implement access to CSSMediaRule for stylo (from upsuper:bug1315601); r=heycam,Manishearth
This is the Servo part of [bug 1315601](https://bugzilla.mozilla.org/show_bug.cgi?id=1315601).

Source-Repo: https://github.com/servo/servo
Source-Revision: cc9fb0ba59181d478eabb64e942b9342a4879a73

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 09cdf9d508235f512f8c41664be0f040a91efdfc
2017-03-12 23:55:46 -07:00
Iris Hsiao bdff9504ef Backed out 5 changesets (bug 1345403) for permanent failure in autophone Mdm tests
Backed out changeset f6415ae0ba89 (bug 1345403)
Backed out changeset ac12e246a808 (bug 1345403)
Backed out changeset a3e4ce12194f (bug 1345403)
Backed out changeset ba072186c917 (bug 1345403)
Backed out changeset 7a7d6e9b8329 (bug 1345403)
2017-03-13 15:28:14 +08:00
Manish Goregaokar 802cd7c207 Bug 1341690 - stylo: Make URLs work in inline style; r=emilio
MozReview-Commit-ID: 6Tc0kBw4V8c
2017-03-10 18:28:02 -08:00
Hiroyuki Ikezoe 26912d5fca Bug 1346655 - Update mochitest expectation. r=heycam
MozReview-Commit-ID: GTq8225361L

--HG--
extra : rebase_source : 154f65a5ab83fc1e59789e79a9f5a03ed78750f1
2017-03-13 12:45:40 +09:00
Hiroyuki Ikezoe 43b507014b servo: Merge #15923 - Fill animation properties in the case where the length of the animation property is shorter than the length of animation-name property (from hiikezoe:animation-properties); r=heycam
<!-- Please describe your changes on the following line: -->
PR for https://bugzilla.mozilla.org/show_bug.cgi?id=1346655

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [X] These changes do not require tests because it's for stylo

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 4757a9b71268f3cdedbd8b2d38f4bb4968a0e113

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 7c209205e9c17927fcbcaa691739a10001c67bef
2017-03-12 21:40:14 -07:00
Glenn Watson 64ecb8c4fe servo: Merge #15920 - Update WR (temporary clip/scroll api, image tiling) (from glennw:update-wr-clip-api); r=KiChjang
Source-Repo: https://github.com/servo/servo
Source-Revision: a2f9e23c6b626c3a4c0cde4a0a7b54c6a17893e1

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b15490da40400f5e16da53f4c123fb17c502778c
2017-03-12 17:02:54 -07:00
Emilio Cobos Álvarez 39686f1413 servo: Merge #15917 - Simplify some -moz-fixed handling code (from emilio:moz-fixes); r=Manishearth
This was introduced in #15916, but most of it is actually unreachable.

Source-Repo: https://github.com/servo/servo
Source-Revision: 430c7d924d51aad5d1093d38d4b3de10e09ec825

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 74af78ec2eae0b2fbd7dfc994576e17c7bb2decf
2017-03-11 15:01:13 -08:00
Nazım Can Altınova e4a2540513 servo: Merge #15916 - Stylo: Add support for "font-family: -moz-fixed" (from canaltinova:moz-fixed); r=Manishearth
Added support for "font-family: -moz-fixed" for stylo

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1341637](https://bugzilla.mozilla.org/show_bug.cgi?id=1341637)

<!-- Either: -->
- [X] These changes do not require tests because it's stylo change

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e6af6a8f48f2c7e3227f03bd84266f232f9ae7a9

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : dc8ab1256e8cebeda6a3f33ca4b7b5e5ad6a65c8
2017-03-11 14:03:40 -08:00
Manish Goregaokar 7aa55b12c5 servo: Merge #15915 - stylo: Make URLs work in inline style (from Manishearth:stylo-style-attr); r=emilio
r=emilio

https://bugzilla.mozilla.org/show_bug.cgi?id=1341690

Source-Repo: https://github.com/servo/servo
Source-Revision: c9310ab144506e152131faecfa79d109822e9a8d

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0bc2ff168321b96e5c203979bf407f867572cd8c
2017-03-11 12:08:49 -08:00
Kaku Kuo ffe7d25e12 Bug 1346120 part 6 - Test drawImage gets a non-single-color image from suspended video; r=jwwang
Once part 4 is applied, a suspend video element won't be rendered anymore, so that the video element keeps the last decoded-frame.
By this way, drawing a suspended video element to a canvas should get something that is not single-color.

MozReview-Commit-ID: J6dsZIvtO

--HG--
extra : rebase_source : 16207bb1925fc8317ba35d4adbe86c7fba6ee9b2
extra : source : 7e55644b5ba79c7a13211c23cedc5dc77a1e55ff
2017-03-09 17:37:32 +08:00
Kaku Kuo 39b0f26bdf Bug 1346120 part 5 - Revert the blank decoder to create green frames; r=jwwang
The blank decoder used to create green frames.
Bug 1274626 patch 2 modifies its behavior to return black frames.
The original implementation is better in memory usage, so we revert it.

MozReview-Commit-ID: Lue63Rsoy3G

--HG--
extra : rebase_source : 87ba4a2cea29f3fcb90c84e5b844d35b62799995
extra : source : e920b71a11ebf410f4a1c99708911be98f68586c
2017-03-09 17:26:42 +08:00
Kaku Kuo f163be7cf3 Bug 1346120 part 4 - Only set ImageContainer if there are valid new images in VideoSink::RenderVideoFrames(); r=jwwang
So that the suspended video element won't be rendered any more and keeps the last decoded frame.
This is the effect that UX specification defines.
And actually, we don't need to set ImageContainer if there are no valid new images.

MozReview-Commit-ID: B7RS3LXu8J0

--HG--
extra : rebase_source : de7d014ebad34f032a0ea8bfbe9aa723ffe922de
extra : source : d6a2b47b14f6ac00ea420f5eba7190c7af725381
2017-03-09 17:16:17 +08:00
Kaku Kuo 707ca65566 Bug 1346120 part 3 - Use NullDecoderModule while suspending a video element's decoder; r=jwwang
MozReview-Commit-ID: L1CsDV5TW5R

--HG--
extra : rebase_source : e8a47fc99d775c591f6830b042c21717a3e8bced
extra : source : 2d3146d70fb65da3379dd6a5f126c4caff65e139
2017-03-09 17:12:02 +08:00
Kaku Kuo bcdc559425 Bug 1346120 part 2 - Implement NullDecoderModule; r=jwwang
The video decoder of NullDecoderModule returns a VideoData with dimension of zero size and no image data.
By this way, we reduce memory usage while a video element is suspended.

MozReview-Commit-ID: IMODFOGdpaj

--HG--
extra : rebase_source : 6da95997eeb2098396b577b9dc0473d30d78b4d4
extra : source : 8a002d74db6c445dff17aa24d2e92f9c27019b07
2017-03-09 16:07:22 +08:00
Kaku Kuo 7e28a76709 Bug 1346120 part 1 - Extract BlankMediaDataDecoder so it can be shared; r=jwwang
Change name to 'Dummy' to signify it's base for decoders that don't decode.
And we will implement a new NullDecoderModule in the next patch which will utilize the DummyMediaDataDecoder.
MozReview-Commit-ID: LPsczoztgx3

--HG--
extra : rebase_source : b8c3c565709f998eb40a72b6c8831d7b4f3bd142
extra : source : dec60f61cc8809ebe6dd65cb16a325f2272b3ce2
2017-03-09 15:33:53 +08:00
Cykesiopka 895edf7133 Bug 1338895 - Avoid non-smart string IDL types in remaining PSM IDL files. r=aklotz,keeler
Smart string classes like nsCString are safer to use than raw |char*| strings,
and are typically easier to deal with as well.

MozReview-Commit-ID: 18C293zWrJw

--HG--
extra : rebase_source : 350191d4c3047fb38d18e8c6d9370cd059007861
2017-02-26 20:36:40 +08:00
Kaku Kuo 1b7bf855b4 Bug 1345403 part 5 - Test video suspend canceling; r=jwwang
MozReview-Commit-ID: 99IDqpwuRIf

--HG--
extra : rebase_source : 1e1f945043ff4617a7c2db82e1f8dcf9e2277f6b
extra : source : 5f834fb13ceea6b13136c1fbd60d266eee95f3ad
2017-03-08 21:18:13 +08:00
Kaku Kuo 1fa35f6899 Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
MozReview-Commit-ID: LuNmrtDl4BR

--HG--
extra : rebase_source : 01a82baa91c4c7d8e1ff6600f615017735313716
extra : source : bbd1f9644d39d9c935015b8dfad24e790c5a3c7a
2017-03-08 21:28:01 +08:00
Kaku Kuo 0759051af2 Bug 1345403 part 3 - Test element becomes tainted by DrawImage; r=jwwang,smaug
MozReview-Commit-ID: 9Txz4FbFtPe

--HG--
extra : rebase_source : 904462698bdcdd89dad05ab1631910ea3b9bf5d2
extra : source : f540afdef527d1beb10a29c235f2e3b5637fc814
2017-03-08 20:22:05 +08:00
Kaku Kuo fe566c1222 Bug 1345403 part 2 - Mark element tainted when DrawImage is used; r=jwwang,mattwoodrow
Mark video element as tainted (stored on the decoder owned by video element) when the video is used as source to drawImage() on canvas.

MozReview-Commit-ID: HdciVwhqPu3

--HG--
extra : rebase_source : b26c257afaaabdd6346a5421988d95e82281d7ef
extra : source : 149234329b62015dfd2e954030c23bf9c6b1d55e
2017-03-08 19:41:08 +08:00
Kaku Kuo af6e44d1d0 Bug 1345403 part 1 - Track decoder tainting; r=jwwang
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.

MozReview-Commit-ID: Ik6aDIzrZaO

--HG--
extra : rebase_source : 1dfdedea63d18918ef7b529a87f3afeb1592b149
extra : source : 1ac0f1b9264706f65e04528757bd60028331d31f
2017-03-08 19:28:13 +08:00
Daniel Holbert 9e6a8900f0 Bug 1291483 part 2: Use UniquePtr/MakeUnique more thoroughly in chain-of-custody for gfxFont::mVerticalMetrics. r=jfkthame
This member-var has type 'UniquePtr', but (up until this patch) its value
is set up using "new" and raw pointers. This patch improves that codepath by
using UniquePtr & MakeUnique, for stronger ownership guarantees.

MozReview-Commit-ID: KWZVpvr9bYj

--HG--
extra : rebase_source : 4e46d355078c7da6ae750f3ca06586dc8703e8a7
2017-03-09 16:38:58 -08:00
Daniel Holbert 328377e73b Bug 1291483 part 1: Use 'MakeUnique' instead of 'new' to allocate gfxFont::mGlyphChangeObservers. r=jfkthame
MozReview-Commit-ID: 7FO1HAukp5j

--HG--
extra : rebase_source : f87450b6b0627ac615ec5e4850308e4b0e159df7
2017-03-09 16:38:56 -08:00
Kris Maglione 1d0cefff4a Bug 1345345: Fix preference observers reporting changes to arbitrary sub-branches. r=rhelmer
MozReview-Commit-ID: CrGHoTiw4kz

--HG--
extra : rebase_source : b0259975f6f857eb3155e4fcc2b5cc889201384d
2017-03-07 20:10:42 -08:00
Makoto Kato 3bafff7740 Bug 1346098 - Don't expose intlUtils without ENABLE_INTL_API. r=smaug
Fennec team decides that Fennec will turn off ICU support on release build now.  So we need to able be build Firefox without ENABLE_INTL_API (Bug 1343725).
Bug 1341994 uses mozIMozIntl interface, but it is only defined with ENABLE_INTL_API.  So we shouldn't expose intlUtils if ICU is turned off.


MozReview-Commit-ID: EiQKiF4BRQv

--HG--
extra : rebase_source : 97f329da11094248a37edc543b5b541500a73d18
2017-03-10 17:36:09 +09:00
Matteo Ferretti 875c108206 Bug 1303158 - handle browser zoom and density display in CssGridHighlighter; r=gl
That also fixed bug 1303156, since handling better the device pixel ratio makes
also the lines crisp.

MozReview-Commit-ID: Iyl6YLFFp5b

--HG--
extra : rebase_source : eff92ab5dd2a389329e6a800f95f3b3a4be36db4
2017-03-11 22:51:57 +01:00
Nazım Can Altınova 6b2f388ad8 Bug 1341637 - Stylo: Add support for "font-family: -moz-fixed" r=manishearth
MozReview-Commit-ID: DerVFgPk0jw

--HG--
extra : rebase_source : 1be1ec175930f11ec8e69399fcb7cb233d3ad40f
2017-03-11 23:39:25 +03:00
Zibi Braniecki eb0f2e4c51 Bug 1344445 - Add LocaleService::GetRequestedLocales. r=jfkthame
MozReview-Commit-ID: 76xYTKk6OHh

--HG--
extra : rebase_source : 867dd72ad280ba0ec3ffe50bd254226436d76eea
2017-03-06 13:24:45 -08:00
Sebastian Hengst 67b7f2faa5 Backed out changeset 288bc41a2ffe (bug 1344445) for bustage due to unused variable rv at LocaleService.cpp:70:14. r=backout 2017-03-11 18:58:55 +01:00
Zibi Braniecki fb5ca0e430 Bug 1344445 - Add LocaleService::GetRequestedLocales. r=jfkthame
MozReview-Commit-ID: 76xYTKk6OHh

--HG--
extra : rebase_source : 497cb0474ef414bb2690444bfa590b8f817f7392
2017-03-06 13:24:45 -08:00
Gabriele Svelto 0717de5af1 Bug 1345654 - Enable client-side stack-walking on beta and release for main process crashes r=bsmedberg
MozReview-Commit-ID: APj6VBIW3l3

--HG--
extra : rebase_source : de148052386d89a2ee5197958c213042497342e0
2017-03-09 14:53:54 +01:00
Emilio Cobos Álvarez 03f908c447 Bug 1303229: followup: fixup stylo test expectations. r=me
MozReview-Commit-ID: 1j16AC5dpds
2017-03-11 15:56:25 +01:00
Emilio Cobos Álvarez 1b0e441103 No bug: Revendor rust dependencies on a CLOSED TREE. r=bustage
MozReview-Commit-ID: JXQzrEXzceT
2017-03-11 14:48:35 +01:00
Emilio Cobos Álvarez fb3b444270 Bug 1303229: Get the proper viewport size for animations. r=heycam,hiro
While we're here, don't re-recompute the default computed values, just grab them
from the device.

MozReview-Commit-ID: GqqnPLIwN2F
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-03-11 14:29:38 +01:00