Commit Graph

45 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
08bea7e24f Bug 1456471: Remove nsCSSParser.h. r=xidorn
MozReview-Commit-ID: 4qa7llzCXeR
2018-04-25 10:38:37 +02:00
Jeff Walden
738579bba3 Bug 1453456 - Replace nsCRT::IsAscii{Alpha,Digit} with mfbt/TextUtils.h versions. r=froydnj 2018-04-12 20:19:30 -07:00
Xidorn Quan
ea8b8b1e74 Bug 1449400 part 5 - Remove StyleSetHandle. r=emilio
This patch basically does:
* remove StyleSetHandle and its corresponding files
* revisit #includes of related header files and change correspondingly
* change nsIPresShell::mStyleSet to be UniquePtr<ServoStyleSet>
* change the creating path of ServoStyleSet to pass UniquePtr
* change other mentions of StyleSetHandle to ServoStyleSet*
* remove AsServo() calls on ServoStyleSet

Some unfortunate bits:
* some methods of (Servo)StyleSet only accepts ServoStyleSheet while
  many places call into the methods with StyleSheet, so there are many
  ->AsServo() added to sheets

MozReview-Commit-ID: K4zYnuhOurA
2018-03-29 22:15:46 +11:00
Xidorn Quan
e493ad2ae2 Bug 1449400 part 4 - Split some inline functions from ServoStyleSet.h into an Inlines header. r=emilio
To remove the dependency from ServoStyleSet.h to ServoBindings.h.

MozReview-Commit-ID: 6YJ71AnQklL
2018-03-29 22:15:46 +11:00
Emilio Cobos Álvarez
c48b1f646b Bug 1448690: Remove IsStyledByServo. r=xidorn
MozReview-Commit-ID: I3MDbo2Yu7d
2018-03-26 09:39:26 +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
Hiroyuki Ikezoe
b1da8534e8 Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
It would be convenient to get nsPresContext from nsIDocument.

MozReview-Commit-ID: Ei6V3UE8XGr
2018-02-21 07:00:10 +09: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
Cameron McCormack
02c617875f Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
MozReview-Commit-ID: 1FZ9VzjcPzN
2018-02-01 15:04:04 +11:00
Emilio Cobos Álvarez
80a071ae83 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
MozReview-Commit-ID: DMVfE56DyYm
2017-11-13 13:39:30 +01:00
Margareta Eliza Balazs
945a81c9a0 Backed out 1 changesets (bug 1408308) for bustage in [toolkit/library/target] r=backout on a CLOSED TREE
Backed out changeset b59ffea83e0a (bug 1408308)
2017-11-13 07:23:52 +02:00
Emilio Cobos Álvarez
3d7e848428 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
This needs to dumb down the parsing in order to match what we do in Gecko and
pass more tests.

The remaining tests are just because of calc() in media queries and "or" media
expressions.

MozReview-Commit-ID: CXGdYVbojBL
2017-11-13 05:18:36 +01:00
ZER0
03052e6d90 Bug 1402930 - Use the PresContext's override dppx value if set; r=bradwerth
MozReview-Commit-ID: 9DWQdVevIaz
2017-10-27 12:05:19 -05:00
Sebastian Hengst
2e0d2348e4 Backed out 2 changesets (bug 1402930) for failing modified mochitest dom/tests/mochitest/general/test_contentViewer_overrideDPPX.html. r=backout
Backed out changeset 13a81548a728 (bug 1402930)
Backed out changeset 4edb91f3fbbe (bug 1402930)
2017-10-26 00:53:26 +02:00
ZER0
d91bd6f6e5 Bug 1402930 - Use the PresContext's override dppx value if set; r=bradwerth
MozReview-Commit-ID: 9DWQdVevIaz
2017-09-25 20:01:22 +02:00
Kris Maglione
ce86c492cd Bug 1406278: Part 2c - Use subject principal as triggering principal in <img> "srcset" attribute. r=bz
MozReview-Commit-ID: 784EsgwBcS1
2017-10-02 21:30:34 -07:00
Xidorn Quan
1125f5e9ab Bug 1323919 - Rename nsIMediaList.h to nsMediaList.h. r=heycam
MozReview-Commit-ID: Ake5srkKJbf
2016-12-16 14:50:36 +11:00
Emilio Cobos Álvarez
4afebc68ce Bug 1029867: Remove useless nsCSSParser::mHTMLMediaMode. r=heycam
MozReview-Commit-ID: AFtd0G4oP3R
2016-12-13 11:39:32 +01:00
Edgar Chen
eaabbe4dea Bug 1306007 - Part 1: Remove srcset/picture feature control preference; r=jdm,smaug
MozReview-Commit-ID: BsyTHeqiGZL
2016-04-16 18:07:56 -04:00
Edgar Chen
f432a2b18c Bug 1274519 - Don't append result to the candidate list if got unexpected token at the end of size string; r=heycam
MozReview-Commit-ID: 9jwHNUPZ94k
2016-05-25 09:47:18 +08:00
Edgar Chen
7ee0887290 Bug 1262942 - Remove unnecessary warning message in ResponsiveImageSelector; r=jdm 2016-04-20 15:04:12 +08:00
Edgar Chen
1aa6bdf089 Bug 1158412 - Remove assertion for document prescontex and add crash test; r=jdm
MozReview-Commit-ID: BSrmQLfjYUi
2016-04-15 09:33:20 -04:00
Josh Matthews
9d2340b37d Bug 1237633 - Part 2: Avoid fatal assertion when a responsive image's size specifier is invalid. r=johns, r=jdm
MozReview-Commit-ID: LyG6xn5VbSE
2016-01-07 15:02:14 -05:00
Edgar Chen
3e1bddbbe2 Bug 1257742 - Part 3: Support using floating point in sizes descriptor; r=jdm
MozReview-Commit-ID: ESTk2x2VqnD
2016-03-23 18:46:36 +08:00
Edgar Chen
723175ba40 Bug 1257742 - Part 2: Allow both width and static density candidates showing in same selector; r=jdm
MozReview-Commit-ID: KJuo6wK765h
2016-03-24 16:38:22 +08:00
Edgar Chen
8a5f12ea4a Bug 1257742 - Part 1: Follow the update-source-set rule to append default source into source set; r=jdm
MozReview-Commit-ID: 735EWjSArr2
2016-03-30 12:39:05 +08:00
Edgar Chen
7fb87cece7 Bug 1148535 - Check if the density descriptor in srcset consists of a valid floating-point number. r=jdm
MozReview-Commit-ID: 2Q6ybaIrLSt
2016-03-14 14:48:58 +08:00
Miko Mynttinen
93577169c0 Bug 1206720 - Remove invalid assertions during response image loading. r=jdm 2015-09-30 16:22:49 +03:00
John Schoenick
ddf9006491 Bug 1160819 - ResponsiveImageSelector - improve some over-aggressive assertions 2015-07-05 18:03:00 -07:00
Dragana Damjanovic
f5e3e71a6d Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Andrew McCreight
92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
John Schoenick
7197c614f9 Bug 1139560 - Fix srcset parser 'After descriptor' state mishandling spaces. r=jst 2015-03-04 23:11:00 -05:00
John Schoenick
d36b2ddac8 Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst 2015-03-04 23:09:00 -05:00
Ryan VanderMeulen
e613b6edac Backed out 4 changesets (bug 1139560) for update-the-source-set.html w-p-t failures.
Backed out changeset ffcb5e699ef5 (bug 1139560)
Backed out changeset a0ef86da9b15 (bug 1139560)
Backed out changeset dc2cd9c336c9 (bug 1139560)
Backed out changeset 1e8b305f26b0 (bug 1139560)

CLOSED TREE
2015-03-27 15:56:55 -04:00
John Schoenick
ee681a9798 Bug 1139560 - Fix srcset parser 'After descriptor' state mishandling spaces. r=jst 2015-03-04 23:11:00 -05:00
John Schoenick
b78c5b5d33 Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst 2015-03-04 23:09:00 -05:00
John Schoenick
26169e2f21 Bug 1139554 - Fix srcset parser mishandling bare URLs followed by a comma. r=jst 2015-03-04 23:07:00 -05:00
Wes Kocher
eaf02f6082 Backed out changeset 2c368e6b267e (bug 1139554) for mochitest-2 failures 2015-03-26 17:34:37 -07:00
John Schoenick
c3cc8f4bf3 Bug 1139554 - Fix srcset parser mishandling bare URLs followed by a comma. r=jst 2015-03-04 23:07:00 -05:00
John Schoenick
96f84bfdfe Bug 1067345 - Part 1.4 - Allow ResponsiveImageSelector to take a nsIDocument as well as a specific nsIContent 2014-12-10 18:53:00 -05:00
John Schoenick
0bff235275 Bug 1067345 - Part 1.3 - ResponsiveImageSelector should resolve the URL at selection time, store unresolved strings for candidates 2014-12-10 18:53:00 -05:00
John Schoenick
a95cfcdc12 Bug 1067345 - Part 1.2 - ResponsiveImageSelector: Rename best candidate -> selected candidate, add clear function 2014-12-10 18:53:00 -05:00
John Schoenick
693d8465bb Bug 1067345 - Part 1.1 - Move ResponsiveImageSelector selection into GetSelectedImage instead of GetBestCandidateIndex 2014-12-10 18:52:00 -05:00
John Schoenick
365ecef903 Bug 1023514 - [NEEDS TESTS] New srcset parser 2014-12-10 18:50:00 -05:00
Birunthan Mohanathas
e9068bbc4f Bug 946065 - Part 12: Move content/base/ to dom/ and flatten subdirectories. r=peterv 2014-10-25 20:25:22 +03:00