Commit Graph

256 Commits

Author SHA1 Message Date
Daniel Holbert
b2b5cf7068 Bug 1357117 part 2: Add flag to distinguish between -moz & -webkit prefixed gradient expressions. r=heycam
This patch doesn't change our behavior -- we won't actually act on the new flag
until the next patch in this series.

MozReview-Commit-ID: EONsLM54eG1
2017-04-25 11:48:39 -07:00
Eric Rahm
6021db5857 Bug 1356060 - Just use nsString in URLValueData. r=heycam
This switches over from using nsStringBuffer to nsString for URLValueData's
|mString| member. This avoids various tedious conversions and can provide
potential performance improvements by avoiding length calculations.

MozReview-Commit-ID: 5eRifUZrAso
2017-04-13 15:18:25 -07:00
cku
b1c9fe3f9f Bug 1354772 - Part 2. Compute URLValueData::mMightHaveRef when need. r=heycam
MozReview-Commit-ID: 8t5tKrjB1cz
2017-04-10 16:41:51 +08:00
cku
c77e7448d3 Bug 1354772 - Part 1. Compute URLValueData::mIsLocalRef when need. r=heycam
MozReview-Commit-ID: 77pcTcaScF0
2017-04-10 17:25:48 +08:00
Xidorn Quan
93655e51b9 Bug 1343964 part 1 - Move URLExtraData into its own header. r=heycam
This patch does the following in addition to a simple move:
* change the type of the pointers from RefPtr to nsCOMPtr
* move it from mozilla::css namespace to mozilla

MozReview-Commit-ID: 72MYq6kWm4s
2017-04-04 10:04:13 +10:00
Xidorn Quan
95cf226194 Bug 1351957 - Create URLExtraData for holding base uri, referrer, and principal. r=heycam
MozReview-Commit-ID: 1wqTb3kvvWh
2017-03-30 18:54:48 +11:00
Bobby Holley
6225c327b9 Bug 1350244 - Use threadsafe refcounts for all nsCSSValue arrays. r=heycam
MozReview-Commit-ID: AfEqX8btQnz
2017-03-29 11:05:23 -07:00
Bobby Holley
4b8a301a62 Bug 1350244 - Back out bug 1348606 part 2 (Get rid of CSSVALUE_LIST_FOR_EXTRA_VALUES). r=me
This reverts commit 0ea54a26e3dd1455c148c67d6f8080b01990309b.

MozReview-Commit-ID: 3gVCoPnGtAS
2017-03-29 11:05:22 -07:00
Bobby Holley
c2e3d797d1 Bug 1350244 - Back out bug 1348606 part 3 (Inline nsCSSValue::Array::SizeOfIncludingThis). r=me
This reverts commit 0afb8c9034ea1d59d25dac863c9f30430215773a.

MozReview-Commit-ID: IAOnqb5K3J7
2017-03-29 11:05:20 -07:00
Bobby Holley
14b2b57a53 Bug 1350244 - Back out bug 1348606 part 4 (Turn nsCSSValue::Array into a macro). r=me
This reverts commit a9d5006f7fb8c2b774c5ac65876c071a4d4d2c3e.

MozReview-Commit-ID: 4pjeyYyHaq3
2017-03-29 11:05:18 -07:00
Bobby Holley
b86b97cc10 Bug 1350244 - Back out bug 1348606 part 5 (Use a threadsafe array for counters). r=me
This reverts commit 07301f1c3f71b36dbe2345e8faa9bc6d643cfc97.

MozReview-Commit-ID: 8tLjUhki2C1
2017-03-29 11:05:17 -07:00
Bobby Holley
c374cf6caa Bug 1348606 - Use a threadsafe array for counters. r=xidorn
MozReview-Commit-ID: KgTgcD5mGqr
2017-03-23 10:56:49 -07:00
Bobby Holley
c4354f9f5c Bug 1348606 - Turn nsCSSValue::Array into a macro. r=xidorn
MozReview-Commit-ID: LZDUi6kwWH5
2017-03-23 10:56:47 -07:00
Bobby Holley
b30cb4dc0b Bug 1348606 - Inline nsCSSValue::Array::SizeOfIncludingThis. r=xidorn
This will make it easier to macro-ize this stuff.

MozReview-Commit-ID: Hcmg6yaTTdt
2017-03-23 10:56:46 -07:00
Bobby Holley
b6e8c494bf Bug 1348606 - Get rid of CSSVALUE_LIST_FOR_EXTRA_VALUES. r=xidorn
This makes it more annoying to put the class definition in a macro,
which we do in the next patch.

MozReview-Commit-ID: 443V7z4sMfi
2017-03-23 10:56:46 -07:00
Bobby Holley
dc3cfed5ff Bug 1348606 - Use the usual macro for the refcounts in nsCSSValue::Array. r=xidorn
MozReview-Commit-ID: K3FlZIDymBD
2017-03-23 10:56:46 -07:00
Xidorn Quan
e1027d5733 Bug 1345804 part 2 - Add new AtomIdent unit to nsCSSValue. r=heycam
MozReview-Commit-ID: 4Qc3POvHrJg
2017-03-10 15:53:56 +11:00
Xidorn Quan
38f3260c1b Bug 1315601 part 1 - Move type_traits include down in nsCSSValue.h. r=heycam
MozReview-Commit-ID: 9ptq7e7NlSB
2017-02-22 15:04:30 +11:00
cku
c71480a03d Bug 1345377 - Implement URLValueData::HasRef. r=heycam
Improve code readability.

MozReview-Commit-ID: HDJ7TeyqCpN
2017-03-07 17:31:48 +08:00
Hiroyuki Ikezoe
ca7d37428c Bug 1332657 - Part 2: Implement clone_transform. r=heycam,manishearth
The implementation of clone_transform is an adaptation of set_transform.

MozReview-Commit-ID: ESE1ha0x666
2017-02-03 14:41:29 +09:00
Xidorn Quan
1f17806a81 Bug 1326125 - Rename enum version of SetIntValue to SetEnumValue. r=heycam
MozReview-Commit-ID: EbXK827IRFP
2016-12-29 10:22:49 +11:00
Andrew McCreight
209d4ee048 Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd
f2d50c26f4 Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight
2f93d6e48d Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
Manish Goregaokar
486ae2d4e5 Bug 1314200 - stylo: support transform; r=heycam
MozReview-Commit-ID: 50YhZtjF3vH
2016-10-31 16:30:43 -07:00
Tobias Schneider
0b1c8478a1 Bug 1243846 - Implement Intersection Observer API. r=mrbkap, r=mstange 2016-10-28 10:24:00 -04:00
Cameron McCormack
b2af7454a9 Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
MozReview-Commit-ID: F763Dv0Nfzp
2016-10-20 08:36:21 +08:00
Cameron McCormack
bd36180130 Bug 1288302 - Part 1: Make css::ImageValue constructable OMT. r=xidorn
MozReview-Commit-ID: 9J2E7VrCWJ1
2016-10-20 08:36:14 +08:00
JerryShih
7a3abdc8ec Bug 1295456 - Support <angle> value for hue component in CSS hsl() color function. r=dholbert
MozReview-Commit-ID: EYhbAEOlpLm
2016-10-16 03:15:36 +08:00
Cameron McCormack
8d044c7f82 Bug 1298774 - Part 3: Copy helper functions from FragmentOrURL to URLValueData. r=cjku
MozReview-Commit-ID: 9gs8d0fMdYJ
2016-10-11 14:56:11 +08:00
Cameron McCormack
4925674adc Bug 1298774 - Part 2: Rename URLValueData::mLocalURLFlag to match FragmentOrURL::mIsLocalRef naming. r=cjku
MozReview-Commit-ID: A9NHxMfPRSF
2016-10-11 14:56:11 +08:00
Cameron McCormack
3e34afaa1b Bug 1298774 - Part 1: Rename URLValueData::operator== so that we don't blithely call it OMT. r=cjku
MozReview-Commit-ID: K0PxT0196ex
2016-10-11 14:56:11 +08:00
Cameron McCormack
b4a2b53772 Bug 1298774 - Part 0: Move refcounting from URLValue and ImageValue up to URLValueData. r=cjku
MozReview-Commit-ID: 9A2pAnHaBVD
2016-10-11 14:56:11 +08:00
Xidorn Quan
dcf6c9d7d4 Bug 1266621 part 4 - Remove constructors of StyleComplexColor. r=heycam
So that they can be put inside anonymous structs and unions.

MozReview-Commit-ID: 8OMxkSZJEOz
2016-09-27 14:00:05 +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
8769e298cf Bug 1299741 part 5 - Add css::RGBAColorData struct. r=heycam
This struct will be used as part of the storage type of ComplexColor in
nsCSSValue. Also this will be used to help unifying color calculation in
StyleAnimationValue.

MozReview-Commit-ID: C5UUI5DNnRM
2016-09-16 09:24:29 +10:00
Jeremy Chen
43a4f4efc9 Bug 1297306 - part4:rename IsEnumFittingWithin with EnumTypeFitsWithin and move it to mfbt/EnumTypeTraits.h. r=froydnj
With this change, we could share this EnumTypeTraits between files easily.

MozReview-Commit-ID: 9Q2augati7l
2016-09-07 10:20:16 +08:00
Cameron McCormack
95d2aead22 Bug 1297963 - Part 4: Remove unused URLValueData comparison functions. r=emilio
MozReview-Commit-ID: 8BDaCXq1O5A
2016-09-03 00:22:48 +10:00
Cameron McCormack
d2a13991d1 Bug 1297963 - Part 2: Add URLValueData comparison functions that work OMT. r=emilio
MozReview-Commit-ID: B3pldGVZFl1
2016-09-03 00:22:47 +10:00
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
6d2379c6f4 Bug 1297963 - Part 4: Remove unused URLValueData comparison functions. r=emilio
MozReview-Commit-ID: 2rISNvW7q2y
2016-08-29 18:17:26 +08:00
Cameron McCormack
8d6ef48434 Bug 1297963 - Part 2: Add URLValueData comparison functions that work OMT. r=emilio
MozReview-Commit-ID: IfTsuOJ0iXI
2016-08-29 18:17:26 +08: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
Hiroyuki Ikezoe
03e4dc35f0 Bug 1295107 - Part 1: Extend eCSSUnit_PercentageRGBAColor/eCSSUnit_PercentageRGBColor to store values greater than 100%. r=dholbert
nsCSSValue::GetColorValue() for eCSSUnit_PercentageRGBAColor/eCSSUnit_PercentageRGBColor
returns a clamped value, nsCSSValueFloatColor::Comp1()/Comp2()/Comp3()/Alpha()
returns a raw value instead.
2016-09-01 07:20:08 +09:00
Emilio Cobos Álvarez
28c92a0716 Bug 1292930: Handle the case of having unresolved URIs in nsStyleDisplay::mBinding. r=heycam
This handles the case of the URIs not being resolved during stylo's parallel
traversal.

MozReview-Commit-ID: ExYsFbeaYWo
2016-08-16 16:10:16 -07: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
Manish Goregaokar
00b57a4a6e Bug 1290864 - Standardize serialization of <position> values in <basic-shape>; r=xidorn
MozReview-Commit-ID: KooW1OqtTUb
2016-08-05 19:48:13 +05:30
cku
3033ed2332 Bug 652991 - Part 1. Carry local-url-flag in URLValueData. r=heycam
MozReview-Commit-ID: 8Qvaa27LCv0
2016-06-15 16:11:05 +01:00
Cameron McCormack
547ed4efcb Bug 1290023 - Allow enum class values to be passed to other nsCSSProps methods and stored in nsCSSValue/StyleAnimationValue. r=xidorn
MozReview-Commit-ID: 62usVamI3GA
2016-07-29 16:18:48 +08:00