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
Xidorn Quan
af621198c0
Bug 1266621 part 2 - Convert column-rule-color to store complex color. r=heycam
...
MozReview-Commit-ID: AB2b5CPABOZ
2016-09-27 20:12:08 +10:00
Xidorn Quan
0e32e46079
Bug 1266621 part 1 - Convert text-decoration-color to store complex color. r=heycam
...
MozReview-Commit-ID: LEGICgvgQDY
2016-09-27 20:19:48 +10:00
Xidorn Quan
dcfa696ded
Bug 1299741 part 11 - Change text-{emphasis,fill,stroke}-color to using StyleComplexColor. r=dbaron
...
MozReview-Commit-ID: 1MlgGAkdPn8
2016-09-16 14:40:45 +10:00
Xidorn Quan
6c31526269
Bug 1299741 part 9 - Implement interpolation between numeric color and currentcolor. r=birtles
...
MozReview-Commit-ID: DuB6FZYveXE
2016-09-16 14:44:09 +10:00
Xidorn Quan
44398fa47d
Bug 1299741 part 8 - Change StyleDataAtOffset to template to simplify code. r=birtles
...
MozReview-Commit-ID: CY8brp8AObH
2016-09-16 15:42:30 +10:00
Xidorn Quan
b02699f29d
Bug 1299741 part 7 - Support storing ComplexColor in nsCSSValue and StyleAnimationValue. r=heycam
...
This is a complete rewrite of the original part 8. Instead of storing
the ratio in mValueExtra, all values are stored in a struct in heap,
so that we support range outside [0.0, 1.0] in computation.
MozReview-Commit-ID: 7xUZSgQE5vA
2016-09-16 15:30:35 +10:00
Xidorn Quan
2c6d50d57a
Bug 1299741 part 6 - Use RGBAColorData for color calculation in StyleAnimationValue. r=birtles
...
This makes it easier for reusing code for calculating ComplexColor.
Note that this patch also includes two fixes to the logic:
1. Fix the condition on when DiluteColor should be called instead of
AddWeightedColors. See discussion in bug 1216843 comment 199 to 204.
2. Simplify DiluteColor to not using premultiplied color. See discussion
in bug 1216843 comment 205 to 206.
MozReview-Commit-ID: DOXMpDkwhAK
2016-09-16 15:36:39 +10:00
Xidorn Quan
7a1f9bbbc2
Bug 1299741 part 2 - Move ClampColor to nsColor.h. r=mstange
...
MozReview-Commit-ID: 6qbVhOA3DE4
2016-09-02 14:59:28 +10:00
Xidorn Quan
43e8d0963f
Bug 1299741 part 1 - Factor out ComputeColorDistance. r=birtles
...
MozReview-Commit-ID: HojkuHyqWoT
2016-08-30 11:41:14 +10:00
Hiroyuki Ikezoe
2f360422d0
Bug 1216843 - Part 13: Implement color accumulation in filter property. r=dholbert
...
MozReview-Commit-ID: LJNYUYNIdN2
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
07e3fe6697
Bug 1216843 - Part 12: Factor out AddWeightedFilterList. r=dholbert
...
MozReview-Commit-ID: 6PwAFJ2pia0
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
5ae83d8bc3
Bug 1216843 - Part 11: Make AddFilterFunction and AddFilterFunctionImpl return UniquePtr and rename them to AddWeightedFilterXX. r=dholbert
...
MozReview-Commit-ID: 3hofHkvcR6G
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
ed72b73586
Bug 1216843 - Part 10: Implement box-shadow/text-shadow color accumulation. r=dholbert
...
MozReview-Commit-ID: CkKOaDN6SPo
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
980dc746c4
Bug 1216843 - Part 9: Factor out AddWeightedShadowList. r=dholbert
...
MozReview-Commit-ID: Fm6RDSUwYpU
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
de9805b791
Bug 1216843 - Part 8: Make AddShadowItems() return UniquePtr and rename it to AddWeightedShadowItems(). r=dholbert
...
MozReview-Commit-ID: 2Sok2MngunC
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
703a1b6220
Bug 1216843 - Part 7: Implement color accumulation. r=dholbert
...
MozReview-Commit-ID: Ic7dIrZWvih
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
186000e701
Bug 1216843 - Part 6: Add GetPremultipliedColorComponents. r=dholbert
...
MozReview-Commit-ID: BprigZaV9C2
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
b85e09f90d
Bug 1216843 - Part 5: Reuse AddWeightedColors and DiluteColor in AddShadowItems(). r=dholbert
...
Now we can modify AddWeightedColors to use for accumulation.
MozReview-Commit-ID: JQb2fhhDj7g
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
9968efb81b
Bug 1216843 - Part 4: Pass nsCSSValue& to AddWeightedColors and DiluteColor. r=dholbert
...
MozReview-Commit-ID: I9ckddkhYqj
2016-09-13 11:48:45 +09:00
Hiroyuki Ikezoe
e63da2b1c6
Bug 1216843 - Part 3: Use nsCSSValue instead of nscolor to store over 1.0 color components as an accumulated value so that we can correctly calculate intermediate values in interpolation. r=dholbert
...
MozReview-Commit-ID: GYdqYZA4xXf
2016-09-13 11:48:44 +09:00
Hiroyuki Ikezoe
68331a33cc
Bug 1216843 - Part 2: Implement effect iteration composition. r=birtles, r=smaug
...
MozReview-Commit-ID: 6u7WtXwL3y3
2016-09-13 11:48:44 +09:00
Manish Goregaokar
49b3b83008
Bug 1300337 - Replace None_ variants from nsStyleConsts.h with None; r=heycam,TYLin
...
MozReview-Commit-ID: CxHzbEzjLxT
2016-09-04 00:16:58 +05:30
Cameron McCormack
0f1f5ab560
Bug 1297963 - Part 1: Preserve base URI on URLValueData objects. r=emilio
...
MozReview-Commit-ID: Amjz1AcdxwN
2016-09-03 00:22:47 +10:00
Ryan VanderMeulen
baab66fb35
Backed out 5 changesets (bug 1298768, bug 1297963) for causing widespread mochitest-bc failures.
...
Backed out changeset dedd56fa5c54 (bug 1297963 )
Backed out changeset bc1ac59cfe8f (bug 1297963 )
Backed out changeset a2e337d5aa02 (bug 1297963 )
Backed out changeset e73da71408a3 (bug 1297963 )
Backed out changeset 56f8bca8f8e8 (bug 1298768)
CLOSED TREE
2016-09-01 08:05:43 -04:00
Cameron McCormack
0f5b6df255
Bug 1297963 - Part 1: Preserve base URI on URLValueData objects. r=emilio
...
MozReview-Commit-ID: EqdYVp9JPsW
2016-08-29 18:17:26 +08:00
Ryan VanderMeulen
b098a1a45d
Merge autoland to m-c. a=merge
2016-08-31 09:52:43 -04:00