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

367 Коммитов

Автор SHA1 Сообщение Дата
Boris Chiou c35f47093e Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

Differential Revision: https://phabricator.services.mozilla.com/D7536

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:37 +00:00
Daniel Holbert 7258ebe69e Bug 1514309 part 2: Remove C++ serialization code for CSS {align,justify}-{content,items,self} properties. r=emilio
(Also remove stale decl for DoGetOverflowY, which cleanup_computed_getters.py
found for me.)

Differential Revision: https://phabricator.services.mozilla.com/D14618

--HG--
extra : moz-landing-system : lando
2018-12-14 21:27:18 +00:00
Emilio Cobos Álvarez 4591031b65 Bug 1513012 - Move overflow to use cbindgen. r=heycam
It's one of the most annoying / hacky mako bits we have.

Differential Revision: https://phabricator.services.mozilla.com/D14084
2018-12-11 03:07:08 +01:00
Emilio Cobos Álvarez 0b0dd2d95f Bug 1512328 - Use cbindgen for a couple more CSS properties. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D13886
2018-12-07 15:06:07 -05:00
Cameron McCormack be0999a658 Bug 1501261 - Part 1: Use Servo to serialize border-image-repeat r=firefox-style-system-reviewers,emilio
With this change, all of Chrome, Edge, Firefox, and Safari serialize
border-image-repeat by omitting a repeated keyword, so we update a WPT
that was expecting duplicated keywords.

Differential Revision: https://phabricator.services.mozilla.com/D10445

--HG--
extra : moz-landing-system : lando
2018-11-05 02:21:39 +00:00
Boris Chiou e3efce4cc6 Bug 1501117 - Part 2: Serialize timing function from web animation api with servo. r=emilio,birtles
It's worth to serialize the timing function from web animation api with
servo, too. However, we need an FFI to do that, so this patch also add a
new FFI.

Depends on D10443

Differential Revision: https://phabricator.services.mozilla.com/D10444

--HG--
extra : moz-landing-system : lando
2018-11-01 21:33:56 +00:00
Boris Chiou 04b273259e Bug 1496619 - part 6: Generate StyleTimingFunction and drop ns_timing_function.rs r=emilio,birtles
First, we generate StyleComputedTimingFunction by cbindgen from Rust, and use
it in nsTimingFunction, so we could copy it directly without handling
the different memory layout. However, we have to rewrite the
nsTimingFunction and mozilla::ComputedTimingFunction for this.

Second, the rust-bindgen seems cannot generate the correct generic members
from complex C++ templates, especially for the nested template struct,
(https://github.com/rust-lang-nursery/rust-bindgen/issues/1429)
So we have to hide StyleTimingFunction to avoid the compilation errors.

Depends on D9312

Differential Revision: https://phabricator.services.mozilla.com/D9313

--HG--
extra : moz-landing-system : lando
2018-10-26 18:03:35 +00:00
Emilio Cobos Álvarez acda669e27 Bug 1500885 - Remove some unused keywords. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D9372
2018-10-24 14:01:39 +02:00
Emilio Cobos Álvarez 03eea217a8 Bug 1481961: Rewrite media queries so that they work on an evaluator function. r=xidorn
This moves most of the code to be Rust, except potentially some evaluator
functions, and allows to unblock the use case from any-hover / any-pointer and
remove nsMediaFeatures.

Differential Revision: https://phabricator.services.mozilla.com/D2976
2018-08-15 16:09:19 +02:00
Hiroyuki Ikezoe ea2e577fa3 Bug 1365045 - Introduce keywords for prefers-reduced-motion. r=heycam
https://drafts.csswg.org/mediaqueries-5/#prefers-reduced-motion

MozReview-Commit-ID: RQUo1DBR0W
2018-07-24 16:50:47 +09:00
Emilio Cobos Álvarez 92952c788e Bug 1472551 - Serialize font properties using Servo. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D1905

--HG--
extra : moz-landing-system : lando
2018-07-01 23:00:18 +00:00
Emilio Cobos Álvarez f36a3eac08 Bug 1472443: Serialize content properties using Servo. r=xidorn
... and cleanup unused keywords / getters using the scripts in
layout/style/tools

Differential Revision: https://phabricator.services.mozilla.com/D1901

MozReview-Commit-ID: BRUGcje7X0q
2018-06-30 17:14:12 +02:00
Xidorn Quan 882b6f2f03 Bug 1471114 part 6 - Remove unused CSS keywords. r=emilio
This is done with the following script:
```python
#!/usr/bin/env python3

import re
import subprocess

LIST_FILE = "layout/style/nsCSSKeywordList.h"

RE_KEYWORD = re.compile(r"\beCSSKeyword_(\w+)")
rg_result = subprocess.check_output(["rg", r"eCSSKeyword_\w+"], encoding="UTF-8")
to_keep = set()
for item in rg_result.splitlines():
    file, line = item.split(':', 1)
    for m in RE_KEYWORD.finditer(line):
        to_keep.add(m.group(1))

remaining_lines = []
RE_ITEM = re.compile(r"CSS_KEY\(.+, (\w+)\)")
with open(LIST_FILE, "r") as f:
    for line in f:
        m = RE_ITEM.search(line)
        if m is not None and m.group(1) not in to_keep:
            print("Removing " + m.group(1))
            continue
        remaining_lines.append(line)
with open(LIST_FILE, "w", newline="") as f:
    f.writelines(remaining_lines)
```

MozReview-Commit-ID: upyTPc8984

--HG--
extra : source : 65a744682fe99d8f0de4fa4b7a478e10aba0349e
2018-06-27 15:34:29 +10:00
Xidorn Quan 846d7b5617 Bug 1463917 part 1 - Add scrollcorner to -moz-appearance so that widget can render it. r=heycam
MozReview-Commit-ID: 1Za22ifONfG

--HG--
extra : rebase_source : f68ab7acae943c633299dd422a0587b22c2ba5e9
2018-05-11 10:12:17 +10:00
Morgan Rae Reschenberg 0403087901 Bug 1463589 - Add contain:size and contain:content parsing functionality. r=emilio
MozReview-Commit-ID: 4fOqln3oOpC

--HG--
extra : rebase_source : 3b2ac1116ea9399a8fbbaab158e7dda5fec3930d
2018-05-30 07:49:31 -07:00
Gerald Squelart 49bbea11e3 Bug 1457373 - Remove text-combine-upright digits option - r=xidorn
MozReview-Commit-ID: Ehzsd2rmBER

--HG--
extra : rebase_source : 15e109be686e2b849a4676ad89a1b06bc4fe9687
2018-05-17 15:29:17 +10:00
Daniel Holbert 81c1d19a77 Bug 1105111 part 2: Add support for 'flex-basis:content' in the style system (gecko / getComputedStyle side). r=mats
MozReview-Commit-ID: E0crFCy7Jfk
2018-04-02 04:30:37 +02:00
lochang e889dbe685 Bug 1417751 - Implement a new value inner-spin-button to -moz-appearance on all platforms except Android. r=mats
MozReview-Commit-ID: 7jpLCOWZA2x

--HG--
extra : rebase_source : d2a4d160d26e6f6996ed1cb3a673576236b8ef23
2017-11-29 10:43:13 +08:00
Cosmin Sabou 7d7b59dd0b Backed out changeset 423f4e43a975 (bug 1417751) for xpcshell failures at devtools/shared/tests/unit/test_css-properties-db.js r=backout on a CLOSED TREE 2017-11-28 13:50:59 +02:00
lochang 416f319bb8 Bug 1417751 - Implement a new value inner-spin-button to -moz-appearance on all platforms except Android. r=mats
MozReview-Commit-ID: 3I1LBLbCfmF

--HG--
extra : rebase_source : f9a356d592eac90d91a59de0c7ab0ded6ab80ab2
2017-11-28 10:39:50 +08:00
Markus Stange 0baac004bb Bug 1417709 - Add -moz-appearance: -moz-mac-vibrant-titlebar-light/dark. r=emilio
MozReview-Commit-ID: 2PMe8KTt5Wl

--HG--
extra : rebase_source : 58ed83f4a18ca83a9829ba2c27633e17fcbd6e63
2017-11-16 11:36:22 -05:00
Margareta Eliza Balazs 2cb7aeff33 Backed out 5 changesets (bug 1417709) for failing X in devtools/shared/tests/unit/test_css-properties-db.js r=backout on a CLOSED TREE
Backed out changeset 5670c9582add (bug 1417709)
Backed out changeset 50f0febe43a0 (bug 1417709)
Backed out changeset 29e6c0d82193 (bug 1417709)
Backed out changeset e3a6c5b74595 (bug 1417709)
Backed out changeset a0fe569c86c0 (bug 1417709)
2017-11-23 01:17:07 +02:00
Markus Stange 077922bc53 Bug 1417709 - Add -moz-appearance: -moz-mac-vibrant-titlebar-light/dark. r=emilio
MozReview-Commit-ID: 2PMe8KTt5Wl

--HG--
extra : rebase_source : e9a832aa44d9d18be5bb788ad45db7de9a91f054
2017-11-16 11:36:22 -05:00
Daniel Holbert 680815cd6e Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK

--HG--
extra : rebase_source : 3356d4b80ff6213935192e87cdbc9103fec6084c
2017-10-27 10:33:53 -07: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
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
Jonathan Watt 0f6107d4a9 Bug 1344910, part 2 - Add a '-moz-win-accentcolortext' color keyword to color text that will be drawn over an accent color background. r=jimm
on a CLOSED TREE, because it failed to autoland before bug 1344917 landed.

MozReview-Commit-ID: 9l2NsQlewIJ
2017-06-29 18:57:46 -07:00
Jonathan Watt 33a8a677ca Bug 1344910, part 1 - Add a '-moz-win-accentcolor' color keyword to expose the Win10 accent color. r=jimm
on a CLOSED TREE, because it failed to autoland before bug 1344917 landed.

MozReview-Commit-ID: 9jMMVnnSF5h
2017-06-29 18:57:01 -07:00
Neil Deakin f36da07def Bug 1364115 - Allow -moz-stack-sizing to work in a single direction only. r=dbaron,manishearth
MozReview-Commit-ID: Kl7YQpfolTC

--HG--
rename : layout/reftests/bugs/346189-1-ref.xul => layout/reftests/xul/stack-sizing-1-ref.xul
rename : layout/reftests/bugs/346189-1.xul => layout/reftests/xul/stack-sizing-1.xul
extra : rebase_source : e536212980c832c04423871e0fa9dfc09f8a5994
extra : source : a65814deeb7a7f64189d3a9388ac295c6f5b4958
2017-05-15 12:33:46 +01:00
Jonathan Watt e0f3ff607a Bug 1350010, part 1 - Implement the '-moz-context-properties' property. r=heycam
MozReview-Commit-ID: CyVQe0UfKdy
2017-04-11 21:38:10 +01:00
Xidorn Quan d8c29760a1 Bug 1355734 - Remove text-decoration-line: -moz-anchor-decoration. r=heycam,masayuki
MozReview-Commit-ID: 4TmVncV1K5G

--HG--
extra : rebase_source : 568218d415642f1088c82d4b2e03d5885067b162
2017-04-13 16:17:03 +08:00
Boris Chiou af4598f9ae Bug 1248340 - Part 4: Implement Frames in the style system. r=dholbert
Use eCSSUnit_Function to store the frames timing function. Also, add one more
css keyword: frames.
The following changes are included in this:
1. Parser changes.
2. Serialization.
3. Computation in nsRuleNode.
4. Invalid and other values in property_database.js

MozReview-Commit-ID: 887QcXHQ2pU

--HG--
extra : rebase_source : ca0135380ea432cb69c4f36cf502d404e04999e5
2017-02-24 14:50:08 +08:00
jeremychen@mozilla.com 8638420acc Bug 276079 - parse and compute CSS text-justify property. r=xidorn
MozReview-Commit-ID: K3bh0H2SPnE

--HG--
extra : rebase_source : c483f3f1cb7eb024b1851ad1df6b6562630a2fc5
2017-03-01 20:58:25 +08:00
Xidorn Quan 9a46e4e6e0 Bug 1333675 - Remove prefixed values for unicode-bidi. r=dholbert
MozReview-Commit-ID: B1TNnDPHel2

--HG--
extra : rebase_source : 6219c71c7910bb7c18bc311c454b74c2a1454428
2017-02-08 15:25:17 +11:00
Mats Palmgren 69e8c00577 Bug 1322191 part 1 - [css-display] Add style system support for display:flow-root. Enable it by default. r=dholbert 2016-12-23 19:11:03 +01:00
Ethan Lin a8763b0e05 Bug 1303623 - Part1. Style const changes. r=heycam
MozReview-Commit-ID: 7QfVXegiiqc

--HG--
extra : rebase_source : d98165a7ef1981bbe2fbd3d0ea028db2a9cd7bf9
2016-10-19 15:45:05 +08:00
Hiroyuki Ikezoe c661a36ecc Bug 1304886 - Part 8: Add Accumulate operator. r=boris,derf
MozReview-Commit-ID: Bzcn3IRSx6L

--HG--
extra : rebase_source : 854c39f38953a400407bcf976ebd68f25f4b6396
2016-11-16 20:32:33 +09:00
Mats Palmgren ab344ac072 Bug 1313254 part 1 - [css-align] Change "baseline|last-baseline" to "[ first | last ]? baseline". r=dholbert 2016-11-05 02:57:07 +01:00
stefanh@inbox.com 3a689f8b9a Bug 1192053 - Implement NS_THEME_MAC_SOURCE_LIST_SELECTION and NS_THEME_MAC_ACTIVE_SOURCE_LIST_SELECTION. r=mstange. 2016-10-14 22:45:29 +02:00
Xidorn Quan 2f279e5ef8 Bug 1306214 part 3 - Remove -moz-use-text-color from Gecko. r=heycam
MozReview-Commit-ID: EEYCB5jUH9L

--HG--
extra : rebase_source : ce6fcfdd573e1986a07fdae84106274bd2ae2495
2016-09-29 17:47:22 +10:00
Mats Palmgren 15b4f3793a Bug 1281320 - [css-grid] Implement 'fit-content([ <length> | <percentage> ])' value for <track-size>. r=dholbert 2016-08-26 15:16:57 +02:00
Mats Palmgren 60eb164682 Bug 1266124 - [css-grid] Update the 'grid' shorthand syntax to the latest spec. r=dholbert 2016-08-26 15:16:57 +02:00
Astley Chen c9de3d6a41 Bug 1283679 - fix misspelled mask-composite:subtract keyword. r=dbaron
MozReview-Commit-ID: 67UEtupOLoM

--HG--
extra : rebase_source : d5c27da11ae0be79ef551c70cfeb17dcf1c3db67
2016-07-04 11:17:13 +08:00
Xidorn Quan 84a5a2fca6 Bug 1141895 part 1 - Add unprefixed values for unicode-bidi. r=jfkthame
MozReview-Commit-ID: EUNCaYUfyzN

--HG--
extra : rebase_source : 95661b4204638f70c905a4f0bebb8195813fe680
2015-08-28 17:50:04 +10:00
Lazar Sumar a045541027 Bug 548372 - Implement round and space values of background-repeat CSS property. r=dbaron 2016-05-06 02:16:00 +02:00
Daniel Holbert 9a78c49077 Bug 1274096 part 2: Add support for "-webkit-flex" & "-webkit-inline-flex" as spellings of modern flexbox "display" keywords, if webkit prefix support is enabled. r=mats
MozReview-Commit-ID: 3UKsC1qTz1B
2016-05-23 21:42:36 -07:00
stefanh@inbox.com d76d8b9c90 Bug 1192053 - Native theming: Support for Mac OS X source lists (background part). r=gijs, mstange. 2016-05-17 07:37:05 +02:00
Tobias Schneider 910b79dd54 Bug 1209273 - Part 1: Support for adjust-color CSS property. r=dbaron 2016-03-08 09:25:24 -08:00
Carsten "Tomcat" Book dc337845d1 Backed out changeset d5a9ff0ae110 (bug 1209273) for test failures in browser_rules_completion-new-property_02.js 2016-04-01 11:58:12 +02:00
Tobias Schneider af80c17051 Bug 1209273 - Part 1 - Support for color-adjust CSS property. r=dbaron 2016-03-10 10:51:00 +01:00