Commit Graph

384 Commits

Author SHA1 Message Date
Valentin Gosu
273bb1a24d Bug 1448330 - Make nsIURI.clone a private method r=mayhemer
MozReview-Commit-ID: 1efpeaEPaXP
2018-06-14 13:05:43 +02:00
Emilio Cobos Álvarez
4b8b5e1717 Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Emilio Cobos Álvarez
d8f914643f Bug 1463386: Remove eCSSUnit_Image. r=heycam
MozReview-Commit-ID: 9OX6iW7Lr5Q
2018-05-22 13:34:17 +02:00
Jonathan Watt
bd03a860aa Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Emilio Cobos Álvarez
c36448e343 Bug 1363875: [css-align]: Rename justify-items: auto to legacy. r=mats,xidorn
MozReview-Commit-ID: Jfwib2XDmSw
2018-04-20 02:07:04 +02:00
Jonathan Watt
9243470005 Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio 2018-04-13 20:34:37 +01:00
Emilio Cobos Álvarez
e2d66e585e Bug 1452987: Simplify ImageValue. r=heycam
MozReview-Commit-ID: 5LRaaEPSSdY
2018-04-10 16:54:57 +02:00
Emilio Cobos Álvarez
a3d8e5383d Bug 1452947: Remove useless PtrHolder / PtrHandle stuff now that URIs are thread-safe. r=heycam
MozReview-Commit-ID: 5f2B8bqBnDp
2018-04-11 08:41:49 +02:00
Xidorn Quan
8d4e3122a2 Bug 1448763 part 9 - Remove nsCSSRect. r=emilio
MozReview-Commit-ID: BOsjszpdKwt
2018-04-05 18:27:33 +10:00
Xidorn Quan
dd36f9a2e8 Bug 1448763 part 8 - Remove CSSCalc.h. r=emilio
MozReview-Commit-ID: eecZRhdxH8
2018-04-05 18:27:33 +10:00
Xidorn Quan
ed2c54ec09 Bug 1448763 part 7 - Remove nsCSSCornerSizes. r=emilio
MozReview-Commit-ID: jjSjoskIB8
2018-04-05 18:27:33 +10:00
Xidorn Quan
efd3cd2675 Bug 1448763 part 6 - Remove nsCSSValueTriplet. r=emilio
MozReview-Commit-ID: 29GtK1gtreU
2018-04-05 18:27:33 +10:00
Xidorn Quan
bdbc065c2a Bug 1448763 part 5 - Remove all color stuff from nsCSSValue. r=emilio
MozReview-Commit-ID: DQX0HOr8R8
2018-04-05 18:27:33 +10:00
Xidorn Quan
77ef20f203 Bug 1448763 part 4 - Remove nsCSSValueGradient and its friends. r=emilio
MozReview-Commit-ID: JoYZyud2Wtu
2018-04-05 18:27:33 +10:00
Xidorn Quan
1f5e0cdd52 Bug 1448763 part 3 - Remove nsCSSValueTokenStream. r=emilio
MozReview-Commit-ID: 79CPOfWbo7t
2018-04-05 18:27:33 +10:00
Xidorn Quan
9d17ff4010 Bug 1448763 part 2 - Remove serialization code for specified value. r=emilio
MozReview-Commit-ID: 2DTGHb7GH4T
2018-04-05 18:27:33 +10:00
Emilio Cobos Álvarez
ff6075119a Bug 1448661: Remove unused CSS_PROPERTY_IS_ALIAS flag. r=jwatt
MozReview-Commit-ID: 10B4pi2Zwsx
2018-03-25 18:24:01 +02:00
Emilio Cobos Álvarez
b1a35fbef7 Bug 1447358: Unifdef the old style system code. r=jwatt
Summary:
This has been automatically generated using:

  http://dotat.at/prog/unifdef/

And:

find $OBJDIR -type f -name '*.h' |
while read FILE; do
  echo "$FILE"
  unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done

find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
  echo "$FILE"
  unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done

MozReview-Commit-ID: I4NdKqbMXzJ

Reviewers: jwatt

Bug #: 1447358

Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Emilio Cobos Álvarez
a9db22c874 Bug 1442318. r=jdm
MozReview-Commit-ID: 2qfmMO4M14Z
2018-03-02 20:40:19 +01:00
Valentin Gosu
f2bb2cf231 Bug 1433958 - Change code that sets nsIURI.ref to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: 4caicZFBkcQ
2018-02-26 20:43:46 +01:00
Brad Werth
f982f5ccce Bug 1418930 Part 3: Update css::ImageValue to carry a parameter that indicates anonymous CORS headers should be used during loading. r=emilio
MozReview-Commit-ID: JJ5lZRwS6Be
2018-01-29 13:55:38 -05:00
Brad Werth
2a492fb008 Bug 1418930 Part 2: Extend ImageLoader with a parameter to add anonymous CORS headers. r=bz,emilio
MozReview-Commit-ID: LobEEXmuNZ2
2018-01-25 14:14:13 -08:00
Andreea Pavel
d12d04aff1 Backed out 5 changesets (bug 1418930) for failing web platform tests at /service-workers/service-worker/fetch-request-css-images.https.html on a CLOSED TREE
Backed out changeset c0f673033e66 (bug 1418930)
Backed out changeset b39948ba905b (bug 1418930)
Backed out changeset 8008a54aba9a (bug 1418930)
Backed out changeset 105c81284dba (bug 1418930)
Backed out changeset 27eb8c7f8025 (bug 1418930)
2018-02-03 00:18:27 +02:00
Brad Werth
a7fcc3822e Bug 1418930 Part 3: Update css::ImageValue to carry a parameter that indicates anonymous CORS headers should be used during loading. r=emilio
MozReview-Commit-ID: JJ5lZRwS6Be
2018-01-29 13:55:38 -05:00
Brad Werth
60680d8182 Bug 1418930 Part 2: Extend ImageLoader with a parameter to add anonymous CORS headers. r=bz,emilio
MozReview-Commit-ID: LobEEXmuNZ2
2018-01-25 14:14:13 -08:00
Cameron McCormack
34288f7f48 Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
MozReview-Commit-ID: CIHyPdF7Exl
2018-02-01 15:04:04 +11:00
Emilio Cobos Álvarez
c500c8566c Bug 1430817: Serialize <overflow-position> before other align bits. r=mats
Otherwise the serialisation wouldn't roundtrip with the new syntax, which fixes
the position of <overflow-position>.

Also make Servo and Gecko agree on whether to serialize "unsafe".

MozReview-Commit-ID: L3GSMk5pZ3F
2018-01-29 19:49:39 +01:00
Emilio Cobos Álvarez
5cb61b7eca Backout changeset 715eee480c0f (bug 1430817) for landing with the wrong author information. r=backout
This reverts commit 18c7bed08d17b890aaf1329e1d36f9278917af53.
2018-01-29 19:47:54 +01:00
Adrian Wielgosik
0150c06fc9 Bug 1430817: Serialize <overflow-position> before other align bits. r=mats
Otherwise the serialisation wouldn't roundtrip with the new syntax, which fixes
the position of <overflow-position>.

Also make Servo and Gecko agree on whether to serialize "unsafe".

MozReview-Commit-ID: L3GSMk5pZ3F
2018-01-29 19:45:51 +01:00
Emilio Cobos Álvarez
c4bd75ce44 Bug 1416564: Remove mozmm CSS unit. r=heycam
MozReview-Commit-ID: AU4CUq09tw4
2017-11-14 16:14:17 +01:00
Daniel Holbert
8fea3c215f Bug 1412346 part 5: (automated patch) Switch a bunch of C++ files in layout to use our standard mode lines. r=jfkthame
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: EuRsDue63tK
2017-10-27 10:33:53 -07:00
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
Nicholas Nethercote
9fda5528d2 Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ
2017-09-26 08:33:21 +10:00
Cameron McCormack
cb218c09b0 Bug 1403030 - stylo: One more followup to fix a build error. r=me 2017-09-26 10:31:10 +08:00
Bobby Holley
f468a30435 Bug 1400435 - Use a more precise check in the nsCSSValue destructor. r=xidorn
MozReview-Commit-ID: KFdgtxyOZ01
2017-09-19 22:53:23 -07: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
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
Nazım Can Altınova
ecbcd73f2e Bug 1386848 - stylo: Get proper length value from calc nsCSSValue r=xidorn
We were getting the proper app units value for transform matrix offset before
Bug 1384656. But after that bug we started using GetCalcValue() method and
it wasn't converting length to app units and this was cousing to miscalculate
translate functions in transform property.

MozReview-Commit-ID: HHlrSg00252
2017-08-04 17:36:18 -07: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
3bc5ca39ef Bug 1302513 Part 5: Simplify nsCSSValue::AppendToString, now that aSerialization can only take one value. r=dholbert
MozReview-Commit-ID: 9qJOkJTzUY2
2017-07-21 18:07:14 -07:00
Mantaroh Yoshinaga
2ee29d445e Bug 1377541 - Reorder shadow array when serializing. r=birtles
CSSparserImpl::ParserShadowItem stores shadow items in a different order that
does not match the order we use when serializing computed shadow items.

The items order of storing by parser:
 <length> <length> <length> <length> <color> <inset>
The items order of serializing:
 <color> <length> <length> <length> <length> <inset>

Spec of this serialized order is as follow:
5c46d78107

This patch will shuffle the order of this items in the shadow array when
serializing it.

MozReview-Commit-ID: CIawpYKKIRy
2017-08-01 23:22:05 +09:00
Cameron McCormack
7910a427e1 Bug 1382964 - Part 1: Don't cache URLValueData::mMightHaveRef when in a traversal. r=xidorn
MozReview-Commit-ID: 2ucnu4vuaVg
2017-07-21 16:34:20 +08:00
Andrew Osmond
0bae6517a7 Bug 1359833 - Part 5. Callers pass the loading document to imgRequestProxy::SyncClone and GetStaticRequest. r=tnikkel 2017-07-19 14:15:11 -04:00
Nicholas Nethercote
4cbdad69e6 Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
All the instances are converted as follows.

- nsAFlatString  --> nsString
- nsAFlatCString --> nsCString
2017-06-20 19:19:05 +10:00
Bevis Tseng
e6dc9e02bc Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm
MozReview-Commit-ID: LYhSWnZkq0i
2017-06-14 09:27:17 +08:00
Xidorn Quan
bd6a029cd7 Bug 1367028 part 1 - Simplify serialization of specified rect values in border-image props when possible. r=dholbert
MozReview-Commit-ID: C4mNCHqeIoX
2017-05-29 14:53:58 +10:00