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

558936 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote ca273abb90 servo: Merge #18550 - Measure ImageValue objects (take 2) (from nnethercote:bug-1399758-take-2); r=heycam
We have about 11,500 of these when loading gmail in a Stylo-enabled build, from
SpecifiedUrls; the objects themselves account for about 1.3 MiB of memory, and
the strings within them about 2.9 MiB.

We also have a very small number of them on the Gecko side.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because testing is on the Gecko side.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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: 8397c5b0a210a33a0991d369e88016dd51f521fd

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : ac2b08b4d0fd32d0bd95ade03b1f758d674415e4
2017-09-18 01:03:46 -05:00
abhinav a108387a08 Bug 1394323 - Remove overflow css rule for 'response-panel' as it prevents scrolling in Console 'Response' tab. r=nchevobbe
MozReview-Commit-ID: GHbYuCfs9L

--HG--
extra : rebase_source : 3daddc00d9e2cc724a3a68024514f64f8f49114e
2017-09-16 02:11:45 +05:30
Ting-Yu Lin 34dfa1cea5 Bug 1399767 - Remove preference "layout.css.clip-path-shapes.enabled". r=heycam
The variables (basicShapeSVGBoxValues, etc.) in property_database.js are
moved to the beginning of the file so that they're defined before usage.

MozReview-Commit-ID: 7L3obIY1alP

--HG--
extra : rebase_source : 6c3dff5ecbdad8ef6cf1a49953e4ad1001620b6c
2017-09-15 15:00:30 +08:00
Nicholas Nethercote 887dab3c3f Bug 1400624 - Fix a panic in Stylo memory reporting. r=heycam.
`MallocSizeOfOps::enclosing_size_of_op` is an `Option<>` type, and the panic in
question is caused by not providing a value in a case where it's needed for
measuring a HashSet.

HashMaps and HashSets are common enough that it makes sense to make
`enclosing_size_of_op` non-optional, which this patch does.

MozReview-Commit-ID: IB2aRuXHj8E

--HG--
extra : rebase_source : a6f593b718ca9e92a7a36ca7e2063a01e11c7e04
2017-09-18 13:54:30 +10:00
Nicholas Nethercote 880f0bb7ba servo: Merge #18549 - Fix a panic in Stylo memory reporting (from nnethercote:fix-enclosing-crash); r=heycam
`MallocSizeOfOps::enclosing_size_of_op` is an `Option<>` type, and the panic in
question is caused by not providing a value in a case where it's needed for
measuring a HashSet.

HashMaps and HashSets are common enough that it makes sense to make
`enclosing_size_of_op` non-optional, which this patch does.

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because tests are on the Gecko side.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- 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: bb998dbdf31920d5ddc2a91d6bdfe8a880e11604

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 18ff3083b36733a2a212f094f249b46872b4ec61
2017-09-17 23:19:54 -05:00
Jean-Yves Avenard 6367aea01f Bug 1400537 - P2. Pass video framerate to decoder. r=gerald
Continuation on bug 1397307 which was incomplete.

MozReview-Commit-ID: JGGHQyjnALI

--HG--
extra : rebase_source : 067652250dcd0904c8436eebc50068c7fb8d8cbb
2017-09-17 18:06:47 +02:00
Jean-Yves Avenard 3e790e2a55 Bug 1400537 - P1. Don't assume that the PDM will properly report an error. r=alwu
Only the Windows H264 decoder supports CreateDecoderParam::mError, all the other PDM leave the value untouched.

As such, it can't be assumed that in case of failure, the mError attribute will be set.

MozReview-Commit-ID: GWHGP6Wv3fl

--HG--
extra : rebase_source : 081b71c7a53c41d9a13904e4182e3cfdb876ae43
2017-09-17 18:01:37 +02:00
Bharat Raghunathan 1880a2c631 Bug 1396794 - Removed aPacket and aLength change r=kentuckyfriedtakahe
MozReview-Commit-ID: JG9vo3dbMB

--HG--
extra : rebase_source : d699868284c5929aee3b26544fc99f454dd114ed
2017-09-16 07:18:56 +05:30
Emilio Cobos Álvarez 5efaf40765 servo: Merge #18547 - style: Resolver cleanup and sharing by rule node fixes (from emilio:self-sharing); r=heycam
See the individual commits for details.

This is the only coherent story I have for crashes like:

  https://crash-stats.mozilla.com/report/index/bcdfe629-ca1f-4e4d-aa17-27f890170917

(And the fact that there are crashes like it on the main thread kinda indicates it's the case)

Source-Repo: https://github.com/servo/servo
Source-Revision: 2387dbedbb27629cd9e8c4657e8328ae04ff6d58

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2cebeca9acb1d40d2bc4eb3d2646f49ba24a3437
2017-09-17 21:58:06 -05:00
Alexis Beingessner aa97eca262 Bug 1400411 - stop mocking most of DrawTarget. r=jrmuizel
Also fixes a bad debug assertion

MozReview-Commit-ID: 5OV5KkvbRwZ

--HG--
extra : rebase_source : dbb41ecff52934f498b6d96b4cd174da246429f2
2017-09-16 10:42:11 -04:00
John Lin ac062e7031 Bug 1394239 - don't return video frames that MDSM won't show. r=jya
In some Android ROMs, MediaCodec doesn't allocate additional buffers to reduce
consumer starvation and will not work when MDSM grips most recently returned
frame before rearching seek target. Implement SetSeekThreshold() to get actual
seek target to check if video buffers can be released back to remote decoder
immediately.

MozReview-Commit-ID: 7IetuVxCXc0

--HG--
extra : rebase_source : 8e8643dbde757d41a26de45663a8232b4c66c386
2017-09-11 12:50:48 +08:00
James Cheng 7789212fcf Bug 1399754 - [Part2] Fix wrong format string. r=cpearce
MozReview-Commit-ID: 5oXE0UvGeFt

--HG--
extra : rebase_source : 92ecf466b49f4062a85f058b802c37887cabf23a
2017-09-14 17:18:00 +08:00
James Cheng 1d71cf11e9 Bug 1399754 - [Part1] Replace CDM_LOG with GMP_LOG. r=cpearce
MozReview-Commit-ID: IG3qsRGW42E

--HG--
extra : rebase_source : 0b0cd4a394a5c15ed8fa8b631c149c962297e55e
2017-09-14 16:00:58 +08:00
Nicholas Nethercote 0e7649f61d Bug 1400100 - Shrink css::ImageValue. r=njn.
This reduces sizeof(ImageValue) from 104 to 96. When heap-allocated, this moves
it from the 112 byte bin to the 96 byte bin. Loading gmail with Stylo, there
are about 11,500 ImageValues on the heap, so this saves about 184,000 bytes.

MozReview-Commit-ID: JLe2cJ54IlL

--HG--
extra : rebase_source : 6c74d1d606db0cb1d09392f5585cc1cbadc92ebd
2017-09-15 14:37:12 +10:00
Maya Messinger 1710134422 Bug 1387846 change print button command to print instead of print preview on all platforms r=Gijs
MozReview-Commit-ID: IIxhCx4N362

--HG--
extra : rebase_source : b920e3c9333df0b2ee9cda92880b5effb4922e45
2017-09-17 17:23:00 -04:00
Sebastian Hengst 88adc0346c merge mozilla-central to autoland. r=merge a=merge 2017-09-17 23:33:31 +02:00
Sebastian Hengst 41ef7dce0c merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ExAoHf5iXNn
2017-09-17 23:32:12 +02:00
Sebastian Hengst 054f8a9b40 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: BVrawNPrB4h
2017-09-17 23:30:04 +02:00
Emilio Cobos Álvarez 0ecfa025ee servo: Merge #18525 - style: various serialization fixes (from emilio:border-spacing); r=nox
This should close https://github.com/servo/servo/pull/18458, and fix https://bugzilla.mozilla.org/show_bug.cgi?id=1397619.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : c613453a0f82cde6e26f1366cbae26aa3cf4fc31
2017-09-17 15:12:46 -05:00
Tim Taubert cd9cddcc94 Bug 1400513 - u2f-hid-rs: fuzzers should use a deterministic cmd byte r=jcj
Summary: We're currently using the thread_rng to derive a cmd byte for the U2F protocol fuzzers. That of course should rather be derived deterministically from the input handed to the fuzzing target.

Bug #: 1400513

Differential Revision: https://phabricator.services.mozilla.com/D61
2017-09-17 20:07:32 +02:00
Tim Taubert efb7d369f2 Bug 1400662 - Prefer the USB token if the softtoken is enabled as well r=jcj
Bug #: 1400662

Differential Revision: https://phabricator.services.mozilla.com/D63
2017-09-17 20:14:54 +02:00
ffxbld 05c4c3bc0c No bug, Automated HPKP preload list update from host bld-linux64-spot-302 - a=hpkp-update 2017-09-17 10:41:04 -07:00
ffxbld 9398bc50e1 No bug, Automated HSTS preload list update from host bld-linux64-spot-302 - a=hsts-update 2017-09-17 10:41:01 -07:00
Jean-Yves Avenard 83780d15b6 Bug 1400254 - Don't apply fuzz workaround when appendWindowEnd is set. r=gerald
Someone changing the attribute appendWindowStart and appendWindowEnd can be expected to know what they are doing. As such, we don't need to make sure playback starts when content timestamps are broken.

MozReview-Commit-ID: EcPORuDHpF5

--HG--
extra : rebase_source : 2e29f07d8c4c52dfee360bac9e83b4d92b3eae38
2017-09-17 15:30:34 +02:00
Sebastian Hengst fe767114c9 Backed out changeset 7d0893f1b6ce (bug 1389021) for leaking in mda2 on Linux x64 asan (bug 1374856). r=backout a=backout
MozReview-Commit-ID: AeaKVgSJTmt
2017-09-17 14:26:25 +02:00
Sebastian Hengst 996cae01db Backed out changeset cc0acc00d769 (bug 1394233) for frequently failing own test usercss-uppercase.html on Windows 7 debug. r=backout a=backout
MozReview-Commit-ID: GwVKJKGPzDS
2017-09-17 14:23:53 +02:00
Jean-Yves Avenard afd0595779 Bug 1400598 - P1. Stop parsing bytesteam as soon as we have found the necessary data. r=gerald
MozReview-Commit-ID: 9APhbRHIMUP

--HG--
extra : rebase_source : 5f62596fab23c2b832d6cdb85764f3b4b37aa7ad
2017-09-16 23:35:17 +02:00
Paul Rouget 44c0c76bbc servo: Merge #18540 - Use BluetoothAdapter mock when bluetooth is disabled (from paulrouget:no_bt); r=nox
Today, only the DOM API is disabled.
When bluetooth is disabled, can we also disable bluetooth device code?

Source-Repo: https://github.com/servo/servo
Source-Revision: 06628d2f6090e069b3447ad1ff09a1158e0836ab

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3e6d03cd191932346385b0ee89c99277ef1d0bd7
2017-09-17 07:16:07 -05:00
Sebastian Hengst f2bcc668e9 merge mozilla-central to autoland. r=merge a=merge 2017-09-17 14:27:58 +02:00
Daniel Holbert b3a1c3da2b Bug 1400421 part 2: Delete unused nsLeafFrame::Reflow override (and its DoReflow helper). r=mats
nsLeafFrame only exists as an abstract superclass, and every subclass actually
brings along its own Reflow impl, so nsLeafFrame's own impl is just dead code.

This patch makes sure it's really dead code by leaving in the Reflow() decl
with " = 0;" so the compiler will enforce that all concrete subclasses *do*
have a more specific override (and that they don't just inherit the stub
nsFrame impl from further up the ancestor chain, for example).

MozReview-Commit-ID: Co36IpuaeOc

--HG--
extra : rebase_source : 036caa3abaed0a1cf75e8674af4ae2e8b55b3b8c
2017-09-15 15:55:21 -07:00
Daniel Holbert 5190426fdb Bug 1400421 part 1: Annotate class 'nsPageBreakFrame' as final, to reflect reality. r=mats
(This was the only concrete nsLeafBoxFrame subclass that was missing this
annotation.  So, after this patch, all concrete nsLeafBoxFrame subclasses will
have this annotation. Nice!)

MozReview-Commit-ID: Iu1LaLTTqzu

--HG--
extra : rebase_source : d11f0391c9fed77c805b7bfb71cc39ed729a3f8f
2017-09-15 15:53:31 -07:00
Emilio Cobos Álvarez 5958fdc2b7 servo: Merge #18537 - style: Spring cleanup (from emilio:spring-cleanup); r=nox
Source-Repo: https://github.com/servo/servo
Source-Revision: 14529da2a3c9a84cdec5735fca09d0bcb5995348

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 08675ea399bb6360cd2bd5ac84c2aff08f5facfc
2017-09-17 13:35:45 -05:00
Chris Peterson 793bc69260 Bug 1400705 - cairo: Fix -Wunknown-warning-option clang warning about gcc flag (and suppress some other warnings). r=lsalzman
* The -Wno-unused-but-set-variable flag is supported by gcc but not clang, so move it to a gcc-only CFLAGS.

* The -Wno-error=uninitialized flag is supported by both gcc and clang, so move it to CFLAGS shared by gcc and clang.

* Also suppress -Wunreachable-code and -Wshift-negative-value clang warnings. gcc supports -Wshift-negative-value, but only starting in gcc 6.1 and we are still using gcc 4.9 in automation.

warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
gfx/cairo/cairo/src/cairo-quartz-surface.c:1908:6: warning: code will never be executed [-Wunreachable-code]
gfx/cairo/libpixman/src/pixman-bits-image.c:268:32: warning: shifting a negative signed value is undefined [-Wshift-negative-value]

MozReview-Commit-ID: AnQAsfDaZbk

--HG--
extra : rebase_source : 6dd94a39479e05f67f93d4e4be2bd10ece4df7be
extra : source : 34ddaea5129be2ae1e9faa0a1d905b8690909611
2017-09-16 21:01:25 -07:00
Gijs Kruitbosch d9c533ac23 Bug 1400681 - remove footer inline start padding explicitly instead of not setting non-icon inline start padding, r=johannh
Using ':not' would unduly increase the specificity of the '.subviewbutton > .toolbarbutton-text' rule,
so I went with overriding it instead.

MozReview-Commit-ID: 85o0IcjCgbQ

--HG--
extra : rebase_source : 385bcd09c2cea5c24a99bb23c60da63b5a46749d
2017-09-17 17:23:05 +01:00
Gijs Kruitbosch 925ab3cd04 Bug 1400556 - apply padding to the tabs toolbar too to avoid other items moving when dragging tabs, r=johannh
MozReview-Commit-ID: FXAYmACbYt1

--HG--
extra : rebase_source : 00e1942e83cc1fe6f20d9eb31e9ee9840c9ddfe9
2017-09-16 18:47:32 +01:00
Emilio Cobos Álvarez 732e140d50 servo: Merge #18539 - script: a couple DOM conversion fixes (from emilio:dom-conversion-fixes); r=nox
Fixes https://github.com/servo/servo/issues/18535

Source-Repo: https://github.com/servo/servo
Source-Revision: 6f97dd1c96dbe4389d818995e2b4965b87383b61

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2d9f0bd9c9b57d1a5ad2c74a32bcca6f172b8595
2017-09-17 11:57:05 -05:00
Emilio Cobos Álvarez a922f137bb Bug 1400325: crashtest. r=me
MozReview-Commit-ID: EW2rx0cc6Xs
2017-09-17 19:57:00 +02:00
Emilio Cobos Álvarez 56031ea305 Bug 1399546: Crashtest. r=me
MozReview-Commit-ID: 5L8vYI6lRqd
2017-09-17 19:50:25 +02:00
Emilio Cobos Álvarez 39a846c6f3 Bug 1399546: Remove unused binding function. r=me
MozReview-Commit-ID: 9FN3j5zNHQe
2017-09-17 19:39:51 +02:00
Emilio Cobos Álvarez 7340cf4417 servo: Merge #18538 - stylo: Don't add a font-size dependency to the rule cache if the reference size is not our current style (from emilio:font-size-dep-correct); r=heycam
We enter the Custom(..) code path from other random places, like to remove the
relative lengths from a calc expression while zooming, or whatever craziness
MathML font-size uses, and we don't want to set the dependency on those cases.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4b4a744265d1bd79f731ff7b9160af9f6af7db2b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 749b8dbe6c0c46e719d1ab90f6d2c6fcb324233b
2017-09-17 10:45:40 -05:00
Simon Sapin c655b0e964 servo: Merge #18541 - Upgrade to rustc 1.22.0-nightly (277476c4f 2017-09-16) (from servo:rustup); r=SimonSapin
https://github.com/rust-lang/rust/pull/43017

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 1e2b6d8c2339a47ed373f4a00dcea43348c04a99
2017-09-17 08:32:23 -05:00
Johann Hofmann 3b3f324eb7 Bug 1399930 - Add drag space padding to the tabs toolbar on OSX. r=Gijs
The previous drag space was only set as min-height on the titlebar,
which led tabsintitlebar.js to not account that extra space for moving
the titlebar to the bottom (because it calculates that height from
tab strip height). So while it looked fine visually, the titlebar did
not stretch all the way to the bottom, so that e.g. double-clicks aren't
registered correctly.

MozReview-Commit-ID: 1mHFDBUe3sC

--HG--
extra : rebase_source : 667b131485658927fc2f3d484b2ab15cce782d95
2017-09-15 12:55:18 +02:00
Eden Chuang 62b089b5ed Bug 1398991 - Mochitest for spec change on PaymentRequest.shippingOption. r=baku
This patch changes the test_construction.html with following modification.
1. Modify the test testWithDuplicateShippingOptionsParameters to expect a
   TypeError when constructing wiht duplicate shippingOption ids.
2. Add test testShippingOtpionAttribute for shippingOption setting checking
   with following conditions
   1. No selected shippingOption and PaymentOptions.requestShipping is false
   2. One selected shippingOption and PaymentOptions.requestShipping is false
   3. One selected shippingOption and PaymentOptions.requestShipping is true
   4. Multiple selected shippingOptions and PaymentOptions.requestShipping is
      true.
2017-09-15 14:20:05 +08:00
Eden Chuang a15d19dc9d Bug 1398991 - Set PaymentRequest.ShippingOption only if options.requestShipping is true. r=baku
This patch implements the following changes according to the spec change.
See https://w3c.github.io/payment-request/#constructor step 8 for more
details.

1. Return TypeError during PaymentRequest construction with duplicate
   shippingOption id.
2. Set PaymentRequest.shippingOption with the selected shippingOption only
   if options.requestShipping is true.
2017-09-15 14:19:52 +08:00
Neerja Pancholi 62d822fcdd Bug 1381157 - Cache 'mContent->GetPrimaryFrame == this' with a flag on nsIFrame and replace these calls to GetPrimaryFrame. r=mats
MozReview-Commit-ID: 3VoxYlean52
2017-09-17 17:21:32 +02:00
Mats Palmgren 56af2e7716 Bug 1400623 - Add missing ClearOnShutdown.h #include. r=aosmond
MozReview-Commit-ID: 7AY4eGIOdv
2017-09-17 17:21:32 +02:00
Sebastian Hengst 2040810fdc merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-17 14:29:14 +02:00
Ryan VanderMeulen e5750cee50 Bug 1400602 - Update Freetype to version 2.8.1. r=jfkthame 2017-09-17 07:36:44 -04:00
Sebastian Hengst 44d8795069 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-17 11:41:03 +02:00
Andrea Marchesini 4753d050bd Bug 1396848 - Iterating a Header object returns sorted and combined values, r=qdot 2017-09-17 11:18:20 +02:00