Hiroyuki Ikezoe
722280270f
Bug 1340344 - Calmp hue value in finite float range. r=dholbert
...
MozReview-Commit-ID: ItxwcKjpHyO
--HG--
extra : rebase_source : 8ffa77db0272d1ac836b395736d2d8e4ddb233e3
2017-02-18 10:43:24 +09:00
Carsten "Tomcat" Book
ed3d8d8286
merge mozilla-inbound to mozilla-central a=merge
2017-02-15 12:21:44 +01:00
Manish Goregaokar
a57f8107e2
Bug 1339615 - Don't reset mIsSVGMode in CSSParserImpl::ReleaseScanner; r=bz
...
MozReview-Commit-ID: DVDcrMPi6Me
--HG--
extra : rebase_source : da09e82e30984401f4c89353b4609975caf458c3
2017-02-14 14:16:36 -08:00
Daniel Holbert
f8a884b751
Bug 1339546 part 2: Make layout/style/*.cpp include corresponding .h file as the first header. r=xidorn
...
MozReview-Commit-ID: 2rZ9z0BgRvN
--HG--
extra : rebase_source : d046a915283dd45ec8ff39f1b63da8ae59d3fac8
2017-02-14 11:23:11 -08:00
Wes Kocher
f85117da36
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: 1c81Eie63Pe
2017-02-14 14:45:40 -08:00
Manish Goregaokar
a22e045c64
Bug 1339252: Allow comments in SVG presentation attributes; r=bz
...
MozReview-Commit-ID: AfxWHvC5Byw
--HG--
extra : rebase_source : 82e1b042793b1cf6d798df7d79ce6463bd3feb8f
2017-02-13 16:02:46 -08:00
Jeff Walden
cdee578059
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
...
--HG--
extra : rebase_source : 94377970d6ec591044a10dab1aa5568e4a051837
2017-02-13 09:07:40 -08:00
Iris Hsiao
344c50ee43
Backed out changeset 8379a33c1790 (bug 1339252) for valgrind test failure
2017-02-14 12:40:40 +08:00
Manish Goregaokar
d786b667eb
Bug 1339252: Allow comments in SVG presentation attributes; r=bz
...
MozReview-Commit-ID: AfxWHvC5Byw
--HG--
extra : rebase_source : 7a6864cfdd2ecd80d5d4cf2ddc32b880e84f33b1
2017-02-13 16:02:46 -08:00
Daniel Holbert
c151164a28
Bug 1259348 part 2: Simplify logic in CSSParserImpl::LookupKeywordPrefixAware. r=mats
...
MozReview-Commit-ID: D9WoQ9vXTGJ
--HG--
extra : rebase_source : 16a582106a3e4cae1e328329d19d223f94802a78
2017-02-03 14:56:15 -08:00
Daniel Holbert
c280ee0009
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
--HG--
extra : rebase_source : a09745ce568c9afde78065d9e837da958e7b252e
2017-02-03 14:56:13 -08:00
L. David Baron
37f705d303
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
--HG--
extra : transplant_source : %60%BE%A8%B9%2BP9%8E_%8AX%28%DE%E7%12%83%1A%0E%FF%FD
2017-01-23 13:12:03 -08:00
Astley Chen
01e184df82
Bug 1331296 : Part 4 - Remove CSS parser support of -moz-calc(). r=heycam
...
MozReview-Commit-ID: k5ENlCAXZf
--HG--
extra : rebase_source : 751aac202ed3c97847a1520f4f122ad8802a4a57
2017-01-18 10:50:31 +08:00
Wes Kocher
4d0f1280cb
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: LGnPwvWCKe4
2016-12-30 16:59:49 -08:00
Xidorn Quan
b93e776ac9
Bug 894245 part 2 - Reject unknown enum color in CSS parser. r=dholbert
...
MozReview-Commit-ID: 6jfNESnFde5
--HG--
extra : rebase_source : dbe0b7f1eb45a59ef4df67ba5f1d75da1892cb17
2016-12-30 14:52:10 +11:00
Daniel Holbert
b6f1645a45
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
--HG--
extra : rebase_source : 2309d5f3f15e3cad2e4ae5ebe14af1c6beb43ebc
2016-12-30 12:03:08 -08:00
Emilio Cobos Álvarez
a25a3083ce
Bug 1304792: stylo: Implement @import. r=heycam
...
MozReview-Commit-ID: Hw1V66JxIBD
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:41 +01:00
Emilio Cobos Álvarez
83aebb6253
Bug 1304792: Minimal Loader and CSSParser cleanup. r=heycam
...
MozReview-Commit-ID: DYOh8BtK7NT
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2016-12-30 16:30:41 +01:00
Xidorn Quan
a4755c4187
Bug 1326125 - Rename enum version of SetIntValue to SetEnumValue. r=heycam
...
MozReview-Commit-ID: EbXK827IRFP
--HG--
extra : rebase_source : 3ee8247c211aeff6fae35168f968f0c2d20bb3e1
2016-12-29 10:22:49 +11:00
cku
286c728e90
Bug 1311270 - Part 3. Replace {bg|mask}-origin/{bg|mask}-clip constants by StyleGeometryBox.
...
MozReview-Commit-ID: DYokhDa9fFQ
--HG--
extra : rebase_source : a187c3f9519efb8b031913ce0dbf643c05232fa2
2016-11-22 15:30:01 +08:00
Ethan Lin
118c327468
Bug 1303623 - Part3. Parser changes. r=heycam
...
MozReview-Commit-ID: AQz596lVFnd
--HG--
extra : rebase_source : 05763779146dbd91586317345b742a043730fb5c
2016-10-19 15:49:10 +08:00
Ethan Lin
f1d376b659
Bug 1303623 - Part2. Style structure changes. r=heycam
...
MozReview-Commit-ID: Lkdd5nAQRwG
--HG--
extra : rebase_source : 644ad5a39359d956c6c102be3735278c42872ce3
2016-10-19 15:48:47 +08:00
Xidorn Quan
47dc891b40
Bug 1311870 - Change property id of moz-prefixed properties to match their name. r=heycam
...
MozReview-Commit-ID: DkrMkzMq5qM
--HG--
extra : source : 8d502b58d6124335dcf54146306628644252dfb6
extra : amend_source : f40b0e1629e6c0fcb1c1c595d7787e18e0271924
2016-12-21 18:16:50 +11:00
Xidorn Quan
0053eb4c08
Bug 1323919 - Rename nsIMediaList.h to nsMediaList.h. r=heycam
...
MozReview-Commit-ID: Ake5srkKJbf
--HG--
rename : layout/style/nsIMediaList.h => layout/style/nsMediaList.h
extra : rebase_source : 05de33770a7bf0b5d01672571bde00506853fcfe
2016-12-16 14:50:36 +11:00
Emilio Cobos Álvarez
d791eef979
Bug 1029867: Remove useless nsCSSParser::mHTMLMediaMode. r=heycam
...
MozReview-Commit-ID: AFtd0G4oP3R
2016-12-13 11:39:32 +01:00
Jonathan Kew
1c18c32f59
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
cd6fcd068a
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
9139bdb856
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
0965da8493
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
438b9ab220
Bug 1270406 - Remove :-moz-dir support. r=xidorn
...
MozReview-Commit-ID: HRBj6YF4hZS
--HG--
extra : rebase_source : 6375c14e9f2a79d3d84c8e929569fc818b137762
2016-11-22 23:05:18 +08:00
Jonathan Chan
64d13141fe
Bug 1293743 - Part 4: Implement ParseVariant for VARIANT_INTEGER | VARIANT_CALC (i.e. pure-integer calc()s). r=dbaron,dholbert
...
MozReview-Commit-ID: 5vKgaH3dN5X
--HG--
extra : rebase_source : 7e7c3124cd51ad7e8daa09eb9a60ad83ec34ea79
2016-10-17 21:32:19 -04:00
Jonathan Chan
b746c93c2a
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
--HG--
extra : rebase_source : 257bb56aa2c87f00ae809ee8e674d125c6112a73
2016-10-17 20:49:15 -04: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
Phil Ringnalda
0f32b67e2d
Merge m-i to m-c, a=merge
...
MozReview-Commit-ID: Hm1RxN6OaoZ
2016-11-03 19:32:48 -07:00
Xidorn Quan
fe23eb51ba
Bug 1314531 - Disallow xul tree pseudo-elements with user action pseudo-classes. r=heycam
...
MozReview-Commit-ID: 85DDwDl0oYg
--HG--
extra : rebase_source : 815ac13a1991c0b155e8a78739ba346dbe2110b0
2016-11-03 11:21:19 +11:00
Xidorn Quan
5e29805363
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
--HG--
extra : source : 3837e1e558caac4f2901e838371e97c17821530e
2016-11-03 14:41:02 +11:00
Tobias Schneider
5b2ef3c1db
Bug 1243846 - Implement Intersection Observer API. r=mrbkap, r=mstange
2016-10-28 10:24:00 -04:00
Mats Palmgren
0ec09712ad
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
705996b473
Bug 1308963 - Part 3. Set initial value of mask-position as (0, 0). r=xidorn
...
MozReview-Commit-ID: DN7q6FrGEMA
--HG--
extra : rebase_source : 294089f79d6925d4c47202b95e270b152054f1e7
2016-10-13 23:13:11 +08:00
cku
412846baa6
Bug 1308963 - Part 1. Set initial value of mask-repeat as repeat. r=xidorn
...
MozReview-Commit-ID: 8VrPiEyKF4n
--HG--
extra : rebase_source : 0203bbfbee0e2622285e4af498553fbec63c4d62
2016-10-13 22:57:10 +08:00
JerryShih
03fec15d6f
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
--HG--
extra : rebase_source : 01151bc71e1158e206f924c7a1a51429a7d7f321
extra : histedit_source : 99cd9c8145a4166daba76b985417c2c22dff1fbf
2016-10-16 03:15:36 +08:00
JerryShih
fcb391b776
Bug 1295456 - Remove now-unused single-arg ParseColorOpacity functions from nsCSSParser. r=dholbert
...
--HG--
extra : rebase_source : 8af5f29f98e0f0bfef2742133bf7c190d4e90848
extra : histedit_source : 67ae5d1a526da2128f8be461f483f99d87563029
2016-10-16 03:15:36 +08:00
JerryShih
158cde6c2f
Bug 1295456 - Support <angle> value for hue component in CSS hsl() color function. r=dholbert
...
MozReview-Commit-ID: EYhbAEOlpLm
--HG--
extra : rebase_source : 3b898452000ea5f0f0f1819dac2d93d0a6d1c426
extra : histedit_source : a929cf0e25b0035218c4ea61abfc9135a05def15
2016-10-16 03:15:36 +08:00
JerryShih
ce0369e892
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
--HG--
extra : rebase_source : 797fb4704251f0587cce06f7e81f0a5c017b737e
extra : histedit_source : 826f4cf26314242e89cb503047c2757a27ec507f
2016-10-16 03:15:36 +08:00
JerryShih
7e52f68ada
Bug 1295456 - Change CSS color function rgb() to be an alias of rgba() and support css-color-4 comma-less expression. r=dholbert
...
--HG--
extra : rebase_source : fcd36c9600d2b30e8e409351a84b015b45309c90
extra : histedit_source : b216feceadcf70bd9c0172eea6354308926993ff
2016-10-16 03:15:36 +08:00
JerryShih
a0a437f47c
Bug 1295456 - Support percentage opacity value in CSS color functions. r=dholbert
...
--HG--
extra : rebase_source : 79bf692da80a5ea861482e9bc021834f60b6d81a
extra : histedit_source : 384f41d812fecf511be8b319d91a687e9c02673d
2016-10-16 03:15:35 +08: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
Xidorn Quan
1dc2955ab8
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
--HG--
extra : source : e4fe253a8f82c3c58e5191d6af66fb0e85f2df19
2016-09-26 22:03:25 +10:00
Julian Seward
15d049af48
Bug 1301856 - Spurious valgrind warning in in CSSParserImpl::ParseGridLine() with gcc 5.3. r=mats@mozilla.com.
...
--HG--
extra : rebase_source : 3a781aa7b35ffaca474313626cec07d4deea3a85
2016-09-14 15:04:30 +02:00
Thomas Wisniewski
2b28c5e2a9
Bug 1069012 - Unprefix ::placeholder pseudo-element. r=bz
2016-09-07 19:38:38 -04:00