Commit Graph
415 Commits
Author SHA1 Message Date
Cameron McCormack 170191a2b6 Bug 1495984 - Make css::URLValue::IsLocalRef call into CssUrlData::is_fragment. r=emilio
This fixes the issue that we should no longer be looking for control characters.



MozReview-Commit-ID: 8k89Aheq3NY

Differential Revision: https://phabricator.services.mozilla.com/D8876
2018-10-17 09:43:45 +00:00
Cameron McCormack 602e2cc27c Bug 1499408 - Part 2: Have css::URLValue get URLExtraData from its CssUrlData. r=emilio
MozReview-Commit-ID: IqZGzkHlSZD

Depends on D8874

Differential Revision: https://phabricator.services.mozilla.com/D8875
2018-10-17 09:43:32 +00:00
Cameron McCormack 2f236e0abe Bug 1499408 - Part 1: Make css::URLValue hold on to a CssUrlData, not just its serialization. r=emilio
MozReview-Commit-ID: EWcbnVtDJCS

Differential Revision: https://phabricator.services.mozilla.com/D8874
2018-10-17 12:36:49 +00:00
Emilio Cobos Álvarez 58505d0f7a Bug 1497981 - Simplify ImageLoader::LoadImage. r=heycam
Has a single caller, from which we pass the arguments. We can just avoid that.

Differential Revision: https://phabricator.services.mozilla.com/D8276
2018-10-15 12:24:58 +00:00
Emilio Cobos Álvarez c112dd7ef7 Bug 1498734 - Always compute angle values to degrees. r=xidorn
This matches the spec, https://drafts.csswg.org/css-values/#angles, which says:

> All <angle> units are compatible, and deg is their canonical unit.

And https://drafts.csswg.org/css-values/#compat, which says:

>When serializing computed values [...], compatible units [...] are converted into a single canonical unit.

And also other implementations (Blink always serializes angles as degrees in
computed style for example).

Also allows us to get rid of quite a bit of code, and makes computed angle value
representation just a number, which is nice.

Differential Revision: https://phabricator.services.mozilla.com/D8619
2018-10-13 00:41:03 +00:00
Emilio Cobos Álvarez a8559eb08d Bug 1497986 - Some more nsCSSValue cleanup. r=mats
I had this around, I couldn't work on more stuff today, but I may as well land
this.

Differential Revision: https://phabricator.services.mozilla.com/D8277
2018-10-10 20:26:45 +00:00
Cameron McCormack 198a280c43 Bug 1496308 - Require URLExtraData::mPrincipal to be non-null r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D7682
2018-10-10 03:10:07 +00:00
Cameron McCormack 73546ac6fc Bug 1496295 - Remove some more unused methods r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D7678
2018-10-04 07:51:17 +00:00
Cameron McCormack e389012eee Bug 1495994 - Part 4: Merge css::{URLValueData, ImageValue} into css::URLValue r=emilio
Depends on D7595

Differential Revision: https://phabricator.services.mozilla.com/D8061
2018-10-10 02:58:20 +00:00
Cameron McCormack 17d90ebb91 Bug 1495994 - Part 2: Remove some constructors/methods r=emilio
Depends on D7593

Differential Revision: https://phabricator.services.mozilla.com/D7594
2018-10-10 02:57:13 +00:00
Emilio Cobos Álvarez dd53c34330 Bug 1496486 - Remove some more leftover code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7755
2018-10-09 19:07:44 +02:00
Emilio Cobos Álvarez 74795bf915 Bug 1496486 - Remove GridTemplateAreas stuff from nsCSSValue. r=heycam
It's unused.

Differential Revision: https://phabricator.services.mozilla.com/D7754
2018-10-09 19:07:42 +02:00
Emilio Cobos Álvarez 1203186c4e Bug 1496486 - Remove nsCSSValue usage from font code. r=heycam
Really sorry for the size of the patch.

Differential Revision: https://phabricator.services.mozilla.com/D7753
2018-10-09 19:07:41 +02:00
Emilio Cobos Álvarez 548bbcfe2a Bug 1496486 - Remove a bunch of unused nsCSSValue code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7752
2018-10-09 19:07:39 +02:00
Narcis Beleuzu ae1469597d Backed out 5 changesets (bug 1496486) for valgrind bustages. CLOSED TREE
Backed out changeset d2f1e35ee4b7 (bug 1496486)
Backed out changeset 7f843f4ee162 (bug 1496486)
Backed out changeset 2f629a60f12c (bug 1496486)
Backed out changeset 4dd15fa31474 (bug 1496486)
Backed out changeset e8d8e2f3f00b (bug 1496486)
2018-10-09 19:44:51 +03:00
Emilio Cobos Álvarez 24a66d9c72 Bug 1496486 - Remove some more leftover code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7755
2018-10-09 17:33:27 +02:00
Emilio Cobos Álvarez 4357ece2ba Bug 1496486 - Remove GridTemplateAreas stuff from nsCSSValue. r=heycam
It's unused.

Differential Revision: https://phabricator.services.mozilla.com/D7754
2018-10-09 17:33:25 +02:00
Emilio Cobos Álvarez 8b8cd9d94d Bug 1496486 - Remove nsCSSValue usage from font code. r=heycam
Really sorry for the size of the patch.

Differential Revision: https://phabricator.services.mozilla.com/D7753
2018-10-09 17:33:24 +02:00
Emilio Cobos Álvarez 313ccf4018 Bug 1496486 - Remove a bunch of unused nsCSSValue code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7752
2018-10-09 17:33:23 +02:00
Brindusan Cristian 23bf677c29 Backed out 5 changesets (bug 1496486) for build bustages on gfxUserFontSet.h. CLOSED TREE
Backed out changeset 6b740afea403 (bug 1496486)
Backed out changeset 5cf44e254ac3 (bug 1496486)
Backed out changeset 8e465202c355 (bug 1496486)
Backed out changeset 86382b2249f6 (bug 1496486)
Backed out changeset ab92ed3e0a23 (bug 1496486)
2018-10-09 16:58:38 +03:00
Emilio Cobos Álvarez 41101ecc5f Bug 1496486 - Remove some more leftover code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7755
2018-10-09 15:33:05 +02:00
Emilio Cobos Álvarez 8c6149f243 Bug 1496486 - Remove GridTemplateAreas stuff from nsCSSValue. r=heycam
It's unused.

Differential Revision: https://phabricator.services.mozilla.com/D7754
2018-10-09 15:33:04 +02:00
Emilio Cobos Álvarez a45790bbf8 Bug 1496486 - Remove nsCSSValue usage from font code. r=heycam
Really sorry for the size of the patch.

Differential Revision: https://phabricator.services.mozilla.com/D7753
2018-10-09 15:33:03 +02:00
Emilio Cobos Álvarez 6db4adc3e9 Bug 1496486 - Remove a bunch of unused nsCSSValue code. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7752
2018-10-09 15:33:01 +02:00
Cameron McCormack 48337a319a Bug 1496279 - Don't register CSS images in the loading document when printing r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D7677
2018-10-04 18:32:33 +00:00
Cameron McCormack 52f7899df3 Bug 1495645 - Followup merge bustage fix r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D7675
2018-10-04 00:42:28 +00:00
Cameron McCormack b812caa849 Bug 1495645 - Move css::ImageValue::mRequests into a global table managed by css::ImageLoader r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D7383
2018-10-04 00:20:50 +00:00
Emilio Cobos Álvarez 07d9a13f24 Bug 1496041 - Remove unused ImageValue constructor. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D7589
2018-10-03 12:13:57 +00:00
Cameron McCormack 71c1b41132 Bug 1495353 - Remove unused css::URLValueData::MightHaveRef r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D7260
2018-10-01 07:42:05 +00:00
Thomas Nguyen 690c781291 Bug 1330487 - Part 5: Use correct referrer policy for image loader r=heycam
MozReview-Commit-ID: JA7gkRH9cDJ

Differential Revision: https://phabricator.services.mozilla.com/D1924
2018-09-17 05:36:54 +00:00
Brad Werth b975fecfc8 Bug 1434963 Part 3: Remove style struct mutation in nsStyleDisplay::FinishStyle. r=emilio
Depends on D5341

Differential Revision: https://phabricator.services.mozilla.com/D5343
2018-09-11 18:11:19 +00:00
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 WattandEmilio Cobos Álvarez bd03a860aa Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
Co-authored-by: Emilio Cobos Álvarez <[email protected]>

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