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

12677 Коммитов

Автор SHA1 Сообщение Дата
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
Josh Matthews a323bdfe53 Bug 1397971 - Share strings in URLDataValue with Rust. r=heycam
--HG--
extra : amend_source : 7946c76a40240baac44db6c1c6c7b0117ced4219
2017-09-15 13:11:37 -07:00
Dão Gottwald 1b2ab142df Bug 1400092 - Move RTL direction and aligment styling for the location bar input field to a chrome stylesheet since it doesn't need to access .anonymous-div anymore. r=Gijs
MozReview-Commit-ID: 5qutEsTojVt

--HG--
extra : rebase_source : 7d2b20ed1e34d90e0bc3a5de3b7c147e581700b9
2017-09-15 14:41:19 +02:00
Sebastian Hengst 627dd1e633 Backed out changeset 1536fa69bad4 (bug 1399758) for Hazard failures. r=backout 2017-09-15 10:00:52 +02:00
Nicholas Nethercote beeb6cb150 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.

MozReview-Commit-ID: AduCIaDIzGG

--HG--
extra : rebase_source : ee2a20921a17b9091b60a5d9e389a6c6f2fa192b
2017-09-14 18:48:19 +10:00
Fernando Jimenez Moreno 6d89c9d1f6 Bug 1384221 - stylo: error reporting lies about property names in some cases. r=jdm 2017-09-11 02:11:00 -04:00
Markus Stange 0704012f36 Bug 1387594 - Add system colors for use in conjunction with -moz-font-smoothing-background-color and vibrant -moz-appearances. r=dbaron
MozReview-Commit-ID: IxXZwONxy41
2017-09-14 23:09:48 +02:00
Markus Stange 2e951f24c1 Bug 1387594 - Add a chrome-only CSS property called -moz-font-smoothing-background-color. r=dbaron
This property accepts a color. It's inherited and defaults to transparent.
Its value is respected on macOS when rendering text into transparent pixels.
This property should be used for text that is placed on top of "vibrant"
-moz-appearances, in order to achieve high quality text rendering for such text.

In most cases, the property should be set to a named system color; an upcoming
patch in this patch series will add one such color for each vibrant
-moz-appearance value.
However, in some cases it can also be useful to use a custom color: If text
is rendered into an intermediate surface, for example because a mask is applied
to it, and the background color behind that intermediate surface is known, then
this property can be set to that background color in order to achieve subpixel
AA for the text inside the mask effect. In that case, the font smoothing
background color is respected because text is rendered into transparent pixels
*inside the intermediate surface*. At the moment, the only example of that use
case is the text of the active tab in the state where the text is overflowing.

MozReview-Commit-ID: D98qQnxoFaq
2017-09-14 23:09:46 +02:00
Boris Chiou 07f634028f Bug 1392161 - Part 1: Update Servo binding functions for CSSPixelLength. r=emilio
MozReview-Commit-ID: 2x4Y9py4Pfv

--HG--
extra : rebase_source : 347e46b6a92794e8d12273ed963e54dbb2da1c8e
2017-09-13 14:27:25 +08:00
Wes Kocher 9403265ce1 Bug 1398869 - Now re-fix the non-stylo tests a=bustage CLOSED TREE
MozReview-Commit-ID: DzoYfA1gWfq
2017-09-12 17:42:11 -07:00
Josh Matthews 7a7c1dcbae Bug 1398869 - Fix up test_bug413958.html, too a=bustage CLOSED TREE 2017-09-12 16:37:42 -07:00
Xidorn Quan a0f7c55075 Bug 1398619 - Correctly inherit backend for document created by DOMParser, and add test for it. r=bholley
The old code doesn't work because mScriptHandlingObject is a nsWeakPtr,
which cannot be casted to nsPIDOMWindowInner directly.

Since scriptHandlingObject is a strong reference to the same object, we
can just try casting that.

MozReview-Commit-ID: JRBs5N6xxc0

--HG--
extra : rebase_source : cd0237553198182b00ff9c667a17271b23464567
2017-09-12 14:28:27 +10:00
Manish Goregaokar a5896f074b Bug 1380980 - stylo: Add (unused) absolute offset to FontComputationData; r=emilio
MozReview-Commit-ID: EqtIs2NDm5g
2017-09-11 20:33:03 -07:00
Xidorn Quan 140b3712ca Bug 1398479 - Always return correct value for ServoSpecifiedValues::PropertyIsSet. r=manishearth
MozReview-Commit-ID: 8VMpLqcOhNz

--HG--
extra : rebase_source : e149fb6880dd33bb251c2c93c5252e7443a622ed
2017-09-11 12:33:03 +10:00
Wes Kocher e376f14721 Merge inbound to central, a=merge
MozReview-Commit-ID: GDeX9aPb7Fn
2017-09-11 14:41:45 -07:00
Fernando Jimenez Moreno ce034323f7 Bug 1382369 - stylo: store specified value of grid layout repeat() function. Tests. r=mats 2017-09-11 11:30:04 +02:00
Sebastian Hengst 0350c346f6 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-09 23:33:01 +02:00
Sebastian Hengst 4219e42fb1 merge mozilla-central to autoland. r=merge a=merge 2017-09-09 11:46:02 +02:00
Sebastian Hengst 261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Fernando Jimenez Moreno e54642673b Bug 1384225 - stylo: Error reporting for unknown media features. Tests. r=jdm 2017-09-09 11:32:01 +02:00
Hiroyuki Ikezoe ad4feb676c Bug 1397122 - Handle values as valid in single transition shorthand even if the transition-property is 'none'. r=xidorn
A single transition value that includes 'none' for transition-property is
valid, so we should store whole specified values (if it's valid).  Whereas,
the spec [1] clearly says for the case where there are multiple entries;
  If there is more than one <single-transition> in the shorthand, and any of
  the transitions has none as the <single-transition-property>, then the
  declaration is invalid.

'none 2s linear 2s' is a test case for the former, '1s width, 2s none' is a
test case for the latter.

Note that with this patch, 'transition: none' is serialized as 'none 0s ease 0s'
instead of 'none' but it matches Gecko.

[1] https://drafts.csswg.org/css-transitions/#single-transition

MozReview-Commit-ID: 3o3z5GFyMqh

--HG--
extra : rebase_source : c553af804124c0c76554fb8ad007e78e2813d321
2017-09-09 11:34:06 +09:00
Geoff Brown 2630c7994e Bug 1391030 - Skip layout/style/crashtests/1371450-1.html on Android, for frequent intermittent failures; r=me,test-only 2017-09-08 15:00:27 -06:00
Wes Kocher 2a30786cad Merge inbound to central, a=merge
MozReview-Commit-ID: 4FEkd1x2GD
2017-09-08 13:36:31 -07:00
Emilio Cobos Álvarez 56f67863ba Bug 1397091: Crashtest. r=me
MozReview-Commit-ID: 9B3glRGriwa
2017-09-08 15:03:49 +02:00
Emilio Cobos Álvarez b82bf02bb5 Bug 1395719: Crashtest. r=bz
MozReview-Commit-ID: C6mrfNC84s5
2017-09-08 08:56:37 +02:00
J. Ryan Stinnett 832e5d3c2e Bug 1397937 - Prune unused FFI types with Linux 32-bit issues. r=emilio
MozReview-Commit-ID: 26UmO9RcGQm

--HG--
extra : rebase_source : a70cca90cecbba5ec8712bdfb7ee46c0ab54f418
2017-09-07 18:00:43 -05:00
Wes Kocher b5fe3d1dc7 Merge m-c to autoland, a=merge
MozReview-Commit-ID: zTrDLmRmnn
2017-09-08 13:42:01 -07:00
Neerja Pancholi 519d87d216 Bug 1389029 - Undo code changes in Bug 1388234 which is unnecessary now that we post restyle events for rowspan/colspan changes. r=emilio
MozReview-Commit-ID: 5eTW5dCcxzP

This patch reverts the code changes, but not the test changes from changeset bf9cf6f393eb. There is a crashtest here which is valuable to keep.

--HG--
extra : rebase_source : e6f5d7234eca396a0302c1d562fc54663b274c6c
2017-09-06 12:56:53 -07:00
Sebastian Hengst f4f17cacda merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-09 11:47:13 +02:00
Boris Zbarsky 66654a800e Bug 1397813. Make sure to memory-report the ServoStyleContexts for anon boxes and lazy pseudos that we cache on the parent ServoStyleContext. r=njn 2017-09-09 04:11:40 -04:00
Brian Birtles 4b361e3a21 Bug 1352336 - Restore intermittently failing OMTA tests: test_animations_playbackrate.html, test_animations_iterationstart.html, test_animations_effect_timing_enddelay.html; r=hiro
This restores the tests disabled in bug 1351038 in the following two changesets:

  https://hg.mozilla.org/mozilla-central/rev/355a5b1ce195
  https://hg.mozilla.org/mozilla-central/rev/42d522a5f9b5

MozReview-Commit-ID: 3chbW5Mkg5S

--HG--
extra : rebase_source : ec11fe796af17299cefbc350576e27b27b05f4cd
2017-09-08 16:40:05 +09:00
Emilio Cobos Álvarez 9a42394a1f Bug 1398581: Crashtest. r=me
MozReview-Commit-ID: 5xy5aeDWU12
2017-09-11 17:19:30 +02:00
Wei-Cheng Pan 4c6b1c3dec Bug 1397168 - Add a function to find out if a node has any ancestor that is pending for restyling. r=emilio
MozReview-Commit-ID: DXcodMcQP59

--HG--
extra : rebase_source : e31ed0d2471150bfdf30ac656f39795d11a4fed5
2017-09-06 15:42:05 +08:00
Emilio Cobos Álvarez 04dcd6be9c Bug 1387410: Stop the grid shorthand from resetting grid-gap properties. r=heycam
MozReview-Commit-ID: GxU9YuAUc00
2017-09-08 10:10:11 +02:00
Brad Werth 77571cf92b Bug 1395322 Part 2: Change timeouts to failures in layout/style/test/chrome/test_stylesheet_clone_import_rule.html. r=xidorn
MozReview-Commit-ID: 8ea7J5ExmzH

--HG--
extra : rebase_source : 19fd5642ad046c69a3b7681c790a642523a29df2
2017-08-30 13:10:42 -07:00
Brad Werth 486088166d Bug 1395322 Part 1: Enforce consistent use of nsIDOMCSSRule enums for Servo rule types. r=xidorn
MozReview-Commit-ID: DmfaYCe9QAY

--HG--
extra : rebase_source : 6a89bd910de053c4535bdfbdf7df551bf9c83472
2017-09-06 16:58:42 -07:00
Eric Rahm 030b39d813 Bug 1393230 - Part 3: Convert the xpcom string classes to be templated on char type. r=njn, r=fitzgen, r=sfink
This removes the double-include macro hackery that we use to define two
separate string types (nsAString and nsACString) in favor of a templated
solution.

Annotations for Valgrind and the JS hazard analysis are updated as well as
the rust binding generations for string code.

--HG--
extra : rebase_source : 63ab2c4620cfcd4b764d42d654c82f30f984d016
extra : source : 9115364cd4aa078c49bba7911069f8178e55166f
2017-08-14 14:22:50 -07:00
Manish Goregaokar a4514cedd4 Bug 1397439 - stylo: Add crashtest; r=emilio
MozReview-Commit-ID: IRcbLjJE2XR
2017-09-06 23:21:31 -07:00
Manish Goregaokar af57907319 Bug 1397363 - stylo: Add crashtest; r=emilio
MozReview-Commit-ID: LXYFKGH4ia5
2017-09-06 23:20:58 -07:00
Bobby Holley 977fd4a02a Bug 1397500 - Disable the ActiveElementUsesStyle optimization for stylo. r=emilio
MozReview-Commit-ID: 20aqaFv9fxE
2017-09-06 15:30:53 -07:00
Josh Mattheus 1642794aa1 Bug 1386900 - Add test for parsing invalid filter values. r=xidorn
MozReview-Commit-ID: FxbyxXRGmBB
2017-09-06 21:26:27 +02:00
Chris Peterson 9705687227 Bug 1324677 - Remove unnecessary asserts-if(stylo) annotation from layout crashtests. r=heycam
These tests no longer assert so we can remove the stylo annotations.

MozReview-Commit-ID: 7sWWTkoFp1G

--HG--
extra : rebase_source : e42f418ef1756a08bc0f11b02b42b2a1737deb76
2017-09-05 19:13:18 -07:00
Emilio Cobos Álvarez 8fee8e03c1 Bug 1395227: Stop the cascade when only reset structs change. r=heycam
MozReview-Commit-ID: JCZJl2fmtJ9
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-06 16:58:46 +02:00
Emilio Cobos Álvarez 0f543d7829 Bug 1393861: Correctly apply the display fixup for ::before and ::after pseudo-elements. r=heycam
MozReview-Commit-ID: G0bcZmn0mP

--HG--
extra : rebase_source : f93b691ec0648a3f577c0a28fcb1f7132e5454c5
2017-09-05 15:07:01 +02:00
Sebastian Hengst e44215e7e0 Backed out changeset 1caa4e7a8319 (bug 1393861) for busting web-platform-tests. r=backout on a CLOSED TREE 2017-09-06 13:44:09 +02:00
Emilio Cobos Álvarez e57a9d7570 Bug 1393861: Correctly apply the display fixup for ::before and ::after pseudo-elements. r=heycam
MozReview-Commit-ID: G0bcZmn0mP

--HG--
extra : rebase_source : 9e9bebc93c005485ef67f719b09df15d40846297
2017-09-05 15:07:01 +02:00
Nazım Can Altınova 39c02b31f3 Bug 1394551 - stylo: Dont unnecessarily construct gfxFontFeatureValueSet r=xidorn
If there is no font feature values inside document we should avoid creating
unnecessary objects.

MozReview-Commit-ID: HJKMzQvQAPR

--HG--
extra : rebase_source : 06dc792d2c4848c4c8ca49b9eb98630d5d475006
2017-08-30 17:08:50 -07:00
Manish Goregaokar 6af7a2b9d1 Bug 1394302 - stylo: Add mochitest; r=birtles
MozReview-Commit-ID: DJ3zFqqMNXk
2017-09-05 14:50:59 -07:00
Nicholas Nethercote fb0b046a21 Bug 1387958 - Measure the stylist during memory reporting. r=heycam.
Example output from the Obama Wikipedia page:

> ├──2,315,600 B (01.16%) -- stylist
> │  ├──1,916,928 B (00.96%) ── invalidation-map
> │  ├────228,800 B (00.11%) ── rule-tree
> │  ├────142,336 B (00.07%) ── element-and-pseudos-maps
> │  ├─────14,336 B (00.01%) ── revalidation-selectors
> │  ├──────9,648 B (00.00%) ── other
> │  └──────3,552 B (00.00%) ── precomputed-pseudos

This change requires new code to measure HashMaps, which uses the new
'malloc_enclosing_size_of' functions that can measure a heap block from an
interior pointer.

The patch changes MallocSizeOfFn to a newtype, and introduces
MallocEnclosingSizeOfFn alongside.

It also adds new traits: MallocSizeOfBox, MallocSizeOfVec, MallocSizeOfHash.
These each contain a single method that does shallow measurement of the
relevant type, which is often useful. (This is a different style to the
existing MallocSizeOf trait, which does deep measurement, but I'm moving away
from the always-deep-measurement style because it's less flexible.)

MozReview-Commit-ID: FgJCCmdw0ZF

--HG--
extra : rebase_source : c692c2073aa66020224489b97247c49de95a99a4
2017-09-05 11:38:45 +10:00
Jeremy Chen 03a9b4e928 Bug 1394994 - stylo: get line and column for ServoKeyframeRule. r=xidorn
The Servo_KeyframesRule_GetKeyframe binding function has been empowerd and
renamed to Servo_KeyframesRule_GetKeyframeAt in the servo side patch. In this
patch, we use Servo_KeyframesRule_GetKeyframeAt to get line and column
information for ServoKeyframeRule, so that the inspector can present Keyframe
rules on the devtool panel properly.

MozReview-Commit-ID: BGd9FFsC3Nz

--HG--
extra : rebase_source : f2b5ff73a84a3cd4e5d0b17d5e0c5ac5fd57f817
2017-09-04 13:38:23 +08:00
Andrew McCreight e8ec349629 Bug 1390660, part 1 - Clean up some uses of the table-to-map segue. r=peterv
In a number of places, there's no substantial use of maps any more
after the segue.

The ELEMENT segue tries the FragmentOrElement QI, but that is
redundant with the Element QI.

This lets me use a few higher-level macros.

MozReview-Commit-ID: Gstq3Cm8LDl

--HG--
extra : rebase_source : f0c7dbf5281ce7375b1369b49db095a211569d6c
2017-08-16 13:37:20 -07:00
Simon Sapin 0ef497bfee Bug 1396664 - re-enable bad-string subtests in test_parser_diagnostics_unprintables.html r=emilio
… and update cssparser to 0.20.1

MozReview-Commit-ID: 8SiFIGk1jtb

--HG--
extra : rebase_source : 9d817fba90c38a7148166392e3412cfaf1538785
2017-09-05 15:40:57 +02:00
Louis Chang 0d46442004 Bug 1352238 Part 2 - Remove default styling of checkbox/radio in UA sheets. r=mats
MozReview-Commit-ID: 6sd18LI3yw2

--HG--
extra : rebase_source : f0efd383fd4e51be1a4c99691a4455b6f6686798
2017-09-05 22:44:29 +08:00
Tom Tromey c355a3b8b9 Bug 1388855 - Extract source map URL when parsing CSS, r=bz,heycam
This changes the CSS lexer to extract sourceMappingURL directives from
comments and preserve them; then changes the parser to expose this value
as the style sheet's sourceMapURL.

MozReview-Commit-ID: LfMamJ1PsU0

--HG--
extra : rebase_source : 258827720282d415f97f1d49d870b7c2448d39f4
2017-08-09 13:33:24 -06:00
Hiroyuki Ikezoe 84aff91995 Bug 1336772 - Request any restyles required by changes to the cascade result. r=birtles
When an animation is newly created while the same property transition is
running, the transition style rule persists until we call RequestRestyle() for
transitions level. That means if user calls getComputedStyle for the property
right after creating animation, the style obtained by getComputedStyle still
included the transitions level rule. As a result, the transitions level style
overrides newly created animation style until the next normal restyling process
happens (i.e. process transition level restyle request). Vice versa, in the
case where an animation is removed, transitions level style does not appear
until the next normal restyling.

This patch fixes this problem by trigerring a resyle of the transitions level
when an animation is created or removed.

MozReview-Commit-ID: HY6amLmDHTi

--HG--
extra : rebase_source : 67e58dc9a6c695299c3eef684bf7357153c5168b
2017-09-05 16:34:24 +09:00
Ting-Yu Lin 748cb71860 Bug 1396700 - Add a method to ServoStyleSet for creating XBL style set. r=xidorn
The motivation of this patch is that clearing mPresContext should be an
implementation detail of XBL style set, so I create a method for that, and
remove ClearPresContext().

MozReview-Commit-ID: Ftta0rcAqu6

--HG--
extra : rebase_source : 0bdb1ac3e2c988e5a0220172f19ab4b006e883d7
2017-09-01 16:45:39 +08:00
Ting-Yu Lin 0facc17a51 Bug 1396700 - Remove ServoStyleSet::UpdateStyleSheet(). r=xidorn
This is no longer used.

MozReview-Commit-ID: G7cUcz9CKeQ

--HG--
extra : rebase_source : 3f13913863c8d8c4db14d02763781f3037d64d22
2017-09-01 17:12:58 +08:00
Ting-Yu Lin 3b33ba27fb Bug 1382078 Part 4 - Avoid unneeded restyle when XBL styleset is utilized by different PresContext. r=emilio
This fixed layout/style/test/test_media_queries_dynamic.html after Part 3 is added.

MozReview-Commit-ID: 7ZpSunCnkIc

--HG--
extra : rebase_source : 6acab11ba784b801b90afc0558c32baabcc3f271
2017-09-04 17:57:00 +08:00
Ting-Yu Lin b6d71d0740 Bug 1382078 Part 3 - Support media changes for XBL stylesheets. r=emilio
MozReview-Commit-ID: EJp8EMyanBT

--HG--
extra : rebase_source : 0ea61ea1f649548158fa600e5e11190631ce447f
2017-09-02 15:25:45 +08:00
Ting-Yu Lin a61a1227e9 Bug 1382078 Part 2 - Make nsBindingManager::MediumFeaturesChanged() return bool directly. r=emilio
The method always returns NS_OK, and no other caller checks the nsresult.
Hence the patch.

MozReview-Commit-ID: CnYCZ8VchG

--HG--
extra : rebase_source : 8626332e2774c1d6f42c7afa5e9679091a3aeaa2
2017-08-30 15:22:31 +08:00
Simon Sapin 23f9f1b466 Bug 1396665 - Temporarily disable bad-string subtests in test_parser_diagnostics_unprintables.html r=emilio
MozReview-Commit-ID: IUGy4uP6iRS

--HG--
extra : rebase_source : 2ba9dd060245141659bc1b0a357e9b62043be9e2
2017-09-04 23:14:26 +02:00
Simon Sapin eccbb7589b Bug 1396665 - Stylo serializes strings with double quotes r=emilio
MozReview-Commit-ID: 7uMAkhtjKCi

--HG--
extra : rebase_source : 8e0e30e95d16f7844238f7fbcf5c98788f7b4e82
2017-09-04 23:17:54 +02:00
Simon Sapin 13c0876f58 Bug 1396586 - Stop escaping U+0080 to U+009F in CSS serialization. r=emilio
… in the C++ style system, to align with Stylo and the CSSOM spec.

MozReview-Commit-ID: HaDUeNjumnY

--HG--
extra : rebase_source : 3a4d2856bb6b3702d0bc7ec9b7a8e472758ab9f0
2017-09-04 15:00:18 +02:00
Xidorn Quan 372bd402fb Bug 1387905 part 2 - Use 10bit for specificity in Gecko as well. r=heycam
MozReview-Commit-ID: G5qq0FY0HQ8

--HG--
extra : rebase_source : 2572ad7845c4275d0f0a580204697e6ee87a4a5f
2017-09-04 12:07:24 +10:00
Xidorn Quan 441c9db551 Bug 1387905 part 1 - Count pseudo-element into specificity. r=heycam
MozReview-Commit-ID: IWlINaYAhql

--HG--
extra : rebase_source : f0d12277ecda1c7e498ba208cec0e0cde6fc5a25
2017-09-04 12:05:56 +10:00
Hiroyuki Ikezoe 76c1b26215 Bug 1396041 - Disassociate element from document before destroying animations in UnbindFromTree(). r=birtles
This allows us to avoid posting animation-related restyles when removing
elements from the document tree.

MozReview-Commit-ID: CzN4S0DTUMa

--HG--
extra : rebase_source : a5b94d9ad5b1b2243abd0a5b188eec2b334df74d
2017-09-04 12:24:07 +09:00
Brian Birtles 5f9e8575bc Bug 1394985 - Synchronize throbber animations; r=jaws
MozReview-Commit-ID: Gxgl8IJX6vZ

--HG--
extra : rebase_source : be163614147499c7f3c5632adf979e46e9adfd50
2017-09-01 09:32:35 +09:00
Sebastian Hengst 55fe61b6d6 Backed out changeset 06fd7e672abd (bug 1382078) 2017-09-02 20:43:42 +02:00
Sebastian Hengst 3764de542b Backed out changeset b49d8d47c3f1 (bug 1382078) 2017-09-02 20:43:36 +02:00
Ting-Yu Lin d537ea001c Bug 1382078 Part 3 - Support media changes for XBL stylesheets. r=emilio
MozReview-Commit-ID: EJp8EMyanBT

--HG--
extra : rebase_source : 524aaa95070c7708b3c24a0c9ee8a24344be2645
2017-09-02 15:25:45 +08:00
Ting-Yu Lin 6d69dabd0c Bug 1382078 Part 2 - Make nsBindingManager::MediumFeaturesChanged() return bool directly. r=emilio
The method always returns NS_OK, and no other caller checks the nsresult.
Hence the patch.

MozReview-Commit-ID: CnYCZ8VchG

--HG--
extra : rebase_source : 062d643308b309dfe442384301860ffeec2dff9f
2017-08-30 15:22:31 +08:00
Sebastian Hengst 4d0bad92dd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02:00
Xidorn Quan 1538ddc813 Bug 1395725 - Don't add children of <area> as servo restyle root. r=emilio
MozReview-Commit-ID: LI7Lv1aD3PJ

--HG--
extra : rebase_source : 84df4e5ba6493e0db69f6e11e2fee428af427252
extra : source : 099a87c95a58d141f393f17ff27ae8f06a89d413
2017-09-02 09:56:36 +10:00
Wes Kocher 8b84853ed6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: GcHZLNPPNnI
2017-09-01 16:34:14 -07:00
Wes Kocher 5f157c17dc Merge inbound to central, a=merge
MozReview-Commit-ID: 3JxUEFuinHY
2017-09-01 16:29:10 -07:00
Emilio Cobos Álvarez 80541449d2 Bug 1374235: style: Remove the for reconstruction traversals. r=bholley
One less hack, a few more to go.

MozReview-Commit-ID: 6katL1EGn2U
2017-09-01 18:46:23 +02:00
Chung-Sheng Fu c978a96e84 Bug 1395486 - Move resource://gre-resource/plaintext.css to resource://content-accessible/plaintext.css. r=heycam
MozReview-Commit-ID: Efz2Z78W2ix

--HG--
extra : rebase_source : 0522f382acd14372c6fea0a695f1d09300810912
2017-08-31 17:06:22 +08:00
Nazım Can Altınova 09ef54645d Bug 1391534 - Fix computed prefixed linear gradient direction serialization r=dholbert
Prefixed linear gradients use direction keyword to indicate starting point of the
gradient but modern syntax uses this keyword to indicate ending point of the gradient.
Top-to-bottom direction is the default value for gradients. Therefore `top` is default
value of prefixed linear gradients and `to bottom` is default one for unprefixed one.
For brevity, we omit the direction keyword from our serialization when it matches the
default direction, but we were incorrectly trying to remove `bottom` keyword from
prefixed computed values.

MozReview-Commit-ID: 8UCsFE44LRX

--HG--
extra : rebase_source : 6185aec4c3c1b0647015d00d31e0120c9448867e
2017-08-30 14:39:44 -07:00
Emilio Cobos Álvarez dcdc508e66 Bug 1395351: Use the parallel traversal flag more often. r=bholley
MozReview-Commit-ID: JF6i0HDniR2

--HG--
extra : rebase_source : e917a604cf01d2fdafee5d52eb9878971e217cfe
2017-09-01 19:28:57 +02:00
Emilio Cobos Álvarez 7a147d3d24 Bug 1395351: Assert the root element is styled in StyleDocument. r=bholley
MozReview-Commit-ID: 6KncJ5IqLbt

--HG--
extra : rebase_source : d9c455e9e567d4647157192cc386403c2b343cba
2017-09-01 19:31:45 +02:00
Sebastian Hengst eee61902f8 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-01 10:45:14 +02:00
Sebastian Hengst 43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Nicholas Nethercote 78adeaf317 Bug 1393384 (attempt 2) - Take advantage of new support for measuring heap blocks via interior pointers. r=erahm.
We now have jemalloc_ptr_info() and moz_malloc_enclosing_size_of(), which can
be used to measure heap blocks via interior pointers. This patch does the
following.

- Adds MOZ_DEFINE_MALLOC_ENCLOSING_SIZE_OF, for defining
  measure-via-interior-pointer functions.

- Uses these functions to replace some horrid pointer arithmetic in functions
  measuring Rust types.

--HG--
extra : rebase_source : 5128408256c128222025153ae3e0f924b2499a2a
2017-09-01 17:25:52 +10:00
Boris Zbarsky 71d6942bcb Bug 1395650. Make anonymous column groups into non-inheriting anon boxes, to better match the behavior of other browsers. r=heycam 2017-09-01 00:53:33 -04:00
Hiroyuki Ikezoe 6feeb8950f Bug 1394935 - A crash test. r=bholley
MozReview-Commit-ID: 1zSJPx2sVbi
2017-09-01 13:27:11 +09:00
Xidorn Quan 58eb5ce434 Bug 1393189 part 6 - Add crashtest for this bug. r=heycam
MozReview-Commit-ID: 1DbP4Hs7tc2

--HG--
extra : rebase_source : 64e9c5bd849fc2f8be2b30829baa76f44f699d47
2017-08-29 17:13:34 +10:00
Xidorn Quan f3c33019da Bug 1393189 part 5 - Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functions. r=heycam
MozReview-Commit-ID: 3EsExs0DzQr

--HG--
extra : rebase_source : b97cfeb82dcaf80eb91635e9094c55a264678865
2017-08-29 17:11:13 +10:00
Xidorn Quan 610d192c1b Bug 1393189 part 4 - Remove kListStyleKTable and CSS keywords only used in this table. r=dholbert
MozReview-Commit-ID: IM0cvCSV6tR

--HG--
extra : rebase_source : d5d60115f0774f4e31c5c93617d64534e9c89f3e
2017-08-29 15:41:37 +10:00
Xidorn Quan ddf527e66d Bug 1393189 part 3 - Replace all uses of nsCSSProps::kListStyleKTable with gBuiltinStyleTable. r=dholbert
The change in CounterStyleManager::BuildCounterStyle converts a case-
insensitive comparison to a case-sensitive comparison by comparing atom
pointer directly. But this is fine because all names of builtin counter
styles should have been lowercased by the parser. For Gecko, it is done
in CSSParserImpl::ParseCounterStyleName, and for Servo, it is done in
counter_style::parse_counter_style_name.

MozReview-Commit-ID: JHHmzEaNIpn

--HG--
extra : rebase_source : aa43d45042c3cbd85e925596586a9a2ea51c6e4a
2017-08-29 15:36:32 +10:00
Xidorn Quan 06b5070af0 Bug 1393189 part 2 - Have CounterStyle::GetStyleName return nsIAtom and make it const. r=dholbert
MozReview-Commit-ID: KmnQSK7ZvND

--HG--
extra : rebase_source : e47fc3d41f16f18f7182bf561d8da7249fd27bc5
2017-08-29 15:21:36 +10:00
Xidorn Quan d189e163c1 Bug 1393189 part 1 - Statically initialize builtin style table with their name atom included. r=dholbert
Doing this at compile time would save a bit of our startup time, which
I've promised to do since @counter-style was initially implemented, see
bug 966166 comment 103 (the paragraph with "constexpr").

Also, having this implemented here makes using atom instead of string
on name of builtin counter styles easier, for later patches.

MozReview-Commit-ID: C9HYcuShBQv

--HG--
extra : rebase_source : 273eb3d23ee770722d27b26aafaa291d7375b8ee
2017-08-29 14:44:14 +10:00
Xidorn Quan 96c445bf1a Bug 1393189 part 0 - Reorder NS_STYLE_LIST_STYLE_* consts to match the order in nsCSSProps::kListStyleKTable. r=dholbert
MozReview-Commit-ID: 3RNqDbOjXyX

--HG--
extra : rebase_source : cda26fafbdc91328e2661025d60ea3c71952fcc1
2017-08-30 08:44:53 +10:00
Boris Chiou 5a4b83f24b Bug 1393605 - Fix gecko assertion and add one crashtest. r=birtles
MozReview-Commit-ID: 44QIZ8SipWX

--HG--
extra : rebase_source : 764a560a322b9945365929a7bba6eac77f47b554
2017-08-31 11:11:09 +08:00
Brian Birtles 670dfc03bf Bug 1395452 - Call HasAnimationController() before GetAnimationController(); r=hiro
nsDocument::GetAnimationController() will lazily create an animation controller
which, in some call sites, is unnecessary.

This patch first calls HasAnimationController() and only calls
GetAnimationController() if it returns true. This avoids creating an animation
controller in situations where one is not necessarily required.

MozReview-Commit-ID: 4cdpLRvMVJU

--HG--
extra : rebase_source : 125a59c0b0535d5df9a9964538b3784ddb1212c7
2017-08-31 15:00:39 +09:00
Nicholas Nethercote 9251ef42b7 Bug 1394729 - Measure memory usage of Stylo's Rule Tree. r=heycam.
This patch splits up the existing "layout/style-sets" measurement into
"layout/gecko-style-sets", or "layout/servo-style-sets/stylist/rule-tree" and
"layout/servo-style-sets/other". (Additional things will be measured under
"layout/servo-style-sets/" later, such as cascade data.)

This requires introducing a new type, ServoStyleSetSizes, for transferring the
multiple measurements from Rust code to C++ code.

MozReview-Commit-ID: FbmzpsjBpgI

--HG--
extra : rebase_source : f2d1441705139e6674d355792255302fcd89f748
2017-08-30 18:21:26 +10:00
J. Ryan Stinnett 541bcd7f5f Bug 1395751 - Skip test_stylesheet_clone_import_rule.html with Stylo. r=manishearth
MozReview-Commit-ID: smEHAwxRP6

--HG--
extra : rebase_source : 7a959c8b6821e48749847da61764cd57aca884ba
2017-08-31 18:20:39 -05:00
Henri Sivonen 3c8567b60d Bug 1354989 - Avoid pivoting via UTF-16 when loading CSS in the Stylo mode. r=jdm,SimonSapin
MozReview-Commit-ID: Llt29dvB4Io

--HG--
extra : rebase_source : 3ae51dc8beff3fb19e9318a6c7c30c9ab08a5b57
2017-08-29 16:01:42 +03:00
Sebastian Hengst df63e116bf Backed out changeset 35afffcb4182 (bug 1374235) for build bustage because it landed before its servo commit. r=backout 2017-09-01 14:07:47 +02:00
Emilio Cobos Álvarez fd2d4e8b6f Bug 1374235: style: Remove the for reconstruction traversals. r=bholley
One less hack, a few more to go.

MozReview-Commit-ID: 6katL1EGn2U
2017-09-01 13:16:09 +02:00
Emilio Cobos Álvarez 13c2c13b7f Bug 1384232: Crashtest. r=TYLin
MozReview-Commit-ID: J6oyn4n0Xpv

--HG--
extra : rebase_source : 5cfb1b145ddd8b2d3845d4fb8ec8b6dfca2b57f8
2017-08-31 23:06:38 +02:00
Emilio Cobos Álvarez 175b1c068d Bug 1384232: Don't post restyles when loading XBL stylesheets. r=TYLin
MozReview-Commit-ID: 3MCz4vuJb9q

--HG--
extra : rebase_source : 7b15ea991bf3f75c4c33d48080e3f936cf7b4a1b
2017-08-31 22:59:11 +02:00
Emilio Cobos Álvarez afe0dfdd27 Bug 1384232: Let ServoStyleset know what its purpose is. r=TYLin
MozReview-Commit-ID: IwC6FcxhYMT

--HG--
extra : rebase_source : 6d15a71b5bd3bbcce4c255b6993ac000daabe09e
2017-08-31 22:50:24 +02:00
Kris Maglione c55f80844a Bug 1363482: Part 9 - Preload system stylesheets off-thread during startup. r=heycam
MozReview-Commit-ID: 7k9KV7GBaaR

--HG--
extra : rebase_source : a47a4b8997911f3391ec95c6c0703852ddf3cfde
2017-08-31 17:23:07 -07:00
Mantaroh Yoshinaga 4c7997db68 Bug 1390352 - Make Servo_AnimationValues_ComputeDistance return negative value instead of 0.0 when the function fails to distinguish its failure. r=hiro
We need to check whether the function fails or not in order to check whether
we support the specified paced animation values.

Current servo returns 0.0 when failed computing distance, so servo doesn't
distinguish its failure. This patch makes Servo_AnimationValue_ComputeDistance
return a negative value when the function fails.

MozReview-Commit-ID: 43Q4gu4xwHc

--HG--
extra : rebase_source : fa159b4b03e2e84c0a365455de4c0d2cf5d4f2ce
2017-08-24 10:21:14 +09:00
Xidorn Quan 4750451d3d Bug 1387993 - Enable chrome mochitests on linux debug build. r=jmaher
MozReview-Commit-ID: Aj0movJBDI9

--HG--
extra : rebase_source : c33c2386fd0ca2e9eed9cb7fc137caf41629f7e4
2017-08-30 10:18:30 +10:00
Mike Hommey 57c65279a0 Bug 1395088 - Remove the jemalloc_bool type. r=njn
Back when it was added (for Windows CE, in bug 488608), mozjemalloc was
C and all the supported compilers didn't support C99 bools. Now
mozjemalloc is C++, and all the supported compilers support C99 bools
for the cases where the type is used from C.

--HG--
extra : rebase_source : b9c710a0c48dc36cb473af59e3119131d13523ce
2017-08-30 18:04:47 +09:00
Sebastian Hengst a56d428b1f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gf0QPFp52Bj
2017-08-30 11:05:16 +02:00
Andrew McCreight 78807d8776 Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv
Replace it with NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION, because it
has been the same for a while.

MozReview-Commit-ID: 5agRGFyUry1

--HG--
extra : rebase_source : 5388c56b2f6905c6ef969150f0c5b77bf247624d
2017-08-29 16:02:48 -07:00
Boris Zbarsky 9599945ea5 Bug 1394662. Make ::-moz-table-column a non-inheriting anonymous box. r=heycam
In our UA sheet the only style we apply to ::-moz-table-column is "display: table-column".

Per spec, the only styles that apply to table columns are border props,
background props, 'width', and 'visibility'.

The only one of those that inherits is 'visibility'.  And the only relevant
value per spec is "collapse".  But an anonymous column can only be "visibility:
collapse" in Gecko right now if its colgroup is, and then the colgroup will get
collapsed away as a whole.  So it doesn't matter whether the column inherits the
visibility style.

In practice, we do something special for "hidden" on a table-column as well,
during display list building, which affects hit-testing.  Per
https://github.com/w3c/csswg-drafts/issues/1763 it's not clear that we should be
doing this at all, but for now we just keep our existing behavior and ensure
that the parent colgroup's visibility style is taken into account for anonymous
columns when building display lists.
2017-08-29 22:04:05 -04:00
Bobby Holley ccdacc12ea Bug 1386773 - Crashtest. r=me
MozReview-Commit-ID: KQScTpgxdjb
2017-08-29 11:01:22 -07:00
Josh Matthews e140a7dd6e Bug 1384216 - Part 2: Support CSS error messages with no parameters. r=heycam 2017-08-29 12:26:30 -05:00
Josh Matthews c6c5e6928c Bug 1384216 - Part 1: Add a testsuite for CSS parsing error messages. r=heycam
MozReview-Commit-ID: 8Nmwcn396Rl
2017-08-29 12:26:30 -05:00
Simon Sapin 89556259fd Bug 1394792 - Add gtest microbenchmark for Servo_DeclarationBlock_GetPropertyValueById. r=emilio
MozReview-Commit-ID: 68RkTgnzdZj

--HG--
extra : rebase_source : 4a4ee4729d87c9cafcf245509abad8d5b0d836c0
2017-08-29 15:27:46 +02:00
Brad Werth 2c4de17c43 Bug 1378577: Fix await race condition which causes intermittent timeouts in test_stylesheet_clone_import_rule.html. r=emilio
MozReview-Commit-ID: 2vWsCcnsmwF

--HG--
extra : rebase_source : 3d453085367140f5bd320a202411f25ab6e4226d
2017-08-28 17:02:06 -07:00
Chung-Sheng Fu e5b80e9a8f Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm
MozReview-Commit-ID: ArhSHKPYOr8

--HG--
extra : rebase_source : 888f7ce8f9db809ad5abbe6340af74e9dfb1d73b
2017-06-08 17:52:46 +08:00
Bobby Holley 23cdafc91d Bug 1393791 - Crashtest. r=me
MozReview-Commit-ID: IWqnaFxC1Nx
2017-08-27 15:27:53 -07:00
Wei-Cheng Pan e55f4e59ec Bug 1388298 - Add an API to process all invalidations on the main thread. r=emilio
MozReview-Commit-ID: I7rBwvPQykR

--HG--
extra : rebase_source : 432210b2798c8b602fb7659e097721c6fbc1d60d
2017-08-24 15:36:48 +08:00
Emilio Cobos Álvarez eee20b3f8b Bug 1389645: Crashtest. r=me
MozReview-Commit-ID: BFJB3gm9IAS
2017-08-27 00:08:45 +02:00
Bobby Holley 7174bd25c7 Bug 1392863 - Clean up DoProcessPendingRestyles. r=emilio
MozReview-Commit-ID: 4JhWFNPVvGn
2017-08-26 12:28:25 -07:00
Bobby Holley dd9a4ea85c Bug 1376884 - Add a tweaked version of our existing invalidation stress test that runs parallel in adaptive mode. r=me
MozReview-Commit-ID: 8AjqX6y4FCI
2017-08-25 22:50:44 -07:00
Wes Kocher 7ea5ed6e6a Merge m-c to autoland, a=merge
MozReview-Commit-ID: LEKykpTAKjv
2017-08-25 17:32:33 -07:00
Wes Kocher 68149d6a59 Merge inbound to central, a=merge
MozReview-Commit-ID: 3N9jinnrmjb
2017-08-25 16:21:57 -07:00
Nazim Can Altinova 9c729626a5 Bug 1367860 (part 4) - Update CSS fallback font when lang changes (stylo). r=manishearth
MozReview-Commit-ID: AeBHXc0mIVn
2017-08-18 14:42:13 -07:00
Kevin Hsieh 13b2e9b2ef Bug 1367860 (part 3) - Construct language-specific default variable font as fallback font, not specified font. r=dbaron
MozReview-Commit-ID: 5kBHhvacxbS
2017-08-18 12:56:02 -07:00
Kevin Hsieh f06719d4ed Bug 1367860 (part 2) - Update CSS fallback font when lang changes. r=dbaron
MozReview-Commit-ID: 1VzxKnJJ1kD
2017-08-18 11:30:21 -07:00
Kevin Hsieh 64b2dce89a Bug 1367860 (part 1) - Handle CSS font-family units using switch instead of if. r=dbaron
MozReview-Commit-ID: DBwSHM8kfGP
2017-08-18 11:26:44 -07:00
Nazım Can Altınova acd63fe809 Bug 1355721 - Change nsCSSFontFeatureValuesRule.h to follow style guideline r=emilio
MozReview-Commit-ID: DUd4VTZQ33X

--HG--
extra : rebase_source : 3dcdbb663e51ddc539c8aabd075e7374f3dbe667
2017-08-13 23:06:33 -07:00
Nazım Can Altınova b2b88364dd Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
MozReview-Commit-ID: 7wgQ1NCn7vL

--HG--
extra : rebase_source : 6c774e87b8bd3f30d819302aba5a73a50047981a
2017-08-23 18:05:53 -07:00
Bill McCloskey 9cd553af84 Bug 1350432 - Remove mEventObservers to SynchronizedEventQueue (r=froydnj)
MozReview-Commit-ID: 8Xt1gdxFDr4
2017-08-25 10:28:23 -07:00
Manish Goregaokar 6a71487e1d Bug 1393580 - Add crashtest; r=emilio
MozReview-Commit-ID: CCTkfzhsbAF
2017-08-25 09:35:21 -07:00
Sebastian Hengst 2e163c99b1 Backed out changeset 1bfbae351dd7 (bug 863246) 2017-08-25 16:43:44 +02:00
Emilio Cobos Álvarez c5ba418ffa Bug 1387913: Make sure to update the stylist if needed on EnsureUniqueInnerOnCSSSheets. r=heycam
MozReview-Commit-ID: 3eKd78qMC1T

--HG--
extra : rebase_source : b317f0e12f769d39a7cbae66d9147c52d40cffea
2017-08-22 20:36:14 +02:00
Gregory Szorc 2a5e786286 Backed out changesets b749fc196a50, 2791eac8d760 (bug 1355721) for build bustage
CLOSED TREE

--HG--
extra : amend_source : 7618f27e1cf71347f12384935374d303d5c1ab23
extra : histedit_source : 1143d226673ace563bb5d9ff3c420ded33439791%2C9746a30097304bd2214a0072773dc00c767d31cd
2017-08-24 20:30:17 -07:00
Nazım Can Altınova 75f1f81153 Bug 1355721 - Change nsCSSFontFeatureValuesRule.h to follow style guideline r=emilio
MozReview-Commit-ID: DUd4VTZQ33X

--HG--
extra : rebase_source : c2772a233015b1ff419716ff9e34926d4a1a949f
2017-08-13 23:06:33 -07:00
Nazım Can Altınova 00f1cc4565 Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn
MozReview-Commit-ID: 7wgQ1NCn7vL

--HG--
extra : rebase_source : c104c2b09ebfbf5cdb98bc5638473cac1bfc40c9
2017-08-23 18:05:53 -07:00
Brad Werth c946e3ebb0 Bug 1387933 Part 2: Gecko-side add a reusable sheets parameter to Servo_StyleSheet_FromUTF8Bytes, and mark a test as passing. r=xidorn
MozReview-Commit-ID: 9wqJW3SqbbM

--HG--
extra : rebase_source : 2d6711c411ec5ef22866a4b3aefcbd9c70619f31
2017-08-22 13:53:53 -07:00
Brian Birtles efd02d2a25 Bug 1339648 - Fix flaky file_transitions_replacement_on_busy_frame.html test; r=hiro
There are two issues with this test:

(a) It fails to flush style when it intends to trigger the first transition.

    Specifically, `getComputedStyle(div)` alone does not flush style. Instead we
    need `getComputedStyle(div).transform`.

    This patch replaces that line with a call to `div.getAnimations()` which
    *does* flush style ensuring the first transition is triggered.

(b) It fails to ensure that the first transition has progressed past the first
    frame on the main thread before triggering the second transition.

    If the first transition is still on its first frame, the computed value of
    'transform' will be 'matrix(1, 0, 0, 1, 0, 0)'. If we then update the
    specified value of 'transform' to 'translateX(0px)', no transition will be
    generated (although the first transition will be canceled) since there is no
    change.

    This patch fixes that by making the end point of the second transition NOT
    match the start point of the first transition (and not be somewhere inside
    the range of the first transition).

As an extra precautionary measure, to be sure that the animation has started
progressing on both the main thread and compositor, this patch alters the
initial wait condition for the first transition to also wait on the first
transition's ready promise.

MozReview-Commit-ID: E1OJuHBSMfr

--HG--
extra : rebase_source : aede0fa00f261e1c7d1be61857b6fd0537a0f7e7
2017-08-23 18:17:31 +09:00
Ting-Yu Chou a472c6ecc1 Bug 1391500 - Fix the new-delete-type-mismatch error that ASan reports. r=Ehsan
MozReview-Commit-ID: 1iGtltDGj3T

--HG--
extra : rebase_source : d667cb31f15978046cec9a5fabd9b246b838a780
2017-08-18 11:39:14 +08:00
Jeremy Chen a5541e04c1 Bug 1375332 - stylo: move minimum font size applying into the default constructor of nsStyleFont. r=emilio
In Stylo, we read font related user prefs to set the default font size only
if we set 'font-size' property. However, users are allowed to set their
preferred minimum font size through the user prefs, even without using
'font-size' property.

Gecko used to do this in nsRuleNode::SetDefaultOnRoot, which calles the
default constructor of nsStyleFont and does the minimum font size applying
right after. Moving the minimum font size applying into the default
constructor of nsStyleFont shoud be no harm to Gecko, but makes Stylo
share the same code path and behave the same.

MozReview-Commit-ID: BDcJX92o0uR

--HG--
extra : rebase_source : 88d9c73d0eb793ffe8a5dc424361f21f6acd078b
2017-08-23 18:14:03 +08:00
Wes Kocher fb8abb94c7 Merge inbound to central, a=merge
MozReview-Commit-ID: 1mWKzfX4kl
2017-08-23 18:07:24 -07:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Sebastian Hengst 99e5cb9c14 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GSKVB94r7Kk
2017-08-23 16:29:51 +02:00
Bobby Holley 7210bd7226 Bug 1383332 - Track the restyle root and use it to do less work during the traversal. r=emilio
MozReview-Commit-ID: A8O3JOpsv4E
2017-08-22 21:19:24 -07:00
Wes Kocher 655a23a70a Merge m-c to autoland, a=merge
MozReview-Commit-ID: CxIXNml1xZW
2017-08-22 17:24:16 -07:00
Wes Kocher 6dd42e2664 Merge inbound to central, a=merge
MozReview-Commit-ID: BMWuqvmTljV
2017-08-22 17:07:23 -07:00
Mantaroh Yoshinaga b6477dc29c Bug 1387986 - Enable stroke-* test of test_transitions_per_property.html on Servo. r=birtles
MozReview-Commit-ID: 6OGzMPAEP6K

--HG--
extra : rebase_source : 6ea430757a0a79b6c3537ec4de208565dd47a149
2017-08-22 13:45:46 +09:00
Nathan Froyd 4524b05ac2 Bug 1387218 - label StyleImageRequestCleanupTask; r=billm 2017-08-22 20:52:22 -04:00
Sebastian Hengst c5b98b786f merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 138539eda803df4aa7fa2d161e78ad36cf3f55ef
2017-08-23 16:31:21 +02:00
Boris Chiou 3453068a19 Bug 1387990 - Remove skipped transform tests and fix animation utils. r=birtles
Sometimes, we may get a 2d transform matrix like this:
  matrix(0, 1, -1, 0.33, 0, 0)
The reason is we might have "rotate(90deg)" in the test case, so the 1st or
the 4th element could be 0.0, and we shouldn't assume they are 1.0 while
converting matrix2d into matrix3d, or we will get a weird result, like this:
  matrix3d(1, 1, 0, 0,
          -1, 0.33, 0, 0,
           0, 0, 1, 0,
           0, 0, 0, 1)
m11 shouldn't be "1" here.

Add a "defined()" function to return the first defined object as the
matrix element because we should be testing the defined-ness, instead of
truthiness.

MozReview-Commit-ID: HSTt2PR02AU

--HG--
extra : rebase_source : 417438239635f9bbf0eb4818b39c611ab90b9a10
2017-08-18 18:08:34 +08:00
J. Ryan Stinnett 2c635e5c43 Bug 1392447 - Fix up Servo_StyleSheet_GetOrigin for Linux 32-bit ABI. r=emilio
Bindgen bitfield enums don't work as return values with the Linux 32-bit ABI at
the moment because they wrap the value in a struct.

This causes the Rust side to believe the caller will pass along space for the
struct return value, while C++ believes it's just an integer value.

MozReview-Commit-ID: JHDp0XAmQCG
2017-08-22 14:54:20 -05:00
Sebastian Hengst de6f7dc3a1 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-08-25 13:21:40 +02:00
Nicholas Nethercote ccabc0fa19 Bug 1393636 (part 5) - Report memory usage of Gecko style structs separately. r=heycam.
A lot of this involves copy-pasting the existing Servo style structs code.

Note that nsArenaSizes had to be moved after nsStyleSizes, because the former
now contains an instance of the latter.

MozReview-Commit-ID: 3hrkobxbX9b

--HG--
extra : rebase_source : f6b29bd7cb9bd60f2da65f5f907e161299333287
2017-08-25 14:59:44 +10:00
Nicholas Nethercote f2751f3072 Bug 1393636 (part 4) - Move ComputedValues measurements from nsStyleSizes to nsWindowSizes. r=heycam.
Another plumbing-only change, which is a precursor for the next patch.
ComputedValues are a Servo-only thing, so in order to use nsStyleSizes for both
Gecko and Servo, the ComputedValues sizes must be moved out.

MozReview-Commit-ID: BOnQSzzV0vC

--HG--
extra : rebase_source : 025c6161e509401a36525349083dd98bfda35621
2017-08-25 14:50:26 +10:00
Nicholas Nethercote 7e120ce35e Bug 1393636 (part 3) - Pass nsWindowSizes to more AddSizeOf*() functions. r=heycam.
This is a purely non-functional plumbing change. Instead of passing a
SizeOfState and an nsStyleSizes a bunch of places, we pass an nsWindowSizes,
which contains both of them.

This is a necessary precursor for the next patch.

MozReview-Commit-ID: Ek03wDM50rB

--HG--
extra : rebase_source : 7b05708bd21dc4e3812ea041647fa74bb413d0b9
2017-08-25 14:47:54 +10:00
Sebastian Hengst 2f56a032cd merge mozilla-central to autoland. r=merge a=merge 2017-08-22 11:50:08 +02:00
Ting-Yu Lin c7dc325aed Bug 1388165 - Clear mPresContext after creating XBL styleset. r=xidorn
MozReview-Commit-ID: VBmKMTt8lc

--HG--
extra : rebase_source : e2b16da8f3d9c55a1485558f76285dc10c39b530
2017-08-22 14:46:25 +08:00
Nicholas Nethercote ac72ddb583 Bug 1390760 - Measure ServoComputedData::visited_style. r=bholley.
For the Obama wikipedia page, this covers about 85% of the unmeasured
ComputedValues structs. The about:memory output looks like this:

> +---2,443,648 B (02.41%) -- computed-values
> |   +--1,088,272 B (01.07%) -- dom
> |   +----945,744 B (00.93%) -- non-dom
> |   +----409,632 B (00.40%) -- visited

I'm not sure why some CVs are still being missed.

MozReview-Commit-ID: 1bYWwSi4ihn

--HG--
extra : rebase_source : 14e4bd36a54bbbd8fd265f559704bec5a5e3b154
2017-08-21 16:07:16 +10:00
Chung-Sheng Fu bb279d6d5e Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm
MozReview-Commit-ID: ArhSHKPYOr8

--HG--
extra : rebase_source : b0cf8d159ba6bfa6e7bcd9528ae2f9851185ac30
2017-06-08 17:52:46 +08:00
James Willcox 2b6d28deca Bug 1369815 - Add mochitest for additional display modes r=heycam
MozReview-Commit-ID: 3ADmC1op4Sj
2017-08-22 09:08:39 -05:00
James Willcox f029ff1bf4 Bug 1369815 - Add display mode to nsIDocShell and use it for media queries r=heycam
MozReview-Commit-ID: EVT0fTk6GfC
2017-08-22 09:08:39 -05:00
Emilio Cobos Álvarez 3bbd915f86 Bug 1394935: Add a special case for marking something as dirty from invalidation code. r=bholley
Not sure about the name, or whether making it a static or not (a static seemed
slightly clearer, but nbd, feel free to bikeshed about it).

MozReview-Commit-ID: FHGmcoprN2Q

--HG--
extra : rebase_source : 2f68a55ee861d9eacc56004cb98470a518574626
2017-08-31 09:42:26 +02:00
Emilio Cobos Álvarez 977a701ae1 Bug 1392093: Remove dead code to get the old style context. r=heycam
Unused since https://github.com/servo/servo/pull/18153.

MozReview-Commit-ID: DtQdm3ONS5E

--HG--
extra : rebase_source : 8a781dfdd4963b73c0f6a0c5bc2de8041bcc0db9
2017-08-20 18:01:25 +02:00
Brian Birtles ac44c390db Bug 1385139 - Expand var() references in keyframes from CSS animations when serializing; r=hiro
This is a temporary step until we implement bug 1391537. It is needed to
maintain consistent behavior with Gecko and provide sensible output,
particularly in the case where we have longhands whose values are drawn from
unparsed shorthands.

MozReview-Commit-ID: 9aD2tsLagBp

--HG--
extra : rebase_source : cdabb26be17b96a574ea8b2e8093e11abb1af430
2017-08-21 12:35:35 +09:00
Brian Birtles a09985ac81 Bug 1385139 - Add test for changes to CSS variables; r=hiro
This test passes both before and after the code changes in the following patch
in this series. However, both tests fail if we try to expand variables in
Servo_StyleSet_GetKeyframesForName.

MozReview-Commit-ID: LHOsK39WDLq

--HG--
extra : rebase_source : 225cfccbf439c35df943d0aed969825051354dec
2017-08-21 10:32:37 +09:00
Sebastian Hengst 54d8b1efae merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1yS8D5e0Ejz
2017-08-20 23:24:15 +02:00
Emilio Cobos Álvarez 2b074ed3a4 Bug 1391787: Mutex out the system color stuff. r=Manishearth
GTK is definitely not thread-safe, and unless proven otherwise, I suspect the
other widgets aren't either.

Mutex the calls to get the system color stuff.

There are chances to make this more fine-grained moving the mutexes into the
specific widget code and when needed. That is more analysis work which I'm not
sure we should waste time on, since the chances on racing here seem quite
unlikely in practice (system colors are uncommon enough in content, I guess).

MozReview-Commit-ID: AOQQ2jtkgpx
2017-08-20 18:19:19 +02:00
Emilio Cobos Álvarez 69bb02b53d Bug 1391577: Crashtest. r=heycam
MozReview-Commit-ID: I8th7nMpwnJ

--HG--
extra : rebase_source : 81342a197eb5bd36dfcd64dc4755a2c5413bfffc
2017-08-20 09:15:58 +02:00
Boris Chiou 019a8f16fa Bug 1389429 - Part 2: Update test_transitions_per_property.html for rotatex and rotatey. r=birtles
MozReview-Commit-ID: DRV4R0JRGkU

--HG--
extra : rebase_source : 0e01dfa613885dc123577e5e4c9fa38604af3f2c
2017-08-16 11:20:53 +08:00
Nazım Can Altınova 1e119a0070 Bug 1391432 - stylo: Add test cases for -moz-linear-gradient with single keyword r=emilio
MozReview-Commit-ID: EohV57mnQKy

--HG--
extra : rebase_source : 0b21d3ac1b302e6af0ae798f4b81f0011b98d97a
2017-08-17 15:57:25 -07:00
Boris Chiou d8f7b71ccb Bug 1362896 - Part 1: Fix the computation of distance for non-normalizable direction vector of rotate3d. r=birtles
MozReview-Commit-ID: GuT9vocccuN
2017-08-18 22:17:41 +08:00
Bobby Holley a0a0196602 Bug 1375911 - Avoid creating a stylo thread pool in e10s parent processes. r=xidorn
MozReview-Commit-ID: LW92yNDKZf4
2017-08-17 19:15:20 -07:00
Bobby Holley 1b117f0519 Bug 1373343 - Skip the parallel traversal when the presshell isn't active. r=heycam
I've verified with the profiler that we use the parallel traversal for
loading a foreground tab, but not for a tab opened with ctrl-click.

MozReview-Commit-ID: 2SiVDlLLyah
2017-08-17 19:08:29 -07:00
Wes Kocher c1383cebf3 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KLrOCT1a7El
2017-08-17 16:23:45 -07:00
Cameron McCormack c8564a9ea5 Bug 1388113 - Hold on to pseudo-element atoms longer. r=bholley
MozReview-Commit-ID: 98eW8VwVFPT

--HG--
extra : rebase_source : dc0b80d9cc693da3abe858ba52d691416332dee7
2017-08-17 14:37:32 -04:00
Hiroyuki Ikezoe a30003cd17 Bug 1356241 - Return specified 'normal' value for column-gap computed value. r=dholbert
In the spec [1], computed value for column-gap is defined as
'as specified, with <length>s made absolute'.

[1] https://drafts.csswg.org/css-multicol-1/#column-gap

MozReview-Commit-ID: IO22V33z8pz

--HG--
extra : rebase_source : 63167965a0e89fd298df3a22a7c5e41ed34dd1e9
2017-08-17 08:56:00 +09:00
Hiroyuki Ikezoe 597905c94c Bug 1387973 - Modify transition test cases for {text,box}-shadow without color. r=birtles
As for Gecko we can't interpolate between value with color and value without
color yet (bug 726550) so that transition does not happen for the cases.

As for Servo we can interpolate them but the results are wrong (bug 1390697).

MozReview-Commit-ID: 9T0ELBUP0pL

--HG--
extra : rebase_source : eb0ba751a2d0a1081a7883b7292da6f1d20e4caf
2017-08-16 15:03:46 +09:00
Wes Kocher 366445521c Merge m-c to autoland, a=merge
MozReview-Commit-ID: DjSlrmDFfe3
2017-08-16 17:14:41 -07:00
Wes Kocher 9e13a44b54 Merge inbound to central, a=merge
MozReview-Commit-ID: GEfEDRZk5bo
2017-08-16 16:59:26 -07:00
Nazım Can Altınova 1112f60fcc Bug 1344314 - stylo: Add an aliasid field to CSS_PROP_ALIAS macro and include them to bindings r=manishearth
This field will be needed for servo side alias pref handling on the
next patch.

MozReview-Commit-ID: LyH2UwZEvMy

--HG--
extra : rebase_source : f3f921581a0cdcc9c63520b528bd0f1e12568958
2017-08-12 14:37:19 -07:00
Thomas Nguyen 33fb4a1505 Bug 1384493 - LoadStyleLink and LoadInlineStyle should use correct referrer policy. r=heycam
If the link element has referrerpolicy attribute, we should use policy in the
attribute with higher priority

MozReview-Commit-ID: GZZeRaoxPUw
2017-08-15 00:05:00 -04:00
Ting-Yu Lin 8093e51fed Bug 1382102 - Update mochitest expectation. r=emilio
MozReview-Commit-ID: FCLxWKZ5Qap

--HG--
extra : rebase_source : c9624c7cb9ad9b3edafe4882bb6703b8809041b1
2017-08-15 20:44:49 +08:00
Emilio Cobos Álvarez af1bc71c5d Bug 1390650: stylo: Remove some unused FFI functions. r=bholley,xidorn
MozReview-Commit-ID: K9fXGRmgkr4

--HG--
extra : rebase_source : 2428cd915b9d7f4b75b23df99e9d532034ff63a7
2017-08-15 23:21:30 +02:00
Jeremy Chen e3effad2d4 Bug 1387982 - re-enable filter tests in test_transitions_per_property.html. r=hiro
The reason of the previous failure is we wrongly use default color for drop-shadow
functions that without specified color component. Since this has been resolved in
bug 1388220, we can enable these two tests now.

MozReview-Commit-ID: C3bPcLYQwvW

--HG--
extra : rebase_source : c39d1465658e358110bdccb32649a7fdea4c562c
2017-08-16 10:54:18 +08:00
J. Ryan Stinnett 418161625f Bug 1390691 - Fix up Servo_StyleSet_MediumFeaturesChanged for Linux 32-bit ABI. r=manishearth
Bindgen bitfield enums don't work as return values with the Linux 32-bit ABI at
the moment because they wrap the value in a struct.

This causes the Rust side to believe the caller will pass along space for the
struct return value, while C++ believes it's just an integer value.

MozReview-Commit-ID: LY6z7lEKgOp

--HG--
extra : rebase_source : deb9739bd100e2162e7c93d6d45d7029d7793355
2017-08-15 17:10:13 -05:00
J. Ryan Stinnett f68386ce04 Bug 1390691 - Fix up Servo_TakeChangeHint for Linux 32-bit ABI. r=manishearth
Bindgen bitfield enums don't work as return values with the Linux 32-bit ABI at
the moment because they wrap the value in a struct.

This causes the Rust side to believe the caller will pass along space for the
struct return value, while C++ believes it's just an integer value.

MozReview-Commit-ID: 6qqVVfU8Mb2

--HG--
extra : rebase_source : 825985977307b50ae8a80ab182e54a3f7b95eafc
2017-08-14 22:11:53 -05:00