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

205 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 160ed71c4e Bug 1320014 Part 11 - Convert NS_FULL_TO_HALF_CORNER to a constexpr function. r=mats
Because the new function checks types, we need to change the fullCorner type
in nsComputedDOMStyle::GetEllipseRadii() and
StyleAnimationValue::ExtractComputedValue() from uint8_t to |Corner| to fix
build error.

MozReview-Commit-ID: 5NuFE3yA2QD

--HG--
extra : rebase_source : 8f94209b24bd909839358cd502f462edb9ce3116
2017-01-05 14:59:17 +08:00
Ting-Yu Lin 2dada2d6e0 Bug 1320014 Part 6 - Remove #define NS_CORNER_[TOP_LEFT/TOP_RIGHT/BOTTOM_RIGHT/BOTTOM_LEFT] r=mats
MozReview-Commit-ID: ERAwdxKZPf7

--HG--
extra : rebase_source : 53eb8d15ecd0d9d8fd0c7b88872b210b54104725
2017-01-04 18:15:30 +08:00
Wes Kocher 0f254a30d6 Merge inbound to central, a=merge
MozReview-Commit-ID: 1ij6nLf8f8s
2017-01-05 17:30:35 -08:00
Hiroyuki Ikezoe 0e03cf5f82 Bug 1328535 - Remove range-checking assertion for aDilutionRatio, in color animation code. r=dholbert
Some cubic-bezier functions, e.g. cubic-bezier(0,-0.5,0,0), produce values out
of range of [0, 1].

MozReview-Commit-ID: 9ZTsTRTcUaI

--HG--
extra : rebase_source : 7edf0c4d2702a502a9c0422be83ce7229751e815
2017-01-05 09:05:57 +09:00
Boris Zbarsky 85a6ca2630 Bug 1298588 part 10, gecko piece. Pass through useful default styles to apply_declarations(). r=bholley 2017-01-04 14:52:27 -05: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
Xidorn Quan 51c845d50b Bug 1063162 part 1 - Add auto value support to StyleComplexColor. r=birtles
MozReview-Commit-ID: E6EFICyY3dh

--HG--
extra : rebase_source : 8f0a037a8a7a460c46e70af5f54a899df212fed5
2016-12-22 11:03:37 +11:00
Hiroyuki Ikezoe 54503e5fd9 Bug 1311620 - Part 11: Implement shadow list addition. r=boris
MozReview-Commit-ID: DRShA4qUS8Q

--HG--
extra : rebase_source : 68f4aee6abff1ac11815b18e2aa15b9470111497
2016-12-24 20:05:34 +09:00
Hiroyuki Ikezoe 059eaa8ee8 Bug 1311620 - Part 10: Implement filter list addition. r=boris
MozReview-Commit-ID: 8bQWBVveP9L

--HG--
extra : rebase_source : 5c292ee6d4cf547263fa0114f642fecb28ac5b17
2016-12-24 20:04:56 +09:00
Hiroyuki Ikezoe 523ccaff51 Bug 1311620 - Part 9: Implement transform list addtion. r=boris.
MozReview-Commit-ID: 76b5eJ9FtWo

--HG--
extra : rebase_source : fd77fbeea96986c0a7fa484d067074e3f9f87677
2016-12-24 20:04:52 +09:00
Hiroyuki Ikezoe 2418629ef8 Bug 1311620 - Part 8: Implement color addition. r=boris
Actually this is the same as color accumulation.  Now we can pass test cases
that interpolation with overflowed values.

MozReview-Commit-ID: L4RqBhG5n3l

--HG--
extra : rebase_source : e80f1c135b33703dcda7c99df897aa7097030f05
2016-12-24 20:03:48 +09:00
Hiroyuki Ikezoe 5201cc33f3 Bug 1311620 - Part 4: Implement keyframe composite(add). r=birtles
This patch also fixes expected computed offset values in frame at 0.5 offset for
add composite.

MozReview-Commit-ID: 8PNp237NoV4

--HG--
extra : rebase_source : 7bdf83741198fb81c6721cad1764e6464033c240
2016-12-24 19:54:27 +09:00
Sebastian Hengst aec0bd379b Backed out changeset 5bc2005e01a6 (bug 1063162) for failing own test caret-color-01.html at least on OSX and Windows 8 x64. r=backout 2016-12-22 17:44:43 +01:00
Xidorn Quan 74327538ed Bug 1063162 part 1 - Add auto value support to StyleComplexColor. r=birtles
MozReview-Commit-ID: E6EFICyY3dh

--HG--
extra : rebase_source : 8f0a037a8a7a460c46e70af5f54a899df212fed5
2016-12-22 11:03:37 +11:00
Cameron McCormack d7971f4aa5 Bug 1328546 - stylo: Support ServoStyleSheets in nsIStyleSheetService::PreloadSheet and nsIDOMWindowUtils::AddSheet. r=bholley
MozReview-Commit-ID: 2KOMrnCf1Ag
2017-01-05 15:32:22 +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
Hiroyuki Ikezoe 84ce87ba3a Bug 1323114 - Handle interpolation between 'none' and 'accumulate matrix' as different transform list. r=boris
MozReview-Commit-ID: HoyOKsMxmDH

--HG--
extra : rebase_source : e0cf252bee039fdd3eb5004b7dbfe467e7bff340
2016-12-21 06:12:33 +09:00
cku 9580afb757 NO BUG - Remove empty lines.
MozReview-Commit-ID: K7GMiRAJYPJ
2016-12-16 15:46:26 +08:00
Daniel Holbert c6501e5cff Bug 1321022 pt 6: Use UniquePtr instead of nsAutoPtr (& nsCSSValue setters) in font-variations-setting StyleAnimationValue code. r=jfkthame
MozReview-Commit-ID: CSj2wcZlTJs
2016-12-03 12:18:43 +00:00
Jonathan Kew 7e62ee048d Bug 1321022 pt 5 - Add support for animating the font-variations-setting property. r=dholbert 2016-12-03 12:18:41 +00:00
Carsten "Tomcat" Book 61849e269d merge mozilla-inbound to mozilla-central a=merge 2016-11-24 16:41:59 +01:00
Cameron McCormack 5cd7f5c288 Bug 1319336 - Add some assertions and early returns to animation code to make stylo tests progress further. r=birtles
MozReview-Commit-ID: 14rghu0zYG1
2016-11-24 12:45:51 +08:00
Ting-Yu Lin 754b6c9659 Bug 1317588 Part 3 - Remove #define NS_SIDE_TOP/RIGHT/BOTTOM/LEFT. r=mats
This patch was written with the help of the following script. Also, manually
add mozilla qualifier to the enum values in nsStyleCoord.h, gfxRect.h, and
Types.h to make it build.

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "NS_SIDE_TOP" "eSideTop"
rename "NS_SIDE_RIGHT" "eSideRight"
rename "NS_SIDE_BOTTOM" "eSideBottom"
rename "NS_SIDE_LEFT" "eSideLeft"

MozReview-Commit-ID: 9T0ORsqM6nP

--HG--
extra : rebase_source : 884ad96104c6e9cf6c8b3145d2d3a071ecccfe6a
2016-11-18 18:12:25 +08:00
Ting-Yu Lin c9cfd878cb Bug 1317588 Part 2 - Remove mozilla::css::Side typedef. r=mats
This patch is written with the help of the following script.

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "css::Side" "Side"

MozReview-Commit-ID: DPV6vivpPUp

--HG--
extra : rebase_source : 9c4f66dc9d2b26c89a4517fba4ff9c5db413411b
2016-11-18 16:28:38 +08:00
Boris Chiou 239fc2d508 Bug 1286151 - Part 7: Make ComputeShapeDistance return the status. r=hiro
We should follow the rules used by other types - return false if computing
the distance is failed. So make ComputeShapeDistance and return the status
and let the last argument be the output distance.

MozReview-Commit-ID: CFoQhgyqILB

--HG--
extra : rebase_source : 353c42e54e554b0477e88ad8c1ee0d611e16618b
2016-11-17 11:52:41 +08:00
Boris Chiou 23b961ef60 Bug 1286151 - Part 4: Factor out ComputeSingleShadowSquareDistance. r=dholbert
Both eUnit_Shadow and the drop-shadow of eUnit_Filter needs to compute the
distance of two shadows, so we can factor out the implementation.

MozReview-Commit-ID: IGdxQWMXdE1

--HG--
extra : rebase_source : 9889c556c0cc007102a152859575cfe56830ca61
2016-11-15 11:58:16 +08:00
Boris Chiou 4dccb33bc5 Bug 1286151 - Part 3: Implement filter distance for the rest. r=hiro
MozReview-Commit-ID: EXBzvJ7PIwQ

--HG--
extra : rebase_source : 768c45a16d365952c46ba6124a37d6c4f3ae69ca
2016-11-10 17:25:10 +08:00
Boris Chiou ab8ac0bf92 Bug 1286151 - Part 2: Implement filter distance for drop-shadow. r=hiro
MozReview-Commit-ID: 5Ad0GiWGkJg

--HG--
extra : rebase_source : 3d3103bf976de199aed257e5f555d5f5158b20d3
2016-11-10 17:46:35 +08:00
Boris Chiou 1aaa8ce437 Bug 1286151 - Part 1: Implement filter distance for blur. r=hiro
MozReview-Commit-ID: 44EP55V8ldg

--HG--
extra : rebase_source : 16d23a8f7578b5b86a82916fc7088c4cb4b41cb8
2016-11-10 15:15:52 +08:00
Hiroyuki Ikezoe 0ed742577b Bug 1304886 - Part 9: Accumulate mismatched transform list properly. r=boris
MozReview-Commit-ID: LTz4TkCsMbQ

--HG--
extra : rebase_source : d7213a0616fba5d4af393b3d7496a2b9a340c90e
2016-11-16 20:32:33 +09:00
Hiroyuki Ikezoe c661a36ecc Bug 1304886 - Part 8: Add Accumulate operator. r=boris,derf
MozReview-Commit-ID: Bzcn3IRSx6L

--HG--
extra : rebase_source : 854c39f38953a400407bcf976ebd68f25f4b6396
2016-11-16 20:32:33 +09:00
Hiroyuki Ikezoe 59b118b408 Bug 1304886 - Part 3: Move InterpolateTransformMatrix into nsStyleTransformMatrix. r=boris
MozReview-Commit-ID: 7GV6B7AwNcg

--HG--
extra : rebase_source : 41efbb5ffcc9c1ea63babedbb6d5f312bf49926e
2016-11-16 20:32:32 +09:00
Hiroyuki Ikezoe 5bc38856bd Bug 1304886 - Part 2: Factor out TransformFunctionListsMatch. r=boris
MozReview-Commit-ID: BhRkF6ClJjv

--HG--
extra : rebase_source : d8456e3903ea1e589d7740c919ad763ae7f39077
2016-11-16 20:32:32 +09:00
Hiroyuki Ikezoe ae9b44e039 Bug 1304886 - Part 1: Make StyleAnimationValue::Accumulate() infallible. r=birtles
MozReview-Commit-ID: 9ve3k6a3eAg

--HG--
extra : rebase_source : af536ae0bf9dc7ad26003422d971c3cbdb30e390
2016-11-16 20:32:26 +09:00
Manish Goregaokar c34e67ff4d Bug 1314200 - stylo: support transform; r=heycam
MozReview-Commit-ID: 50YhZtjF3vH

--HG--
extra : rebase_source : 9aaf3f1bdd317c8c0e541a5ff6ff6d734a3e3f32
2016-10-31 16:30:43 -07:00
Boris Chiou af2940b110 Bug 1286150 - Part 5: Implement shape distance for inset. r=hiro
MozReview-Commit-ID: 4C2uZp9qM3D

--HG--
extra : rebase_source : 2ba906355c383b5bb7c1854279c5046806d892b5
2016-10-27 15:34:06 +08:00
Boris Chiou 3a56bfea8a Bug 1286150 - Part 4: Implement shape distance for polygon. r=hiro
MozReview-Commit-ID: BONxNhUrQsF

--HG--
extra : rebase_source : 2d4282f9ee5eb6dcdad9d23eba2eebd6ad75fa9e
2016-10-26 17:32:18 +08:00
Boris Chiou f1a58e35b3 Bug 1286150 - Part 3: Implement shape distance for circle and ellipse. r=hiro
MozReview-Commit-ID: EX4C4IM0nVx

--HG--
extra : rebase_source : f02f32845d11755d7821176875157affb8e1cb16
2016-10-14 16:28:16 +08:00
Boris Chiou fca40f4d14 Bug 1286150 - Part 2: Support difference restrictions on AddShapeFunction. r=hiro
We want to reuse AddShapeFunction for calculating the distance, so add
one more argument to enable/disable the default restrictions, so we can
reuse AddShapeFunction to get the differences, which may be negative values,
between two shape functions.

MozReview-Commit-ID: FgzOnPzyyAQ

--HG--
extra : rebase_source : e2ee1267100ef02a43131366eef9d46fc2f63ebe
2016-10-26 18:01:41 +08:00
Boris Chiou 360bd35d49 Bug 1286150 - Part 1: Simplify AddTransformTranslate and reuse AddCSSValuePixelPercentCalc. r=hiro
Two things in this patch:
1. Move AddCSSValuePixelPercentCalc to the position above AddTransformTranslate.
2. Simplify AddTransformTranslate, i.e. re-use the same switch case of
   AddCSSValuePixelPercentCalc.

MozReview-Commit-ID: BMEpkOHDoaT

--HG--
extra : rebase_source : 591da977266c5be01fdb5f27aa11e26f94fc6060
2016-10-14 15:22:45 +08:00
Boris Chiou 5284058486 Bug 1313554 - Use brace-initialization to ShearArray. r=hiro
MozReview-Commit-ID: 9dT7bpGpCEC

--HG--
extra : rebase_source : 6769a3802d67af4b082c0e1271add2c4f9af786b
2016-10-28 11:11:36 +08:00
Boris Chiou 304026cd9d Bug 1272549 - Part 9: Compute distance for mismatched transform lists. r=birtles
MozReview-Commit-ID: JJWcMgj88GX

--HG--
extra : rebase_source : 3f1c314a2bf9c7c12991fb3873738c79b0152ea9
2016-10-05 15:36:16 +08:00
Boris Chiou 6ce1d75c7f Bug 1272549 - Part 8: Compute distance for perspective transform function. r=birtles
MozReview-Commit-ID: IUL9RYuP82r

--HG--
extra : rebase_source : f179553814b74a61f886fefc7225f7cdfd299d7b
2016-10-03 16:04:24 +08:00
Boris Chiou 5e9077980f Bug 1272549 - Part 7: Compute distance for matrix and matrix3d. r=birtles
Decompose the 2d/3d matrix and calculate the Euclidean distance of
translate, scale, skew, quaternion, and perspective vectors.

MozReview-Commit-ID: 5nX9EeqvZi9

--HG--
extra : rebase_source : a15f2e4350e5c097eee8856a76244a81d589427a
2016-10-04 18:32:20 +08:00
Boris Chiou 17e5c4df16 Bug 1272549 - Part 6: Use enum class for shear in decomposition functions. r=birtles
MozReview-Commit-ID: 4exovhbjHI3

--HG--
extra : rebase_source : 99705c1bb2c980be06f7c662698241dde5ee9ab9
2016-10-12 12:36:58 +08:00
Boris Chiou c82cb7f0df Bug 1272549 - Part 5: Move decompose matrix to nsStyleTransformMatrix. r=birtles
Move Decompose2DMatrix and Decompose3DMatrix into nsStyleTransformMatrix
and remove some trailing spaces.

Both AddWeighted and ComputeDistance need Decompose2DMatrix and
Decompose3DMatrix on transform property, and both decomposition functions are
related to nsStyleTransformMatrix, so we move them into nsStyleTransformMatrix
to make StyleAnimationValue more concise.

MozReview-Commit-ID: 5aVK7971rDD

--HG--
extra : rebase_source : 75823b96a165ef65e3edfb00978b706d9db09393
2016-10-04 15:00:31 +08:00
Boris Chiou fe6b56e5e8 Bug 1272549 - Part 4: Compute distance for none and a valid transform list. r=birtles
Reuse AddTransformLists to get the identity transform functions to
replace none, and then treat them with another transform list as two matched
ones.

MozReview-Commit-ID: HwdBPCiUivg

--HG--
extra : rebase_source : 552ff668e2ac19dbfcfe2a37894b278f699f0c0b
2016-10-03 17:43:20 +08:00
Boris Chiou 9f7759999b Bug 1272549 - Part 3: Implement rotate3d with different direction axis. r=derf
Use quaternion vectors to calculate the distance of two rotate3d
functions.

MozReview-Commit-ID: LizbvRqzcuh

--HG--
extra : rebase_source : 6b852d1f66ba7d79708156119db63683900120fb
2016-10-11 15:15:22 +08:00
Boris Chiou 6d0881c481 Bug 1272549 - Part 2: Compute distance for basic 2d & 3d transform functions for matched transform lists. r=birtles
Implement these transform functions for matched transform lists:
1. translate3d
2. scale3d
3. skewXY (and skewX, skewY, skew)
4. rotateX, rotateY, rotateZ, rotate, and rotate3d with the same
   direction axis.

MozReview-Commit-ID: 94so7VGHqc8

--HG--
extra : rebase_source : d68488e3b6e87d72702c348fa0495a4d0c17ab85
2016-09-29 17:33:24 +08:00
Boris Chiou 29bd946764 Bug 1272549 - Part 1: Reorder some static functions. r=birtles
We also need these functions in ComputeDistance:
1. AddTransformTranslate
2. AddCSSValueAngle
3. TransformFunctionsMatch

So move them up.

MozReview-Commit-ID: 8mSFEOgUsLT

--HG--
extra : rebase_source : a58107f50e6636d4aeec93e086490cda09027ded
2016-09-29 17:51:55 +08:00