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

12561 Коммитов

Автор SHA1 Сообщение Дата
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