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

1227 Коммитов

Автор SHA1 Сообщение Дата
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
Neerja Pancholi 0ab64cae78 Bug 1295271 - Remove all _moz_ prefixes from all instances of _moz_column r=dbaron
Command used:
find -E ./* -iregex '.*(\.cpp|\.h)' | xargs egrep -l '.*_moz_column.*' | xargs sed -i '' 's/_moz_column/column/g'


MozReview-Commit-ID: CJbSfDfhmle

--HG--
extra : rebase_source : f3989585c0f5ac98ebbcf7c9a729b4c89c5ddeab
2016-08-30 17:21:03 -07:00
L. David Baron 6e37c27e75 Bug 1290825 - Reject various things that aren't user-action pseudo classes when they follow pseudo-elements. r=bz
The existing code, from bug 922669, in ParsePseudoSelector that allows
things to come after a pseudo-element requires that the first character
after the pseudo-element be a colon.  However, this doesn't forbid
things like ::-moz-color-swatch:hover#foo, which need to be errors in
ParseSelector; those tests are added here.  Furthermore, the
error-checking in ParsePseudoSelector doesn't prevent the pseudo-element
from being followed by a :not() or by an additional pseudo-element; to
fix that this patch moves the error tests out of the pseudo-class
condition and also has it test !isPseudoClass.

Without the patch, the tests produced the following failures:
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector ::-moz-color-swatch:not(.foo) was a parser error - got "1402", expected "auto"
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector '::-moz-color-swatch:not(.foo)' plus EOF is parse error
followed by a crash due to:
Assertion failure: !(IsPseudoElement() && (mIDList || mAttrList)) (If pseudo-elements can have id or attribute selectors after them, specificity calculation must be updated), at /home/dbaron/builds/ssd/mozilla-central/mozilla/layout/style/StyleRule.cpp:503 in CalcWeightWithoutNegations
from the "::-moz-color-swatch:hover#foo" test.

With that test commented out (and still without the code changes), there
is instead an additional pair of failures from the following test:
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector .foo::after:not(.bar) ~ h3 was a parser error - got "1406", expected "auto"
TEST-UNEXPECTED-FAIL | layout/style/test/test_selectors.html | selector '.foo::after:not(.bar) ~ h3' plus EOF is parse error
along with a failure due to an unexpected assertion:
###!!! ASSERTION: Shouldn't have negations: '!selector->mNegations', file /home/dbaron/builds/ssd/mozilla-central/mozilla/layout/style/nsCSSRuleProcessor.cpp, function AddRule, line 3415

With the patch, the tests pass.

MozReview-Commit-ID: KxAFSQtPVhu
2016-08-29 11:43:30 -07:00
Mats Palmgren 2c298fc18b Bug 1282643 - [css-grid] Reject repeat() column tracks in <grid-template> when there's a grid template area string in the row part. r=dholbert 2016-08-26 15:16:57 +02: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
tlin@mozilla.com a3c24f6f2e Bug 1297340 - Revise ParseClipPath(). r=dholbert
--HG--
extra : rebase_source : aa34d6d6b5471972432bd3d1de1dbf53fc7e479a
2016-08-23 09:27:07 +00:00
Jonathan Chan 4b87f11bd9 Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-16 18:37:48 -07:00
Gregory Szorc 1794619188 Backed out changesets dcdb85fc5517, 702bca0deee2, 9cKX8gC1ATA (bug 1293739) for build bustage; a=bustage
The merge from inbound to central conflicted with the merge from
autoland to central, it appears. Per tree rules, the commit from the
autoland repo wins and the inbound commit gets backed out.

CLOSED TREE

--HG--
extra : amend_source : 927e1cdfa8e55ccbd873d404d905caf6871c8c4f
extra : histedit_source : 07095868c3f767258e1d7d2645193bf4811b13bb%2Ca49ae5a28bf6e67298b6208ee9254c25a2539712
2016-08-16 17:50:40 -07:00
Jonathan Chan 9c62a2c11c Bug 1293739 - Part 1: Rename nsCSSProperty to nsCSSPropertyID. r=dholbert
This patch is generated by the following commands (note: if you're running
using OS X's sed, which accepts slightly different flags, you'll have to
specify an actual backup suffix in -i, or use gsed from Homebrew):

  hg stat -c \
  | cut -c 3-  \
  | tr '\n' '\0' \
  | xargs -0 -P 8 gsed --follow-symlinks 's/\bnsCSSProperty\b/nsCSSPropertyID/g' -i''

Then:

  hg mv layout/style/nsCSSProperty.h layout/style/nsCSSPropertyID.h

... and finally, manually renaming nsCSSProperty in the include guard in
nsCSSProperty.h.

MozReview-Commit-ID: ZV6jyvmLfA

--HG--
rename : layout/style/nsCSSProperty.h => layout/style/nsCSSPropertyID.h
2016-08-09 16:28:19 -07:00
Wes Kocher d602abb016 Merge inbound to central, a=merge 2016-08-15 14:20:38 -07:00
Igor 175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Xidorn Quan 6558c1c800 Bug 1274158 part 2 - Accept zero for perspective. r=heycam
MozReview-Commit-ID: FaXKFav71bD

--HG--
extra : rebase_source : ba1f0c228b212a994b02c11c255e69448f694b3e
2016-08-12 14:52:48 +10:00
cku ed7978775a Bug 1277788 - Part 1. Set initial value of mask-position as center. r=dbaron.
MozReview-Commit-ID: BflQ6tz8ZjM

--HG--
extra : rebase_source : 01b05533f5c791da0987af81d5cca276ec36e3f0
2016-08-10 16:10:45 +08:00
cku cddd3b562b Bug 1258623 - Set initial value of mask-repeat as no-repeat. r=dbaron
MozReview-Commit-ID: 4VgvRXdVL2F

--HG--
extra : rebase_source : 80416c1d6a4fa8b3d4f022f879db50d31c79699b
2016-07-18 17:02:58 +08:00
Ting-Yu Lin 3e0b364f59 Bug 1288626 Part 8 - Add shape-outside support to style system. r=heycam
I have to move the definition of StyleBasicShape and StyleShapeSource prior to
where nsStyleDisplay::mShapeOutside is defined since the template struct need to
be fully defined before using as a member variable.

Use SetIdent() in CreatePrimitiveValueForBasicShapeOrURL() in
nsComputedDOMStyle.cpp per bug 1288626 comment 6.

MozReview-Commit-ID: 1KZS299CFul

--HG--
extra : rebase_source : d96276a1d514e1e42e1daf6f23e6bbfcb92d3bec
2016-07-22 15:40:01 +08:00
Ting-Yu Lin 213646c667 Bug 1288626 Part 7 - Rename StyleClipShapeSizing to StyleClipPathGeometryBox. r=heycam
Change to geometry box to match the name in the spec.
https://drafts.fxtf.org/css-masking-1/#the-clip-path

MozReview-Commit-ID: 8jDTynCkJ4A

--HG--
extra : rebase_source : c2e165e320c1341012b32b48bfb03b3c9b4f56c5
2016-07-28 13:45:43 +08:00
Manish Goregaokar f5ec6f7282 Bug 1290864 - Standardize serialization of <position> values in <basic-shape>; r=xidorn
MozReview-Commit-ID: KooW1OqtTUb
2016-08-05 19:48:13 +05:30
Bobby Holley 19f8c5faa5 Bug 1291390 - Make parsing mode an immutable property of the StyleSheet. r=heycam 2016-08-03 10:26:14 -07:00
Jeremy Chen c9f52459aa Bug 1289007 - part1: parse and compute initial-letter property. r=heycam
MozReview-Commit-ID: E0eXolZ93oJ

--HG--
extra : rebase_source : 3fc74b84a488bb495f926b420aa6c06a987e09b2
2016-07-28 15:23:36 +08:00
Jeremy Chen eda421bf9b Bug 1289007 - part0: remove redundant codes in ParsePropertyByFunction. r=heycam
CSS align and CSS justify share same parsing function under some conditions.
Let's make these switch branches stick together, so we can remove a bit redundant
codes.

MozReview-Commit-ID: 49IKvqhLSt4

--HG--
extra : rebase_source : 5d8a6aca331a7b3067aeeb865ce624da7cc4dd4a
2016-07-28 15:23:36 +08:00
Boris Chiou 39b242ab37 Bug 1272475 - Part 1: Clamp max/min float value in the parser of CSS Transform function. r=heycam
To avoid calculate +/-infinite function value, we clamp it in the parser level.
Also, we use EnsureNotNan while calculating the interpolation for translate
function, so it's also better to do EnsureNotNan before call SetFloatValue()
while calculating the interpolation for rotate (AddCSSValueAngle) and scale
functions.

MozReview-Commit-ID: 1k19ytyNG1N

--HG--
extra : rebase_source : 73f152b52e067d52a1925215ad78a4c5cc736fd7
2016-07-20 15:14:05 +08:00
Hiroyuki Ikezoe 123f9c80bd Bug 1278485 - Part 1: Limit y1 and y2 control points for cubic-bezier to avoid overflows. r=birtles
MozReview-Commit-ID: Bls260r7Sqn

--HG--
extra : rebase_source : bd836b8bd0666ce5c387aeb91149587d93db386d
2016-07-12 16:24:42 +09:00
Chris Peterson 43c2748f66 Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00