Commit Graph

245 Commits

Author SHA1 Message Date
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
Nicholas Nethercote
177f76c5cc Bug 1298722 - Use MOZ_MUST_USE in StyleAnimationValue. r=birtles. 2016-08-30 16:10:59 +10:00
Neerja Pancholi
6ae194574b 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
2016-08-30 17:21:03 -07:00
tlin@mozilla.com
ac64370cdb Bug 1295084 Part 4 - Rename Position::PositionCoord to Position::Coord. r=dholbert 2016-08-25 09:59:51 +00:00
tlin@mozilla.com
299b487db0 Bug 1295084 Part 3 - Move nsStyleImageLayers::Position to mozilla::Position. r=dholbert 2016-08-25 09:59:51 +00:00
Hiroyuki Ikezoe
e1cd17f477 Bug 1294614 - Part 3: Add DiluteColor(). r=dholbert.
MozReview-Commit-ID: A82Oesv8aor
2016-08-26 09:10:25 +09:00
Hiroyuki Ikezoe
acb9e107bf Bug 1294614 - Part 2: Factor out AddWeightedColors. r=dholbert
MozReview-Commit-ID: 2DhPWr7tRA1
2016-08-26 09:10:25 +09:00
Sebastian Hengst
94b187bdc0 Backed out changeset e262963372ae (bug 1294614) 2016-08-25 13:45:09 +02:00
Sebastian Hengst
a38cc88799 Backed out changeset ac729cd10150 (bug 1294614) 2016-08-25 13:45:05 +02:00
Hiroyuki Ikezoe
275c389ccf Bug 1294614 - Part 3: Add DiluteColor(). r=dholbert.
MozReview-Commit-ID: AKfVLgeN9ZO
2016-08-25 09:27:42 +09:00
Hiroyuki Ikezoe
eded258923 Bug 1294614 - Part 2: Factor out AddWeightedColors. r=dholbert
MozReview-Commit-ID: HdmrI1S7BGE
2016-08-25 09:08:34 +09:00
Jonathan Chan
e201b93c16 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
2016-08-16 18:37:48 -07:00
Gregory Szorc
3bcd02ebea 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
2016-08-16 17:50:40 -07:00
Wes Kocher
bb9e0744e6 Merge inbound to central, a=merge
a=release to get around the webidl hook for a comment-only change
2016-08-16 17:05:30 -07:00
Daisuke Akatsuka
98346869c2 Bug 1277433 - Part 7: Remove eStyleAnimType_EnumU8 related codes. r=birtles
MozReview-Commit-ID: nVN8r0QK4u
2016-08-16 14:30:16 +09:00
Daisuke Akatsuka
4edb206914 Bug 1277433 - Part 5: Replace eStyleAnimType_EnumU8 to eStyleAnimType_Discrete. r=birtles
MozReview-Commit-ID: IeQQ9rdcWD2
2016-08-16 14:30:16 +09:00
Daisuke Akatsuka
f2b0e52be2 Bug 1277433 - Part 1: Use discrete animation for appropriate CSS Alignment properties. r=dholbert,heycam
MozReview-Commit-ID: BHtzuwJOuB5
2016-08-16 14:29:21 +09:00
Jonathan Chan
23ccd0531f 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
2016-08-09 16:28:19 -07:00
cku
a46372a5ca Bug 1269990 -Refuse to interpolate when animating between clip-path shape values that have different reference boxes. r=dholbert
MozReview-Commit-ID: JzWestyfGoT
2016-08-08 18:13:42 +08:00
Ting-Yu Lin
db41f5c015 Bug 1288626 Part 6 - Generalize StyleClipPath to be template struct StyleShapeSource. r=heycam
The only difference between clip-path and shape-outside is the reference box
enum, so I generalize StyleClipPath to be a template struct StyleShapeSource to
accommodate both. I'll have to move all the method definition to the header to
make the linker happy.

The only logic change is calling operator==() instead of EqualURIs to compare
urls in StyleShapeSource::operator==().

MozReview-Commit-ID: LOBGVVpnnB
2016-08-04 13:43:08 +08:00
Ting-Yu Lin
0a01c9eca4 Bug 1288626 Part 5 - Rename StyleClipPathType to StyleShapeSourceType. r=heycam
StyleClipPathType will be generalized to StyleShapeSourceType to match this
change.

MozReview-Commit-ID: Igaad2EoSSt
2016-08-04 11:51:20 +08:00
Ting-Yu Lin
00dc2871aa Bug 1288626 Part 4 - Rename nsStyleClipPath to StyleClipPath. r=heycam
MozReview-Commit-ID: 2iT4elvtTGd
2016-07-28 10:29:33 +08:00
Ting-Yu Lin
403c83e1f8 Bug 1288626 Part 3 - Rename nsStyleBasicShape to StyleBasicShape. r=heycam
MozReview-Commit-ID: 9NUKpZ4s4kG
2016-07-27 18:14:36 +08:00
Ting-Yu Lin
f4871b826d Bug 1288626 Part 2 - Use basic shape enum class defined in nsStyleConsts.h. r=heycam
Rename StyleBasicShape to StyleBasicShapeType in nsStyleConsts.h, and
replace the old enum nsStyleBasicShape::Type by the enum class
StyleBasicShapeType.

Also, replace NS_ASSERTION() by MOZ_ASSERT().

MozReview-Commit-ID: EuS4ZtYKsk6
2016-07-27 17:59:33 +08:00
cku
31c970fe69 Bug 652991 - Part 9. Using FragmentOrURL to represent PanitServer url. r=heycam
MozReview-Commit-ID: IZf0fGantoB
2016-07-05 01:00:15 +08:00