Xidorn Quan
59e42a1031
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
...
MozReview-Commit-ID: K3uFwojy6FZ
2016-05-10 18:44:05 +10:00
Xidorn Quan
cdfeba343a
Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
...
MozReview-Commit-ID: Xh50g9hsH9
2016-05-10 18:44:05 +10:00
Xidorn Quan
f96a220cd5
Bug 1269975 part 2 - Rename nsCSSParser::PropertyEnabledState() to EnabledState(). r=heycam
...
MozReview-Commit-ID: 4JESxsOYN4w
2016-05-10 18:44:05 +10:00
Xidorn Quan
90f7282451
Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
...
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 18:44:05 +10:00
Ryan VanderMeulen
39f3eff072
Backed out 4 changesets (bug 1269975) for bustage.
...
Backed out changeset a55ecedea260 (bug 1269975)
Backed out changeset 5321545b938c (bug 1269975)
Backed out changeset 7e4a2ee61ef3 (bug 1269975)
Backed out changeset d181f8e7e4c3 (bug 1269975)
2016-05-10 00:08:54 -04:00
Ryan VanderMeulen
32bd5582e6
Backed out changesets 4e949692600a and 6f7ecae8e663 (bug 1269976) for bustage.
2016-05-09 23:58:49 -04:00
Xidorn Quan
eab81e400b
Bug 1269976 part 2 - Add nsCSSPseudoElements::IsEnabled() and make GetPseudoType take CSSEnabledState. r=heycam
...
MozReview-Commit-ID: K3uFwojy6FZ
2016-05-10 13:36:25 +10:00
Xidorn Quan
110f9c2db9
Bug 1269975 part 4 - Make nsCSSPseudoClasses::GetPseudoType() take CSSEnabledState rather than two bool params. r=heycam
...
MozReview-Commit-ID: Xh50g9hsH9
2016-05-10 13:36:25 +10:00
Xidorn Quan
9945de7ecc
Bug 1269975 part 2 - Rename nsCSSParser::PropertyEnabledState() to EnabledState(). r=heycam
...
MozReview-Commit-ID: 4JESxsOYN4w
2016-05-10 13:36:25 +10:00
Xidorn Quan
38e4a7340d
Bug 1269975 part 1 - Move nsCSSProps::EnabledState to a top level enum class mozilla::CSSEnabledState. r=heycam
...
MozReview-Commit-ID: 3KH5cqDFzUI
2016-05-10 13:36:25 +10:00
L. David Baron
64747a2c0a
Bug 567283 patch 4 - Support #rgba and #rrggbbaa colors in CSS. r=xidorn
...
This adds support for #rgba and #rrggbbaa colors to CSS. This feature
is specified in https://drafts.csswg.org/css-color-4/#hex-notation .
This adds new types to nsCSSValue so that we can serialize the syntax
that was specified, as we do for other distinctions in how colors are
specified.
It does not change the behavior of the hashless color quirk, which
continues to support only 3 and 6 digit colors as specified in
https://quirks.spec.whatwg.org/#the-hashless-hex-color-quirk (step 4).
This changes property_database.js to remove various uses of 4 and 8
digit colors as invalid values. It then adds them in slightly fewer
places as valid values, but more thoroughly testing both initial and
non-initial values on 'color'.
It marks two canvas tests explicitly testing this feature as no longer
known to fail by removing their .ini files.
Finally, it adjusts the web platform test testing the hashless color
quirk to no longer treat 4 and 8 digit colors with hashes as invalid
values. Removing the relevant test items seems like the right thing
since they're in a section where 3 and 6 digit colors were skipped but
other lengths were tested. Modifying this imported test is OK since:
<jgraham> dbaron: Commit the change you want to m-c, it is
(semi-)automatically upstreamed every so often (typically
about once a week)
MozReview-Commit-ID: IFq4HxaRkil
2016-05-08 22:16:42 -07:00
L. David Baron
b2ca647e3b
Bug 567283 patch 2 - Rename NS_HexToRGB to NS_HexToRGBA and add parameter saying whether 4 and 8 digit colors are allowed. r=xidorn
...
This patch tells all callers to use the existing behavior, so it is
intended not to change behavior. Callers that will be modified in later
patches are marked with "FIXME" comments that will be removed in those
later patches (patches 3 and 4).
MozReview-Commit-ID: FaLryfxaeHv
2016-05-08 22:16:41 -07:00
Astley Chen
a1396fd539
Bug 859301 - Part 1 - unprefix :dir. r=dbaron
...
MozReview-Commit-ID: EyKKRrhARI0
2016-05-05 18:10:57 +08:00
Xidorn Quan
0ddba99531
Bug 1268749 part 2 - Make pseudo-classes able to present conditionally like properties. r=heycam
...
MozReview-Commit-ID: 6D3UPQGrS71
2016-05-04 15:09:36 +10:00
Boris Chiou
40dcade5a5
Bug 1250820 - Part 3: Replace notPseudo with negation. r=heycam
...
notPseudo is easy to be confused with NotPseudo, so using negation would be
better.
MozReview-Commit-ID: BtlS1A5YgD3
2016-04-22 22:09:20 +08:00
Boris Chiou
37ef670bc3
Bug 1250820 - Part 2: Replace nsCSSPseudoClasses::Type with CSSPseudoClassType. r=heycam
...
MozReview-Commit-ID: 6w4SoaS7gRi
2016-04-22 21:38:46 +08:00
Boris Chiou
861e9b960e
Bug 1250820 - Part 1: Define scoped enum for CSSPseudoClass::Type. r=heycam
...
MozReview-Commit-ID: 6RHot1LaUOs
2016-04-22 20:40:45 +08:00
Markus Stange
e3f2c79921
Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
...
MozReview-Commit-ID: JgZIoj43aZv
2016-04-29 14:12:10 -04:00
Wes Kocher
1a290e54b0
Backed out 10 changesets (bug 550426) for failures in browser_css_autocompletion.js
...
Backed out changeset 6ff2e12738ca (bug 550426)
Backed out changeset 10ee68fd318e (bug 550426)
Backed out changeset 324f4f602730 (bug 550426)
Backed out changeset 81306e78ccaa (bug 550426)
Backed out changeset 44b820f6fb3d (bug 550426)
Backed out changeset 987b6ff7262e (bug 550426)
Backed out changeset d505646974c7 (bug 550426)
Backed out changeset 2162ecc18859 (bug 550426)
Backed out changeset 1a030aba3acc (bug 550426)
Backed out changeset 3655883e7faf (bug 550426)
MozReview-Commit-ID: AlUihrLtlhL
2016-04-29 14:47:43 -07:00
Markus Stange
f6b7c79b01
Bug 550426 - Add support for {background,mask}-position-{x,y}, most of the style system changes. r=dbaron
...
MozReview-Commit-ID: JgZIoj43aZv
2016-04-29 14:12:10 -04:00
Mats Palmgren
ba912aa93a
Bug 1264067 - [css-grid] 'fr' min-sizing is now invalid. r=dholbert
2016-04-25 18:43:04 +02:00
Daniel Holbert
5f30e9b990
Bug 1248708 followup: Use MOZ_ARRAY_LENGTH instead of ArrayLength for expression used at compile time, to fix MSVC 2013 bustage. (trivial/bustage-fix, no review)
...
MozReview-Commit-ID: A1thxdXB2RT
2016-04-25 09:06:54 -07:00
Jeremy Chen
753e4f7268
Bug 1248708 - Part1: parse and compute -webkit-text-stroke property. r=heycam
2016-04-23 01:40:39 +08:00
Xidorn Quan
15df861e15
Bug 1097499 part 3 - Add a separate anonbox for text nodes. r=heycam
...
MozReview-Commit-ID: 1GfoFEGhyka
2016-04-22 09:18:41 +10:00
Xidorn Quan
0b1ae1ba76
Bug 1097499 part 1 - Control support of 'text-combine-upright: digits' via a separate pref. r=heycam
...
MozReview-Commit-ID: JerTsxaQCL4
2016-04-22 09:18:41 +10:00
Mats Palmgren
4d2666847a
Bug 1266250 part 1 - [css-grid] Resurrect the 'grid-template' shorthand (backs out bug 1253529). r=dholbert
2016-04-21 16:18:34 +02:00
Mats Palmgren
4bb6e3f394
Bug 1265001 part 1 - Accept uppercase N when parsing An+B. r=heycam
2016-04-19 22:12:16 +02:00
Jonathan Watt
cac371256e
Bug 1264317 - Make the basic shape clip-path clipping use nsCSSValue::Array instead of nsCSSValueList. r=dholbert
2016-04-11 08:23:12 +01:00
CJKu
5e1f61012e
Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycam
...
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-14 16:28:06 +08:00
Carsten "Tomcat" Book
5cfbb0a7a0
Backed out changeset b68e6d1cf93a (bug 759568) for reftest failures
2016-04-14 08:57:57 +02:00
CJKu
ce2b9eb21b
Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycom
...
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-14 12:45:37 +08:00
Sebastian Hengst
52bb9aaf69
Backed out changeset 7ec8bfb9bbd4 (bug 759568) for failures in test_all_shorthand.html and more. r=backout
2016-04-12 17:55:52 +02:00
CJKu
0fadc233ab
Bug 759568 - Part 1. Parse background-clip:text; r=dholbert r=heycom
...
MozReview-Commit-ID: BPuQjWYvAuj
2016-04-12 21:58:21 +08:00
Edgar Chen
4d7edb95fd
Bug 1237633 - Part 1: Percentages are not allowed in a <source-size-value>. r=jdm
...
MozReview-Commit-ID: E7XUZzq3jr1
2016-03-30 16:31:09 +08:00
Ting-Yu Lin
72f385ecc0
Bug 1259889 Part 1 - Add @supports -moz-bool-pref for internal-only style sheets. r=heycam
...
This is a internal-only syntax for guarding rules from a boolean
preference. Nothing causes @supports rules to be re-evaluated except
html.css registered in Part 2.
This is needed for rendering the disclosure triangle of the
summary element by using "display: list-item".
Usage example:
@supports -moz-bool-pref("dom.details_element.enabled") {
/* css rules */
}
MozReview-Commit-ID: HDCa8zHxYTA
2016-04-01 21:11:11 +08:00
Nicholas Nethercote
7f7c26ed62
Bug 1260871 - Remove do_GetAtom() and rename NS_NewAtom() as NS_Atomize(). r=erahm.
...
do_GetAtom() is currently just a synonym for NS_NewAtom().
2016-03-29 10:09:43 +11:00
Mats Palmgren
893f3ce621
Bug 1025267 - Make some -moz- prefixed pseudo-classes chrome-only. r=bz
2016-04-01 02:08:15 +02:00
Daniel Holbert
190fbf0926
Bug 1236400 part 3: If webkit prefix support is enabled, skip CSS Parser code that converts "display: -webkit-box" directly to "display: flex". r=mats
...
This makes "display: -webkit-box" & "display: -webkit-inline-box" into bona
fide "display" values (instead of just aliases), when webkit prefix support is
enabled, and allows us to actually exercise the code added in the earlier
patches on this bug. (Note that when webkit prefix support is *disabled*, our
CSS Unprefixing Service strategy will instead have an opportunity to take
effect, for whitelisted sites, and it'll continue to convert "-webkit-box" to
"flex".)
MozReview-Commit-ID: BV93xs4ddbK
2016-03-24 09:55:11 -07:00
Daniel Holbert
c073282a16
Bug 1257661: Make the CSS parser accept "display:-webkit-inline-box" as an alias for "display:inline-flex". r=heycam
...
(We already map "display:-webkit-box" to "display:flex" in this way. This is just extending that existing support to cover the inline version.)
MozReview-Commit-ID: F7gH3QMSmn0
2016-03-17 16:11:28 -07:00
Xidorn Quan
c63e0e67d0
Bug 968761 - Treat nested calc() as plain parenthesis. r=dbaron
...
MozReview-Commit-ID: Lwd56FaaDWx
2016-03-03 10:05:37 +08:00
Mats Palmgren
43ba9798d7
Bug 1248371 - [css-grid] Require that each track has a definite min- or max-sizing function when the track list contains a repeat(auto-fill/fit) track. r=dholbert
2016-03-17 17:27:55 +01:00
Morris Tseng
8942e44bce
Bug 594933 - Part 2: Add support for calc() to line-height. r=dbaron
2016-03-15 10:37:37 +08:00
Morris Tseng
8078441e67
Bug 594933 - Part 1: Let calc() supports number. r=dbaron
2016-03-15 10:37:37 +08:00
Mats Palmgren
da36c44e1d
Bug 1253529 part 2 - [css-grid] Remove the 'grid-template' shorthand. r=dholbert
2016-03-08 23:03:26 +01:00
Phil Ringnalda
712fd4e2ee
Back out 9 changesets (bug 801176) for frequent crashes in test_offscreencanvas_dynamic_fallback.html
...
Backed out changeset 82320c900699 (bug 801176)
Backed out changeset 624fb8512ba5 (bug 801176)
Backed out changeset a2a7b1c4dc5b (bug 801176)
Backed out changeset e210473d793c (bug 801176)
Backed out changeset 0fb279e041e1 (bug 801176)
Backed out changeset c090dc98c670 (bug 801176)
Backed out changeset fc509e59a0cd (bug 801176)
Backed out changeset 134a8c56335a (bug 801176)
Backed out changeset 2022afa9aef2 (bug 801176)
2016-03-05 07:20:47 -08:00
vincentliu
1bc14e3692
Bug 801176 - part3-v6: Keep CSSParser operations as threading safe. r=heycam
...
---
dom/canvas/CanvasRenderingContext2D.cpp | 13 +++++---
layout/style/ErrorReporter.cpp | 9 +++++-
layout/style/nsCSSParser.cpp | 55 ++++++++++++++++++++-------------
3 files changed, 51 insertions(+), 26 deletions(-)
2016-03-04 15:22:58 +08:00
Mats Palmgren
b78b3535bd
Bug 1251999 - [css-grid] Update <fixed-size> parsing to the latest spec. r=dholbert
2016-03-02 23:39:34 +01:00
CJKu
3c9eb1e509
Bug 1243734 - Part 1. Use MOZ_ENABLE_MASK_AS_SHORTHAND to define the type of mask property; r=dbaron
...
MozReview-Commit-ID: FkPgdh8YHOC
2016-03-01 19:52:17 +08:00
Bogdan Postelnicu
f8e4ad0de5
Bug 1252039 - corrected MOZ_ASSERT expression in SeparatorRequiredBetweenTokens. r=dbaron
...
MozReview-Commit-ID: 89XUK8hKSSE
2016-02-29 14:26:22 +02:00
CJKu
07b79cda11
Bug 1224424 - Replace mask-mode:auto keyword by mask-mode:match-source; r=dbaron
...
MozReview-Commit-ID: FKEJI1rHTIA
2016-02-25 17:31:47 +08:00