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

12561 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 9e7898d195 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Phil Ringnalda 9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Wes Kocher 733c3896f8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 9mZaPGxxjXd
2017-09-21 17:04:03 -07:00
Kershaw Chang 53cf0a2a8e Bug 1247843 - Part 3: Set request context ID to the http channel created in imgLoader::LoadImage. r=baku
In order to let necko postpone the load of favicon, we have to set request context ID to the http channel that is created to load favicon.
This patch starts with passing a request context ID to nsContentUtils::LoadImage and makes other necessary changes to set the request context ID to the channel.
2017-09-20 20:09:00 -04:00
J. Ryan Stinnett 7c2bd5ab17 Bug 1401256 - Crashtest for animating lengths. r=heycam
MozReview-Commit-ID: HiVfx9cg4ZZ
2017-09-21 18:22:46 -05:00
Jeremy Chen d29aaa59a6 Bug 1394284 - add fallback discrete procedure for transform animation. r=boris,hiro
According to the spec, if one of the matrices for transform interpolation is
non-invertible, the used animation function must fall-back to a discrete
animation. However, in the current implementation, we always use an identity
matrix as a fallback for the non-invertible matrix.

Decompose2DMatrix and Decompose3DMatrix both return a boolean, but we just
never use it. So, in this patch, we use the returned boolean from the matrix
decomposition as a condition, and do the fallback discrete procedure for the
non-invertible matrices case.

MozReview-Commit-ID: E7i1a1MJOXN

--HG--
extra : rebase_source : 3dc9b777793dd783cd5e1c4ff750b6f8db0d2185
2017-09-13 17:39:07 +08:00
Geoff Brown 81c675f7bc Bug 1397615 - Skip some long-running mochitests on Android Debug only; r=snorp 2017-09-21 12:39:35 -06:00
ruby a409fb3f6f Bug 1386326 - Removed unwanted constants from nsStyleconsts.h r=manishearth
MozReview-Commit-ID: 5uRqHqc1PfP

--HG--
extra : rebase_source : c97e35aa6605687fb37468cc58b22e179035b154
2017-08-24 12:44:54 +05:30
Ting-Yu Lin 8d5ded43e5 Bug 1281101 Part 2 - Remove mask-image support checking in mochitests. r=cjku
MozReview-Commit-ID: I0GI8ae3J1x

--HG--
extra : rebase_source : e2d9651127346adb6c2f5b1c0ad76b06c238a4e4
2017-09-21 17:39:37 +08:00
Ting-Yu Lin 90a32588be Bug 1281101 Part 1 - Remove MOZ_ENABLE_MASK_AS_SHORTHAND from layout code. r=cjku
MozReview-Commit-ID: HWq2IOLsflD

--HG--
extra : rebase_source : eb5c3db6e2d88164bcd6a86448c4ad04cd251c93
2017-09-21 17:36:57 +08:00
Makoto Kato e0f16de8d6 Bug 1401845 - Add common android config to ServoBindings.toml. r=emilio
Android build uses cross compiler toolchain, so clang require --target option.
Also, since other options depend on NDK path, it should be set by
BINDGEN_CFLAGS environment value or bug 1397764.

MozReview-Commit-ID: 7jSSV7A5Z3q

--HG--
extra : rebase_source : f719b5130b61ffc2bd9e318103730ecbcccc185b
2017-09-21 13:47:16 +09:00
Xidorn Quan c5b7f94e1c Bug 1400438 - Use array instead of linked list for -moz-border-*-colors. r=heycam,mattwoodrow
MozReview-Commit-ID: LPl1Rlg5gRn

--HG--
extra : rebase_source : c9df383e14523bb534cac5018333178b7c17167a
2017-09-18 13:38:39 +10:00
Wes Kocher 1ea82f66aa Merge m-c to autoland, a=merge
MozReview-Commit-ID: AHxJvcR2Tpa
2017-09-20 17:47:16 -07:00
Wes Kocher a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
Bobby Holley 51ff1b0b2b Bug 1401317 - Disable lazy pseudo caching when the originating element's primary style was reused via the rule node. r=emilio
MozReview-Commit-ID: IkBa39E1bR1
2017-09-20 10:09:59 -07:00
Hiroyuki Ikezoe 7979b4f2e8 Bug 1400035 - Drop InvalidateFrame() call in SVGGeometryFrame::DidSetStyleContext(). r=jwatt
Now we no longer post InvalidateRenderingObservers change hint during post
traversal.

MozReview-Commit-ID: H3jJ1LKgJyV

--HG--
extra : rebase_source : 96d6bf77e6fc2b4b79882e5c7e5f43e087b56089
2017-09-17 08:21:05 +09:00
Nicholas Nethercote df9964ce9b Bug 1401427 - Fix leak in the UACacheReporter and re-enable it. r=heycam.
The problem was the missing |gUACacheReporter = nullptr;|.

--HG--
extra : rebase_source : 7bfbae138e745ca1292c1fb0308373e85df19f89
2017-09-20 21:17:27 +10:00
Sebastian Hengst cbf485433e Backed out changeset 61a277705d59 (bug 1400438) for heap write hazard. r=backout 2017-09-20 16:52:02 +02:00
Xidorn Quan 4599882448 Bug 1400438 - Use array instead of linked list for -moz-border-*-colors. r=heycam,mattwoodrow
MozReview-Commit-ID: LPl1Rlg5gRn

--HG--
extra : source : 418288301c994faded0993a1cd3d73fc3b6521be
extra : amend_source : 7cba1fc0ca13b86782aa05ab4dae4cdc7eb9fbf6
2017-09-20 22:52:20 +10:00
Sebastian Hengst 0dc17cba82 merge mozilla-central to autoland. r=merge a=merge 2017-09-20 11:49:13 +02:00
Sebastian Hengst bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Bobby Holley 8d10314a67 Bug 1400435 - Use a more precise check in the nsCSSValue destructor. r=xidorn
MozReview-Commit-ID: KFdgtxyOZ01
2017-09-19 22:53:23 -07:00
Cameron McCormack 402b6433ed Bug 1368922 - Set mIsDirty atomically. r=hiro
MozReview-Commit-ID: Ei3zCECVRFf

--HG--
extra : rebase_source : 0429db876e33329a250dced6e8bfcd965a5dfbc8
2017-09-20 11:30:08 +08:00
Nicholas Nethercote 164b3fed67 Bug 1401427 - Temporarily disable UACacheReporter due to a leak.
MozReview-Commit-ID: G8MBeSqYkqa
2017-09-20 12:23:47 +10:00
Nicholas Nethercote 5036b9133e Bug 1400078 - Measure the UA cache. r=njn.
ServoStyleSetSizes now has two uses, one for the Stylist, and one for the UA
cache, and so the patch removes 'Stylist' from the field names.

Example output from about:memory:

> +----1,359,608 B (00.55%) -- layout
> |    +----756,488 B (00.31%) -- style-sheet-cache [2]
> |    +----393,968 B (00.16%) -- servo-ua-cache
> |    |    +--234,496 B (00.10%) -- element-and-pseudos-maps
> |    |    +---59,648 B (00.02%) -- revalidation-selectors
> |    |    +---58,320 B (00.02%) -- invalidation-map
> |    |    +---30,752 B (00.01%) -- other
> |    |    +---10,752 B (00.00%) -- precomputed-pseudos

MozReview-Commit-ID: 8oxuJO0ojp

--HG--
extra : rebase_source : 7d86216967259b71df7280261d025cc65bf00ba4
2017-09-19 09:25:00 +10:00
Wes Kocher 3baa8a7e6e Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Jonathan Watt 341ea5e4f1 Bug 1401356, part 2 - Rename nsSVGEffects to SVGObserverUtils. r=longsonr 2017-08-30 15:58:31 +01:00
Jonathan Watt 0e4feb75d3 Bug 1401356, part 1 - Rename nsSVGEffects.h/.cpp to SVGObserverUtils.h/.cpp. r=longsonr
--HG--
rename : layout/svg/nsSVGEffects.cpp => layout/svg/SVGObserverUtils.cpp
rename : layout/svg/nsSVGEffects.h => layout/svg/SVGObserverUtils.h
2017-08-30 14:14:46 +01:00
Ting-Yu Lin 59d3f6d123 Bug 1289049 Part 4 - Make <basic-shape> animatable for shape-outside for gecko style system. r=boris
MozReview-Commit-ID: 7x0jdqWqkpL

--HG--
extra : rebase_source : e79a0ca24fb929f80d305adf164329ae0f44690f
2017-09-19 17:21:21 +08:00
Ting-Yu Lin 54928d3816 Bug 1289049 Part 3 - Add CSS_PROPERTY_STORES_CALC flag to "shape-outside" property. r=boris
This makes "shape-outside" be able to transition between percent and pixel
shape-coordinates. This patch is similar to what bug 1266570 fixed for
"clip-path".

This will fix failures in layout/style/test/test_transitions_per_property.html
after introducing Part 4.

MozReview-Commit-ID: CAgXG39nUIl

--HG--
extra : rebase_source : 5e502a1152f780170991f0bb8c4862e6fbe244b5
2017-09-20 10:58:14 +08:00
Ting-Yu Lin 31e158966d Bug 1289049 Part 2 - Extract a helper function ExtractComputedValueFromShapeSource(). r=boris
MozReview-Commit-ID: IhHaKhQTWbo

--HG--
extra : rebase_source : 13b716916a16b6030c566921fc15b285a158e53c
2017-09-19 17:20:14 +08:00
Ting-Yu Lin 28602b96b1 Bug 1289049 Part 1 - Use shape source instead of clip path in naming. r=boris
This function can be used to implement animation for <basic-shape> for
shape-outside, so I remove the clip path in naming to make it more general.

MozReview-Commit-ID: LwVe0Dk5Web

--HG--
extra : rebase_source : eb0136c79b494222cca38ebd68d62f3f825bd29e
2017-09-19 16:59:38 +08:00
Steve Fink c044d7cad2 Bug 1400442 - Assert that Gecko_ShouldCreateStyleThreadPool is only called on the main thread, r=emilio
--HG--
extra : rebase_source : 4b6354e0db13489693d7df6d3ea56c4f38c9a193
2017-09-15 17:16:34 -07:00
vincentliu 149b31c142 Bug 1399006 - Invoke PurgeCachedImages to release object in main thread while ServoTraversal. r=bholley 2017-09-19 15:13:27 +08:00
Brad Werth 01895ff1c3 Bug 1399941 Part 2: Add more aspect-ratios to a test of media queries, testing for overflow. r=emilio
MozReview-Commit-ID: 6NLYkLUNP8d

--HG--
extra : rebase_source : 3aabc27266c676837aba2275f4837dd07fd5f412
2017-09-15 10:29:45 -07:00
Sebastian Hengst 107a8b1f39 Backed out changeset df9036657f25 (bug 1400438) for crashing chrome test mobile/android/components/extensions/test/mochitest/test_ext_options_ui.html on Android. r=backout on a CLOSED TREE 2017-09-19 16:33:05 +02:00
Boris Chiou 54118103d5 Bug 1390026 - Update test_transitions_per_property.html for shape-outside. r=birtles
MozReview-Commit-ID: KJKTJkM84UN

--HG--
extra : rebase_source : 9b0cd95572d7f52c0527a4a1c8367ad59adcd443
2017-09-19 16:35:32 +08:00
Xidorn Quan 60d4fdfcc7 Bug 1400438 - Use array instead of linked list for -moz-border-*-colors. r=heycam,mattwoodrow
MozReview-Commit-ID: LPl1Rlg5gRn

--HG--
extra : rebase_source : 3742eefec0a9957847aac23a6070729eaafa8034
2017-09-18 13:38:39 +10:00
Hiroyuki Ikezoe 38a02f3586 Bug 1400926 - Filter out !important property in keyframes for stylo. r=emilio
MozReview-Commit-ID: 76AUpKLVL2n

--HG--
extra : rebase_source : 5cc731b4bf69455bc8b35bba67c86f1c4badb1b8
2017-09-20 17:48:18 +09:00
Blake Kaplan 04b86e2150 Bug 1398393 - Set Servo thread state on cooperative threads. r=billm
By doing this we avoid triggering assertions in the Servo code that ensure
we have registered the thread with Servo and set the proper state on it.

MozReview-Commit-ID: K6qHrYoQDLm

--HG--
extra : rebase_source : d01b0aad42273f6b92b7cfd5f5fe17ffe7b4cda0
2017-09-08 16:50:34 -07:00
Tom Tromey 916228aee7 Bug 1399911 - preserve sourceURL comment directive on style sheets; r=bz,heycam
In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/

This patch changes Firefox to record this URL, if specified, and to
expose it (chrome-only) vai StyleSheet.webidl.

MozReview-Commit-ID: 7NwXsOf7nbY

--HG--
extra : rebase_source : bd5d25b4d44f5f220a4624db346edbc4236c9886
2017-09-14 14:59:32 -06:00
Nicholas Nethercote 6217edda82 Bug 1399758 - Measure ImageValue objects. 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.
2017-09-14 18:48:19 +10:00
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 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
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 4c6d499f97 Bug 1399546: Add an API to know if an element is it's document body element. r=heycam
MozReview-Commit-ID: 8mtd4CsoSlU
2017-09-16 02:39:09 +02:00
Emilio Cobos Álvarez 1ce36be939 Bug 1399546: Remove broken code for handling the body text color. r=bholley,Manishearth
MozReview-Commit-ID: AfAT9DgzvI7
2017-09-16 02:38:58 +02:00