Nicholas Nethercote
7dbfdaf890
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
2017-10-03 09:05:19 +11:00
Cameron McCormack
0adc428de6
Bug 1397626 - Part 3: Use SharedFontList to store font-family specified and computed values. r=xidorn
...
MozReview-Commit-ID: J3MNO2un2ov
2017-10-03 12:27:45 +08:00
Cameron McCormack
4ad8de31f3
Bug 1397626 - Part 2: Replace uses of FontFamilyListRefCnt with SharedFontList. r=xidorn
...
MozReview-Commit-ID: 7HoBae9UOks
2017-10-02 10:24:25 +08:00
Cameron McCormack
a44995e756
Bug 1403073 - stylo: Fix some bindgen object layout issues. r=xidorn
...
MozReview-Commit-ID: CnW4J2ZlmfJ
2017-09-26 15:06:33 +08:00
Nicholas Nethercote
5089385c78
Bug 1399758 - Measure ImageValue objects. r=heycam.
...
We have about 11,500 of these when loading gmail in a Stylo-enabled build, from
SpecifiedUrls; the objects themselves account for about 1.3 MiB of memory, and
the strings within them about 2.9 MiB.
We also have a very small number of them on the Gecko side.
2017-09-14 18:48:19 +10:00
Nicholas Nethercote
41a5468e25
Bug 1400100 - Shrink css::ImageValue. r=njn.
...
This reduces sizeof(ImageValue) from 104 to 96. When heap-allocated, this moves
it from the 112 byte bin to the 96 byte bin. Loading gmail with Stylo, there
are about 11,500 ImageValues on the heap, so this saves about 184,000 bytes.
MozReview-Commit-ID: JLe2cJ54IlL
2017-09-15 14:37:12 +10:00
Josh Matthews
64ccd9b6c6
Bug 1397971 - Share strings in URLDataValue with Rust. r=heycam
2017-09-15 13:11:37 -07:00
Sebastian Hengst
bee1310a1f
Backed out changeset 1536fa69bad4 (bug 1399758) for Hazard failures. r=backout
2017-09-15 10:00:52 +02:00
Nicholas Nethercote
fb472f685b
Bug 1399758 - Measure ImageValue objects. r=heycam.
...
We have about 11,500 of these when loading gmail in a Stylo-enabled build, from
SpecifiedUrls; the objects themselves account for about 1.3 MiB of memory, and the
strings within them about 2.9 MiB.
We also have a very small number of them on the Gecko side.
MozReview-Commit-ID: AduCIaDIzGG
2017-09-14 18:48:19 +10:00
Brad Werth
52b929d34a
Bug 1383296 Part 1: Remove all uses of the nsCSSValue::Serialization enum, now that it no longer has multiple values. r=heycam
...
MozReview-Commit-ID: n6px5hNHtB
2017-07-21 17:26:35 -07:00
Brad Werth
06ba7cea12
Bug 1302513 Part 4: Remove the nsCSSValue::Serialization eAuthorSpecified enum, which is no longer used. r=dholbert
...
MozReview-Commit-ID: 1gmiFyULMsZ
2017-07-21 14:26:36 -07:00
Cameron McCormack
677003b8bf
Bug 1382964 - Part 2: Assert we're on the main thread in nsCSSValueTokenStream::operator==. r=xidorn
...
This helps the heap write analysis believe that the nsCSSValue comparison
that nsStyleUIReset::CalcDifference does (for mSpecifiedWindowTransform,
which won't have nsCSSValueTokenStream values in it) is safe.
MozReview-Commit-ID: 4JvPC735D7i
2017-07-22 10:11:06 +08:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Boris Chiou
4e6b87296a
Bug 1373712 - Part 1: Fix ParseHue() for inf value. r=dholbert
...
MozReview-Commit-ID: C9dCbbnFP3j
2017-06-21 12:50:11 +08:00
cku
c6499b81da
Bug 1310885 - Part 4. (gecko) Allow ImageValue::Intialize be called more then once, but only LoadImage in the first call.
...
MozReview-Commit-ID: IjL2e2LIy0f
2017-05-04 16:49:30 +08:00
Phil Ringnalda
c80de42a91
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
f6d604f05a
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
2017-05-04 16:49:30 +08:00
Xidorn Quan
45a9721391
Bug 1362302 part 1 - Use nsIAtom for counter style names. r=dbaron
...
MozReview-Commit-ID: 5VK6BgGRVRs
2017-05-06 11:34:35 +10:00
Anthony Ramine
382c17706f
Bug 1361985 - Add Servo bindings for GridTemplateAreasValue. r=Manishearth
...
MozReview-Commit-ID: fi5j076kwH
2017-05-04 12:24:01 +02:00
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