Commit Graph
1251 Commits
Author SHA1 Message Date
Hiroyuki Ikezoe f40c9f532a Bug 1340344 - Calmp hue value in finite float range. r=dholbert
MozReview-Commit-ID: ItxwcKjpHyO
2017-02-18 10:43:24 +09:00
Carsten "Tomcat" Book 242fd05a22 merge mozilla-inbound to mozilla-central a=merge 2017-02-15 12:21:44 +01:00
Manish Goregaokar 67af1290e7 Bug 1339615 - Don't reset mIsSVGMode in CSSParserImpl::ReleaseScanner; r=bz
MozReview-Commit-ID: DVDcrMPi6Me
2017-02-14 14:16:36 -08:00
Daniel Holbert d74b889d67 Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
MozReview-Commit-ID: 2rZ9z0BgRvN
2017-02-14 11:23:11 -08:00
Wes Kocher 1ffdd8b336 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1c81Eie63Pe
2017-02-14 14:45:40 -08:00
Manish Goregaokar 4c7a50eef7 Bug 1339252: Allow comments in SVG presentation attributes; r=bz
MozReview-Commit-ID: AfxWHvC5Byw
2017-02-13 16:02:46 -08:00
Jeff Walden a6ec779698 Bug 1287006 - Don't pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer, in layout/-related code. r=bz 2017-02-13 09:07:40 -08:00
Iris Hsiao 70851fa9ed Backed out changeset 8379a33c1790 (bug 1339252) for valgrind test failure 2017-02-14 12:40:40 +08:00
Manish Goregaokar ae4415b8a6 Bug 1339252: Allow comments in SVG presentation attributes; r=bz
MozReview-Commit-ID: AfxWHvC5Byw
2017-02-13 16:02:46 -08:00
Daniel Holbert 5b4494ab24 Bug 1259348 part 2: Simplify logic in CSSParserImpl::LookupKeywordPrefixAware. r=mats
MozReview-Commit-ID: D9WoQ9vXTGJ
2017-02-03 14:56:15 -08:00
Daniel Holbert b0979d65a2 Bug 1259348 part 1: Remove CSSUnprefixingService.js and associated code (since it's been supplanted by built-in webkit-prefixed-CSS support). r=mats
MozReview-Commit-ID: CXCJJWhHc8G
2017-02-03 14:56:13 -08:00
L. David Baron a68ac77081 Bug 1333158 - Remove StyleSheet::GetDocument in favor of the identical GetAssociatedDocument. r=bz
(GetAssociatedDocument was recently renamed in bug 1332353.)

Note that the inconsistency between the Rule and CSSParser method names
is slightly bothersome.

MozReview-Commit-ID: L1SBIV86H4s
2017-01-23 13:12:03 -08:00
Astley Chen 04c6e854f0 Bug 1331296 : Part 4 - Remove CSS parser support of -moz-calc(). r=heycam
MozReview-Commit-ID: k5ENlCAXZf
2017-01-18 10:50:31 +08:00
Wes Kocher 51b6d29b6e Merge m-c to autoland, a=merge
MozReview-Commit-ID: LGnPwvWCKe4
2016-12-30 16:59:49 -08:00
Xidorn Quan 807d0f4613 Bug 894245 part 2 - Reject unknown enum color in CSS parser. r=dholbert
MozReview-Commit-ID: 6jfNESnFde5
2016-12-30 14:52:10 +11:00
Daniel Holbert 92ffadedd3 Bug 1326457: Remove redundant check for eCSSKeyword_UNKNOWN at callsites to nsCSSProps::FindKeyword(). r=xidorn
nsCSSProps::FindKeyword() has always failed when passed eCSSKeyword_UNKNOWN,
but it didn't used to have a fast-path for this sentinel value -- it used to
walk the whole array before failing. So it used to make sense to have a
dedicated check for it at the callsites, to avoid an unnecessary array
traversal. But now, there's an early-return in FindKeyword() (or actually in
its helper, FindIndexOfKeyword()) which catches eCSSKeyword_UNKNOWN right away,
before it walks the array. So there's no benefit to having a dedicated check at
the callsites anymore.

MozReview-Commit-ID: FOX48YZMomd
2016-12-30 12:03:08 -08:00
Emilio Cobos Álvarez 6d7b2e91b9 Bug 1304792: stylo: Implement @import. r=heycam
MozReview-Commit-ID: Hw1V66JxIBD
Signed-off-by: Emilio Cobos Álvarez <[email protected]>
2016-12-30 16:30:41 +01:00
Emilio Cobos Álvarez 88c137a305 Bug 1304792: Minimal Loader and CSSParser cleanup. r=heycam
MozReview-Commit-ID: DYOh8BtK7NT
Signed-off-by: Emilio Cobos Álvarez <[email protected]>
2016-12-30 16:30:41 +01:00
Xidorn Quan 1f17806a81 Bug 1326125 - Rename enum version of SetIntValue to SetEnumValue. r=heycam
MozReview-Commit-ID: EbXK827IRFP
2016-12-29 10:22:49 +11:00
cku b00f9ec88d Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
MozReview-Commit-ID: DYokhDa9fFQ
2016-11-22 15:30:01 +08:00
Ethan Lin 21e43f842d Bug 1303623 - Part3. Parser changes. r=heycam
MozReview-Commit-ID: AQz596lVFnd
2016-10-19 15:49:10 +08:00
Ethan Lin a4566c4e99 Bug 1303623 - Part2. Style structure changes. r=heycam
MozReview-Commit-ID: Lkdd5nAQRwG
2016-10-19 15:48:47 +08:00
Xidorn Quan cc24e912e2 Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
MozReview-Commit-ID: DkrMkzMq5qM
2016-12-21 18:16:50 +11:00
Xidorn Quan 1125f5e9ab Bug 1323919 - Rename nsIMediaList.h to nsMediaList.h. r=heycam
MozReview-Commit-ID: Ake5srkKJbf
2016-12-16 14:50:36 +11:00
Emilio Cobos Álvarez 4afebc68ce Bug 1029867: Remove useless nsCSSParser::mHTMLMediaMode. r=heycam
MozReview-Commit-ID: AFtd0G4oP3R
2016-12-13 11:39:32 +01:00
Jonathan Kew 1dbd9de823 Bug 1321022 pt 4.2 - Fix up some nits in existing font-feature-settings code as per review comments on the new font-variation-settings code. r=dholbert 2016-12-03 12:18:39 +00:00
Jonathan Kew 458d6a28c3 Bug 1321022 pt 4 - Implement CSS parsing of the font-variations-setting property, storing the value into nsFont. r=dholbert 2016-12-03 12:18:36 +00:00
Jonathan Kew f74cd430d3 Bug 1320474 - Allow <string> in addition to <custom-ident> (excluding css-wide keywords and 'none') for css-animation keyframe names. r=birtles 2016-11-29 12:58:44 +00:00
Mats Palmgren f428026d58 Bug 1319958 - [css-align][css-grid][css-flexbox] Implement the place-items/self/content shorthands. r=dholbert 2016-11-28 00:44:22 +01:00
Astley Chen 9286879edd Bug 1270406 - Remove :-moz-dir support. r=xidorn
MozReview-Commit-ID: HRBj6YF4hZS
2016-11-22 23:05:18 +08:00
Jonathan Chan df2a0d2f0e Bug 1293743 - Part 4: Implement ParseVariant for VARIANT_INTEGER | VARIANT_CALC (i.e. pure-integer calc()s). r=dbaron,dholbert
MozReview-Commit-ID: 5vKgaH3dN5X
2016-10-17 21:32:19 -04:00
Jonathan Chan 6689045b18 Bug 1293743 - Part 1: Move nsCSSParser's ReduceNumberCalcOps to CSSCalc.h as mozilla::css::ReduceNumberCalcOps. r=dholbert
Bug 1273706 (Properties & Values) uses ReduceNumberCalcOps in nsRuleNode to
compute <number>-typed calc() expressions.

MozReview-Commit-ID: CsZkJBFOufm
2016-10-17 20:49:15 -04:00
Mats Palmgren 7b03cc4895 Bug 1313254 part 1 - [css-align] Change "baseline|last-baseline" to "[ first | last ]? baseline". r=dholbert 2016-11-05 02:57:07 +01:00
Phil Ringnalda e9271a5e61 Merge m-i to m-c, a=merge
MozReview-Commit-ID: Hm1RxN6OaoZ
2016-11-03 19:32:48 -07:00
Xidorn Quan 7c1df9c4d7 Bug 1314531 - Disallow xul tree pseudo-elements with user action pseudo-classes. r=heycam
MozReview-Commit-ID: 85DDwDl0oYg
2016-11-03 11:21:19 +11:00
Xidorn Quan 6d9ed7b946 Bug 1294299 part 8 - Refactor interface provided by css::Declaration. r=heycam
The main targets of this refactor are:
1. Move most of the logic of distinguishing properties and custom
   properties from nsDOMCSSDeclaration into css::Declaration, which
   gives ServoDeclarationBlock more flexibility to implement.
2. Rename those methods of css::Declaration to provide a clear interface
   which makes sense for implementing in ServoDeclarationBlock, and also
   avoid method overload, which can impede the forward macro, on them.

MozReview-Commit-ID: 2cCqF855TVK
2016-11-03 14:41:02 +11:00
Tobias Schneider 0b1c8478a1 Bug 1243846 - Implement Intersection Observer API. r=mrbkap, r=mstange 2016-10-28 10:24:00 -04:00
Mats Palmgren 24f0f57b91 Bug 1305244 part 2 - [css-grid] Represent single-value <flex> track sizes as minmax(auto, <flex>) internally. r=dholbert 2016-10-29 01:30:10 +02:00
cku dcd73f0282 Bug 1308963 - Part 3. Set initial value of mask-position as (0, 0). r=xidorn
MozReview-Commit-ID: DN7q6FrGEMA
2016-10-13 23:13:11 +08:00
cku 42b203b91b Bug 1308963 - Part 1. Set initial value of mask-repeat as repeat. r=xidorn
MozReview-Commit-ID: 8VrPiEyKF4n
2016-10-13 22:57:10 +08:00
JerryShih 88c1b36980 Bug 1295456 - Use author-specified css color function name for css value serialization. r=dholbert
If the color is fully opaque, omit the 'a' suffix of color function name (e.g. just use 'rgb' or 'hsl').
Otherwise, show the original author-specified function name for serialization.

MozReview-Commit-ID: 4XgkvV2jDRC
2016-10-16 03:15:36 +08:00
JerryShih 021bb7a776 Bug 1295456 - Remove now-unused single-arg ParseColorOpacity functions from nsCSSParser. r=dholbert 2016-10-16 03:15:36 +08:00
JerryShih 7a3abdc8ec Bug 1295456 - Support <angle> value for hue component in CSS hsl() color function. r=dholbert
MozReview-Commit-ID: EYhbAEOlpLm
2016-10-16 03:15:36 +08:00
JerryShih 0947e3f60c Bug 1295456 - Change CSS color function hsl() to be an alias of hsla() and support css-color-4 comma-less expression. r=dholbert
MozReview-Commit-ID: 6jBTVVOxwiP
2016-10-16 03:15:36 +08:00
JerryShih ddfae63b4c Bug 1295456 - Change CSS color function rgb() to be an alias of rgba() and support css-color-4 comma-less expression. r=dholbert 2016-10-16 03:15:36 +08:00
JerryShih 2075573edc Bug 1295456 - Support percentage opacity value in CSS color functions. r=dholbert 2016-10-16 03:15:35 +08:00
Xidorn Quan 449c420d52 Bug 1306214 part 3 - Remove -moz-use-text-color from Gecko. r=heycam
MozReview-Commit-ID: EEYCB5jUH9L
2016-09-29 17:47:22 +10:00
Xidorn Quan 7ba350b0a6 Bug 1304302 part 8 - Change include of {CSS,Servo}StyleSheet.h to StyleSheetInlines.h. r=heycam
It is a preparation for later patch which moves functions from those
classes into StyleSheet. Some of the functions are better defined in
StyleSheetInlines.h.

This commit is generated by the following command:

find . \( -name '*.h' -or -name '*.cpp' \) -not -name '*StyleSheet*' -exec sed -i -b \
  -e '/^#include/ s_/\(CSS\|Servo\)StyleSheet\.h_/StyleSheetInlines.h_' \
  -e '1,\_^#include "mozilla/StyleSheetInlines.h"_ ! { \_^#include "mozilla/StyleSheetInlines.h"_d }' {} +

MozReview-Commit-ID: 54H5x27Pmso
2016-09-26 22:03:25 +10:00
Julian Seward 72dceb1a3b Bug 1301856 - Spurious valgrind warning in in CSSParserImpl::ParseGridLine() with gcc 5.3. [email protected]. 2016-09-14 15:04:30 +02:00
Thomas Wisniewski e3967a6e44 Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz 2016-09-07 19:38:38 -04:00