Commit Graph

263 Commits

Author SHA1 Message Date
Sylvestre Ledru
4e9cf83ee8 Bug 1378712 - Remove all trailing whitespaces r=Ehsan
MozReview-Commit-ID: Kdz2xtTF9EG

--HG--
extra : rebase_source : 7235b3802f25bab29a8c6ba40a181a722f3df0ce
2017-07-06 14:00:35 +02:00
Boris Chiou
430a10180c Bug 1373712 - Part 1: Fix ParseHue() for inf value. r=dholbert
MozReview-Commit-ID: C9dCbbnFP3j

--HG--
extra : rebase_source : 4cc589647577c27434886f8df88c5ef9a9d10412
2017-06-21 12:50:11 +08:00
cku
cf9b91516f Bug 1310885 - Part 4. (gecko) Allow ImageValue::Intialize be called more then once, but only LoadImage in the first call.
MozReview-Commit-ID: IjL2e2LIy0f

--HG--
extra : source : 140629aa3db83ddc1295dc32120ea2ed5b0bfa4a
2017-05-04 16:49:30 +08:00
Phil Ringnalda
0b5026dbf2 Backed out 3 changesets (bug 1310885) for heap write hazard failures
Backed out changeset 77352010d8e8 (bug 1310885)
Backed out changeset 9245a2fbb974 (bug 1310885)
Backed out changeset 7c2db290c4b6 (bug 1310885)

MozReview-Commit-ID: 7JWuxt9QDO0
2017-05-11 23:03:31 -07:00
cku
dce4536c2f Bug 1310885 - Part 4. (gecko) Allow ImageValue::Intialize be called more then once, but only LoadImage in the first call. r=haycam
MozReview-Commit-ID: IjL2e2LIy0f

--HG--
extra : rebase_source : 7ba6688ca3ca09f30909014ecc45f182b47a3e69
extra : source : 11fbcc3d133ed19e658c297aaf07d9c96280650c
2017-05-04 16:49:30 +08:00
Xidorn Quan
98f239480d Bug 1362302 part 1 - Use nsIAtom for counter style names. r=dbaron
MozReview-Commit-ID: 5VK6BgGRVRs

--HG--
extra : rebase_source : 104a28eddeb7984bd9f691693cf8debc1387fb87
2017-05-06 11:34:35 +10:00
Anthony Ramine
a2e7b85307 Bug 1361985 - Add Servo bindings for GridTemplateAreasValue. r=Manishearth
MozReview-Commit-ID: fi5j076kwH

--HG--
extra : rebase_source : 380b1a60a5385d762ee2f73bb089aaefb86c0c53
2017-05-04 12:24:01 +02:00
Daniel Holbert
4613644133 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

--HG--
extra : rebase_source : cabd4a140d575794a8a656c47692bb9d3a02de88
2017-04-25 11:48:39 -07:00
Eric Rahm
152fcf01fe 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
db1a6cab83 Bug 1354772 - Part 2. Compute URLValueData::mMightHaveRef when need. r=heycam
MozReview-Commit-ID: 8t5tKrjB1cz

--HG--
extra : rebase_source : cda9e15dcb51aeedf6bb532dd702247e60e59304
2017-04-10 16:41:51 +08:00
cku
3509778fd7 Bug 1354772 - Part 1. Compute URLValueData::mIsLocalRef when need. r=heycam
MozReview-Commit-ID: 77pcTcaScF0

--HG--
extra : rebase_source : 2c609464dd85334b8a7dc747b65d72a646fbebc0
2017-04-10 17:25:48 +08:00
Xidorn Quan
2df49dbac2 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

--HG--
extra : rebase_source : 400fe0d7cc422f22592c302cfd4e457830b77e3e
2017-04-04 10:04:13 +10:00
Xidorn Quan
e3e4554871 Bug 1351957 - Create URLExtraData for holding base uri, referrer, and principal. r=heycam
MozReview-Commit-ID: 1wqTb3kvvWh

--HG--
extra : rebase_source : cae3dba21c916ab0f52056bd9db215249b650cd3
2017-03-30 18:54:48 +11:00
Bobby Holley
d627b6741e 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
7522be290d 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
2605f19ed7 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
1dbaa10ad8 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
be7a7ceab0 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
fee01f78fb Bug 1348606 - Use a threadsafe array for counters. r=xidorn
MozReview-Commit-ID: KgTgcD5mGqr
2017-03-23 10:56:49 -07:00
Bobby Holley
b9b58624ea Bug 1348606 - Turn nsCSSValue::Array into a macro. r=xidorn
MozReview-Commit-ID: LZDUi6kwWH5
2017-03-23 10:56:47 -07:00
Bobby Holley
51f4af4bce 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
c64223ca7c 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
24aabf9308 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
404a4a6ca2 Bug 1345804 part 2 - Add new AtomIdent unit to nsCSSValue. r=heycam
MozReview-Commit-ID: 4Qc3POvHrJg

--HG--
extra : rebase_source : 80b4ca720db36d47fc0b9e69bd6c4f03de758ce2
2017-03-10 15:53:56 +11:00
Xidorn Quan
ce71746090 Bug 1315601 part 1 - Move type_traits include down in nsCSSValue.h. r=heycam
MozReview-Commit-ID: 9ptq7e7NlSB

--HG--
extra : rebase_source : c73bec7d8ec0a86d8cc71b36f3c4b032afb40248
2017-02-22 15:04:30 +11:00
cku
35c9e03f96 Bug 1345377 - Implement URLValueData::HasRef. r=heycam
Improve code readability.

MozReview-Commit-ID: HDJ7TeyqCpN

--HG--
extra : rebase_source : 228b5915fcf002b8f27283b9d0df4bf2b544b2f1
2017-03-07 17:31:48 +08:00
Hiroyuki Ikezoe
287d10e9c5 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
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
Andrew McCreight
fccb0645ed Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd
826598caba 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
e31b5489da Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05: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
Tobias Schneider
5b2ef3c1db Bug 1243846 - Implement Intersection Observer API. r=mrbkap, r=mstange 2016-10-28 10:24:00 -04:00
Cameron McCormack
2216900ad3 Bug 1288302 - Part 3: Add nsStyleImageRequest. r=xidorn,bholley
MozReview-Commit-ID: F763Dv0Nfzp
2016-10-20 08:36:21 +08:00
Cameron McCormack
9cc773db64 Bug 1288302 - Part 1: Make css::ImageValue constructable OMT. r=xidorn
MozReview-Commit-ID: 9J2E7VrCWJ1
2016-10-20 08:36:14 +08:00
JerryShih
158cde6c2f Bug 1295456 - Support <angle> value for hue component in CSS hsl() color function. r=dholbert
MozReview-Commit-ID: EYhbAEOlpLm

--HG--
extra : rebase_source : 3b898452000ea5f0f0f1819dac2d93d0a6d1c426
extra : histedit_source : a929cf0e25b0035218c4ea61abfc9135a05def15
2016-10-16 03:15:36 +08:00
Cameron McCormack
5ed807d5a2 Bug 1298774 - Part 3: Copy helper functions from FragmentOrURL to URLValueData. r=cjku
MozReview-Commit-ID: 9gs8d0fMdYJ

--HG--
extra : rebase_source : 18d4ad350d529c4da9188f8c7ff6a2cece9273c8
2016-10-11 14:56:11 +08:00
Cameron McCormack
b490466d48 Bug 1298774 - Part 2: Rename URLValueData::mLocalURLFlag to match FragmentOrURL::mIsLocalRef naming. r=cjku
MozReview-Commit-ID: A9NHxMfPRSF

--HG--
extra : rebase_source : 702e3eaecb0aaf8b4c7514f626aec8049a11b09b
2016-10-11 14:56:11 +08:00
Cameron McCormack
ff79414111 Bug 1298774 - Part 1: Rename URLValueData::operator== so that we don't blithely call it OMT. r=cjku
MozReview-Commit-ID: K0PxT0196ex

--HG--
extra : rebase_source : 4a4a01bb55b867a793c35762a3b08eb785440fa4
2016-10-11 14:56:11 +08:00
Cameron McCormack
824f7797b6 Bug 1298774 - Part 0: Move refcounting from URLValue and ImageValue up to URLValueData. r=cjku
MozReview-Commit-ID: 9A2pAnHaBVD

--HG--
extra : rebase_source : 43bbb685c65abc733011b63ad7f56874b10b3f8d
2016-10-11 14:56:11 +08:00
Xidorn Quan
ea44b70aba 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

--HG--
extra : rebase_source : 9626d350649f4ba6dba597e3df05fe1829307610
2016-09-27 14:00:05 +10:00
Xidorn Quan
154df81de1 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

--HG--
extra : rebase_source : 722d2aee06e59cdf061d0daae43d8dbc0a9641b4
2016-09-16 15:30:35 +10:00
Xidorn Quan
ee132df016 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

--HG--
extra : rebase_source : b76c7d39ca21e4316a09524bbbc918a12ab81194
2016-09-16 09:24:29 +10:00
Jeremy Chen
722ad026a3 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

--HG--
extra : rebase_source : b7d9fc95d9d7722ba3eb99ec9798a64ebdbeb484
2016-09-07 10:20:16 +08:00
Cameron McCormack
f82c259e8f 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
4bf1ed7842 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
a95bd0ceec 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
23932b1a58 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
a8a8f067b1 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
0b8daf1a8b 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