Commit Graph

245 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
5be9417528 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
2016-12-24 20:03:48 +09:00
Hiroyuki Ikezoe
e84cd6194f 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
2016-12-24 19:54:27 +09:00
Sebastian Hengst
33c361b3ac 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
f09c2f7e50 Bug 1063162 part 1 - Add auto value support to StyleComplexColor. r=birtles
MozReview-Commit-ID: E6EFICyY3dh
2016-12-22 11:03:37 +11:00
Cameron McCormack
a191cdb1b5 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
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
Hiroyuki Ikezoe
b8deef2535 Bug 1323114 - Handle interpolation between 'none' and 'accumulate matrix' as different transform list. r=boris
MozReview-Commit-ID: HoyOKsMxmDH
2016-12-21 06:12:33 +09:00
cku
237643d3a6 NO BUG - Remove empty lines.
MozReview-Commit-ID: K7GMiRAJYPJ
2016-12-16 15:46:26 +08:00
Daniel Holbert
8ba94824b0 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
da7246294e 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
2ee161bf4e merge mozilla-inbound to mozilla-central a=merge 2016-11-24 16:41:59 +01:00
Cameron McCormack
3bd168f1a5 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
7e10b6ab51 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
2016-11-18 18:12:25 +08:00
Ting-Yu Lin
03d0c3c4c4 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
2016-11-18 16:28:38 +08:00
Boris Chiou
85ab71627f 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
2016-11-17 11:52:41 +08:00
Boris Chiou
fd88128e44 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
2016-11-15 11:58:16 +08:00
Boris Chiou
1741d4d758 Bug 1286151 - Part 3: Implement filter distance for the rest. r=hiro
MozReview-Commit-ID: EXBzvJ7PIwQ
2016-11-10 17:25:10 +08:00
Boris Chiou
a224f0ffed Bug 1286151 - Part 2: Implement filter distance for drop-shadow. r=hiro
MozReview-Commit-ID: 5Ad0GiWGkJg
2016-11-10 17:46:35 +08:00
Boris Chiou
4cc47548fb Bug 1286151 - Part 1: Implement filter distance for blur. r=hiro
MozReview-Commit-ID: 44EP55V8ldg
2016-11-10 15:15:52 +08:00
Hiroyuki Ikezoe
3e0e0a2190 Bug 1304886 - Part 9: Accumulate mismatched transform list properly. r=boris
MozReview-Commit-ID: LTz4TkCsMbQ
2016-11-16 20:32:33 +09:00
Hiroyuki Ikezoe
9659b093bb Bug 1304886 - Part 8: Add Accumulate operator. r=boris,derf
MozReview-Commit-ID: Bzcn3IRSx6L
2016-11-16 20:32:33 +09:00
Hiroyuki Ikezoe
06e0ac11c7 Bug 1304886 - Part 3: Move InterpolateTransformMatrix into nsStyleTransformMatrix. r=boris
MozReview-Commit-ID: 7GV6B7AwNcg
2016-11-16 20:32:32 +09:00
Hiroyuki Ikezoe
f78feb6ce9 Bug 1304886 - Part 2: Factor out TransformFunctionListsMatch. r=boris
MozReview-Commit-ID: BhRkF6ClJjv
2016-11-16 20:32:32 +09:00
Hiroyuki Ikezoe
723ccec4d8 Bug 1304886 - Part 1: Make StyleAnimationValue::Accumulate() infallible. r=birtles
MozReview-Commit-ID: 9ve3k6a3eAg
2016-11-16 20:32:26 +09:00
Manish Goregaokar
486ae2d4e5 Bug 1314200 - stylo: support transform; r=heycam
MozReview-Commit-ID: 50YhZtjF3vH
2016-10-31 16:30:43 -07:00
Boris Chiou
687077584f Bug 1286150 - Part 5: Implement shape distance for inset. r=hiro
MozReview-Commit-ID: 4C2uZp9qM3D
2016-10-27 15:34:06 +08:00
Boris Chiou
564b15f7a3 Bug 1286150 - Part 4: Implement shape distance for polygon. r=hiro
MozReview-Commit-ID: BONxNhUrQsF
2016-10-26 17:32:18 +08:00
Boris Chiou
6c4a1579aa Bug 1286150 - Part 3: Implement shape distance for circle and ellipse. r=hiro
MozReview-Commit-ID: EX4C4IM0nVx
2016-10-14 16:28:16 +08:00
Boris Chiou
559b869ef6 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
2016-10-26 18:01:41 +08:00
Boris Chiou
6076554d2e 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
2016-10-14 15:22:45 +08:00
Boris Chiou
4a1747b8b5 Bug 1313554 - Use brace-initialization to ShearArray. r=hiro
MozReview-Commit-ID: 9dT7bpGpCEC
2016-10-28 11:11:36 +08:00
Boris Chiou
5e5fbf62e9 Bug 1272549 - Part 9: Compute distance for mismatched transform lists. r=birtles
MozReview-Commit-ID: JJWcMgj88GX
2016-10-05 15:36:16 +08:00
Boris Chiou
25f65b5520 Bug 1272549 - Part 8: Compute distance for perspective transform function. r=birtles
MozReview-Commit-ID: IUL9RYuP82r
2016-10-03 16:04:24 +08:00
Boris Chiou
c7f5bae73f 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
2016-10-04 18:32:20 +08:00
Boris Chiou
945300c16e Bug 1272549 - Part 6: Use enum class for shear in decomposition functions. r=birtles
MozReview-Commit-ID: 4exovhbjHI3
2016-10-12 12:36:58 +08:00
Boris Chiou
bc12553b2f 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
2016-10-04 15:00:31 +08:00
Boris Chiou
8f77dda644 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
2016-10-03 17:43:20 +08:00
Boris Chiou
a414fe5999 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
2016-10-11 15:15:22 +08:00
Boris Chiou
93fb8ff0d0 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
2016-09-29 17:33:24 +08:00
Boris Chiou
2b57162877 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
2016-09-29 17:51:55 +08:00
Xidorn Quan
81893e7dfe Bug 1309109 part 3 - Rename ServoDeclarationBlock to RawServoDeclarationBlock. r=heycam
So that the new subclass of DeclarationBlock could just be
ServoDeclarationBlock.

MozReview-Commit-ID: 55KgfmWmmyU
2016-10-18 15:29:03 +11:00
Xidorn Quan
b8a48e579e Bug 1309868 part 3 - Make NonOwningStyleContextSource store const ServoComputedValues. r=heycam
MozReview-Commit-ID: G84fYXLbQyt
2016-10-18 15:29:03 +11:00
Cameron McCormack
a9fde7344c Bug 1298774 - Part 9: Remove FragmentOrURL. r=cjku
MozReview-Commit-ID: Du10tRgKtQ4
2016-10-11 14:56:12 +08:00
Cameron McCormack
1a1523e02c Bug 1298774 - Part 7: Make nsStyleFilter use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: FyhH9QG9vYq
2016-10-11 14:56:12 +08:00
Cameron McCormack
7e89cd1f28 Bug 1298774 - Part 5: Make nsStyleSVGPaint use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: CkNcSxVToTL
2016-10-11 14:56:11 +08:00
Cameron McCormack
6c5d4ffa1f Bug 1298774 - Part 4: Make ShapeStyleSource use css::URLValue for url() storage instead of FragmentOrURL. r=cjku
MozReview-Commit-ID: CQy6ArR48Sp
2016-10-11 14:56:11 +08:00
Brian Birtles
66918342ce Bug 1302949 - Compute StyleAnimationValue objects from servo declaration blocks; r=heycam
MozReview-Commit-ID: 6Am1FRC9uV0
2016-09-16 11:08:44 +09:00
Brian Birtles
6904e97f0f Bug 1302949 - Drop unused aTargetElement parameter from ComputeValuesFromStyleRule; r=heycam
MozReview-Commit-ID: EicjWALEQB0
2016-10-03 15:41:55 +09:00
Xidorn Quan
1cfc0298d4 Bug 1266621 part 5 - Convert border-color to store complex color. r=heycam
MozReview-Commit-ID: 19sl9f3EVgt
2016-09-27 20:16:35 +10:00
Xidorn Quan
793cd1a575 Bug 1266621 part 3 - Convert outline-color to store complex color. r=heycam
MozReview-Commit-ID: 70tre2pYqi3
2016-09-27 20:44:19 +10:00