Simon Sapin
79cca48a18
Bug 988780 - Refactor ParseGridTemplateAfterString() to not use CheckEndProperty() (layout/style/nsCSSParser.cpp). r=dbaron
2014-03-27 02:24:00 +01:00
Cameron McCormack
efeaf8eada
Bug 985838 - Change custom property name prefix from "var-" to "--" and allow identifiers to begin with "--". r=dbaron
2014-04-02 14:32:16 +11:00
L. David Baron
dbf45497a8
Bug 989560 patch 4 - Remove most uses of CheckEndProperty()/ExpectEndProperty(). r=heycam
2014-04-01 11:53:32 -07:00
L. David Baron
b0693d58f1
Bug 989560 patch 3 - Add one more ExpectEndProperty() call that is needed for variables. r=heycam
...
This adds a check that is currently present in most but not all
codepaths leading to this point, but which patch 4 will remove from many
of those codepaths.
2014-04-01 11:53:32 -07:00
L. David Baron
e176d7070c
Bug 989560 patch 2 - Don't accept an empty value for font-variant-alternates. r=heycam
...
Had patch 3 not been present, this would be needed to prevent a test
failure with patch 4 (which removes the ExpectEndProperty check from the
CSS_PROPERTY_PARSE_VALUE case in
CSSParserImpl::ParseProperty(nsCSSProperty) since its callers handle
checking for appropriate endings), since the way this function returns
success for empty values leads var() functions alone inside
font-variant-alternates to be rejected, since
CSSParserImpl::ParseProperty(nsCSSProperty) won't try reparsing with
variables.
2014-04-01 11:53:32 -07:00
L. David Baron
38512d8749
Bug 989560 patch 1 - Make it an error to have an empty item within an animation or transition shorthand. r=heycam
...
This is needed to make the test in the next patch (which tests that we
reject entirely-empty properties) pass.
2014-04-01 11:53:31 -07:00
L. David Baron
e19068ec03
Bug 988702 patch 3 - Fix missing UngetToken() calls in ParseCounterData(), and avoid evil CheckEndProperty() calls while I'm there. r=heycam
...
I tested that test_property_syntax_errors.html gives a failure on the
new test without the patch, and that the failure is not present with the
patch.
2014-04-01 11:53:31 -07:00
Simon Sapin
30a2740552
Bug 978478 part 2: Add support for repeat() in <track-list> (CSS Grid) r=dholbert
2014-03-31 22:49:51 -07:00
Simon Sapin
a43b6fb7ef
Bug 978478 part 1: Add support for repeat() in <line-name-list> (CSS Grid) r=dholbert
2014-03-31 22:49:45 -07:00
Simon Sapin
be63f95a8a
Bug 983175 - Part 2: Add style system support for 'subgrid' in the grid-template* properties. r=dholbert
...
http://dev.w3.org/csswg/css-grid/#subgrids
2014-03-27 11:54:40 -04:00
Simon Sapin
92a6d809c4
Bug 983175 - Part 1: Refactor ParseGridLineNames (CSS Grid). r=dholbert
...
Return a CSSParseResult rather than a bool to distinguish between
an empty list of names '()' and the lack of a list.
2014-03-27 11:54:40 -04:00
Simon Sapin
f31e04d8a9
Bug 983175 - Part 0: Rename nsParsingStatus to CSSParseResult. r=dbaron
2014-03-27 11:54:40 -04:00
Simon Sapin
b0fe5fc3db
Bug 984728 - Refactor grid-auto-flow parsing to use ParseBitmaskValues; r=dholbert
2014-03-24 14:26:04 +01:00
Simon Sapin
b5944e6405
Bug 984760 part 2: Use GridTemplateAreasValue though nsRefPtr pointers. r=dholbert
2014-03-21 23:06:16 +08:00
Simon Sapin
ef6efacf40
Bug 984760 part 1: Rename nsCSSValueGridTemplateAreas to css::GridTemplateAreasValue. r=dholbert
2014-03-21 23:06:13 +08:00
Simon Sapin
3f4edec9c7
Bug 981752 part 3: Add the grid shorthand. r=dholbert
2014-03-21 23:06:12 +08:00
Simon Sapin
66ccfed234
Bug 981752 part 2c: Add the grid-template shorthand. r=dholbert
2014-03-21 23:06:12 +08:00
Simon Sapin
e8764835fa
Bug 981752 part 2b: Refactor grid-template-{columns,rows} parsing, preparing for the grid-template shorthand. r=dholbert
...
... and a bit of grid-auto-flow, for the grid shorthand.
* Avoid using CheckEndProperty() when possible
* Distinguish between "error" and "not a <track-size>"
* Split out parsing of a <track-list>, given its initial [<line-names>?]
2014-03-21 23:06:12 +08:00
Simon Sapin
d2b6314b7e
Bug 981752 part 1: Add the grid-column, grid-row and grid-area shorthands. r=dholbert
2014-03-21 23:06:12 +08:00
Simon Sapin
6a56bcdf93
Bug 984241: Refactor/optimize grid-template-areas, store number of columns. r=dholbert
...
In the parsing code for grid-template-areas:
* Move some of the processing into the helper function,
so that the grid-template will not have to duplicate it.
* Store the number of parsed columns (and rows),
as they will affect the size of the "explicit grid".
* Use a hash table instead of a linear scan to avoid O(n²)-ish complexity.
2014-03-18 22:05:49 +08:00
Benoit Jacob
23a1ea4c91
Bug 977757 - 2/3 - add nsCSSProps::eEnabledInChromeOrCertifiedApp bit, and use it for will-change - r=dbaron,bz
2014-03-07 12:14:25 -05:00
Benoit Jacob
162c30b16f
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-07 12:14:23 -05:00
Peter Chang
1e4d8e1868
backout of rev 45253e02bde3, fd02f1217e4c, 75217485ce5a b=981804
2014-03-12 15:16:20 +08:00
Simon Sapin
b44cf36696
Bug 976787 part 5: Add grid-{column,row}-{start,end} and grid-auto-position to the style system. r=dholbert
2014-03-10 15:54:17 -07:00
Simon Sapin
e04f66defa
Bug 976787 part 4: Add the grid-auto-flow property to the style system. r=dholbert
2014-03-10 15:54:16 -07:00
Simon Sapin
2e4ccc6e82
Bug 976787 part 3: Add the grid-auto-{columns,rows} properties to the style system. r=dholbert
2014-03-10 15:54:15 -07:00
Simon Sapin
a1c124e6f3
Bug 976787 part 2: Add the grid-template-areas property to the style system. r=dholbert
2014-03-10 15:54:14 -07:00
Simon Sapin
ed42775975
Bug 976787 part 1: Add the grid-template-{columns,rows} properties to the style system. r=dholbert
2014-03-10 15:54:13 -07:00
Benoit Jacob
91655cdf5c
Bug 977757 - 2/3 - add nsCSSProps::eEnabledInChromeOrCertifiedApp bit, and use it for will-change - r=dbaron,bz
2014-03-07 12:14:25 -05:00
Benoit Jacob
9c93a3d8aa
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-07 12:14:23 -05:00
Ryan VanderMeulen
02ecb5a5d6
Backed out changesets d65a803d2b9a, 9456495d6121, and 73c710ddf3d8 (bug 977757) for Gaia UI test failures.
...
CLOSED TREE
2014-03-06 13:10:20 -05:00
Benoit Jacob
05c4cd6575
Bug 977757 - 2/3 - add nsCSSProps::eEnabledInChromeOrCertifiedApp bit, and use it for will-change - r=dbaron,bz
2014-03-06 11:38:19 -05:00
Benoit Jacob
323054beb0
Bug 977757 - 1/3 - make nsCSSProps::EnabledState a bitfield - r=dbaron,bz
2014-03-06 11:38:17 -05:00
L. David Baron
a632cf17a5
Bug 978903: Fix some uninitialized variable warnings in the CSS parser. r=heycam
...
The first provides a reasonable default (failure to parse) for the case
of an unknown value type (which should never happen).
The second reorders two failure checks so that the one that returns
early when units is uninitialized happens before the one that looks at
units.
2014-03-04 20:13:20 -08:00
Reuben Morais
f954df12ae
Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen
...
--HG--
rename : content/base/public/nsINameSpaceManager.h => content/base/public/nsNameSpaceManager.h
2014-02-27 20:04:46 -03:00
Mats Palmgren
c8c26168e5
Bug 966992 - Add a CSS_PROPERTY_ALWAYS_ENABLED_IN_UA_SHEETS bit for properties that are enabled by a pref but that are always enabled in UA sheets. r=cam
2014-02-22 01:18:23 +00:00
Ehsan Akhgari
8577cd5685
Backed out 5 changesets (bug 966992, bug 965237) because of a PGO only build failure on Linux, landed on a CLOSED TREE
...
Backed out changeset f11cad93ceee (bug 966992)
Backed out changeset c84d530c9a51 (bug 965237)
Backed out changeset 740b13866bac (bug 966992)
Backed out changeset 8c3420cc77d8 (bug 966992)
Backed out changeset 7ddfc587edda (bug 966992)
2014-02-19 13:28:33 -05:00
Mats Palmgren
ee63769de0
Bug 966992 - Add a CSS_PROPERTY_ALWAYS_ENABLED_IN_UA_SHEETS bit for properties that are enabled by a pref but that are always enabled in UA sheets. r=cam
2014-02-19 14:14:52 +00:00
Robert O'Callahan
70770254da
Bug 968118. Make nsCSSProps keyword tables be int16_t instead of int32_t for a small space win. r=heycam
...
--HG--
extra : rebase_source : 94cf09d0d96dd3c8e2a9528f5d242e36e85fcf75
2014-02-06 00:10:44 +13:00
Nicholas Cameron
cdcba9070e
Bug 700926. border-image-source css parsing. r=roc
2014-01-31 16:36:42 +13:00
Birunthan Mohanathas
e81a8f702d
Bug 828300 - Replace NS_ARRAY_LENGTH with mozilla::ArrayLength/MOZ_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Benoit Girard ext:(%20and%20Benoit%20Jacob%20%3Cbjacob%40mozilla.com%3E)
297226674b
Bug 940842 - 1/3 - Add will-change CSS property - r=dbaron
...
The current spec draft is at:
http://tabatkins.github.io/specs/css-will-change/
This CSS property is disabled by default and can be enabled by toggling:
layout.css.will-change.enabled
2013-11-22 11:48:27 -05:00
Nick Lebedev
5df6a34bc1
Bug 795567 - Part 1: Add touch-action css property to the style system. r=dbaron
2014-01-15 10:03:15 -05:00
Frédéric Wang
7173c75ff7
Bug 838506 - Part 1: Add a -moz-math-display property. r=heycam
2014-01-14 09:39:50 -05:00
Ehsan Akhgari
ebd358dfd7
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Cameron McCormack
91dfb34f7f
Bug 731271 - Part 3: Store parsed CSS color values in their original syntactic form. r=dbaron
2013-09-16 09:35:48 +10:00
Cameron McCormack
f89609e8d3
Bug 731271 - Part 2: Add new nsCSSValue units to store colors in their original syntactic form. r=dbaron
2013-09-16 09:35:48 +10:00
Cameron McCormack
4e156d6ca3
Bug 731271 - Part 1: Rename eCSSUnit_Color to eCSSUnit_RGBAColor. r=dbaron
2013-09-16 09:35:48 +10:00
Masatoshi Kimura
3f45c76316
Bug 941300 - Make circle radial-gradient invalid if two radii values are given. r=dbaron
2013-12-14 13:22:48 +09:00
Cameron McCormack
ef496057e2
Bug 773296 - Part 27: Support 'unset' in CSS variables. r=dbaron
2013-12-12 13:09:47 +11:00