Граф коммитов

57 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky ba4e7d1c8e Bug 1565767 part 3. Remove some unnecesary refcounting at nsINode::GetBaseURI callsites. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D37971

--HG--
extra : moz-landing-system : lando
2019-07-15 17:46:43 +00:00
Boris Zbarsky b9289cedad Bug 1560055 part 7. Remove now-unused percentage handling in ParseHTMLInteger. r=mccr8
All callers treat '%' being found the same as not having consumed all the input,
so we can just stop consuming it.

Differential Revision: https://phabricator.services.mozilla.com/D36214

--HG--
extra : moz-landing-system : lando
2019-06-28 17:39:52 +00:00
Masayuki Nakano 36e5df54ec Bug 1547621 - Move all inline methods of nsIPresShell into mozilla::PresShell r=smaug
And also this patch moves some related methods which use the inline methods
and member variables used only by them.

Differential Revision: https://phabricator.services.mozilla.com/D29201

--HG--
rename : layout/base/nsIPresShellInlines.h => layout/base/PresShellInlines.h
extra : moz-landing-system : lando
2019-04-30 01:52:53 +00:00
Emilio Cobos Álvarez d2005aabce Bug 1535788 - add some includes to fix some builds on automation.
CLOSED TREE
2019-04-03 14:22:11 +02:00
Masayuki Nakano de2d589e58 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

Differential Revision: https://phabricator.services.mozilla.com/D25338

--HG--
extra : moz-landing-system : lando
2019-03-29 15:12:47 +00:00
Dorel Luca 5a0fa68b78 Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Masayuki Nakano 9273f25ce2 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

Differential Revision: https://phabricator.services.mozilla.com/D25338

--HG--
extra : moz-landing-system : lando
2019-03-29 13:09:26 +00:00
Emilio Cobos Álvarez 72c43d2bf2 Bug 1538661 - Simplify Owned FFI types. r=boris
And make them actually sound. We're defining functions on Rust-land that get
structs as arguments, but declaring them in C++ as getting pointers.

This is another step in order to be able to autogenerate ServoBindings.h and
remove bindings.rs altogether.

We remove FooOwned in favor of Owned<Foo>, which is generated via cbindgen.

It'd be good to actually mark Owned and such as MOZ_MUST_USE_TYPE, so I sent
https://github.com/eqrion/cbindgen/pull/307 for that.

Differential Revision: https://phabricator.services.mozilla.com/D24681

--HG--
extra : moz-landing-system : lando
2019-03-26 18:15:59 +00:00
Bogdan Tara b68e341245 Backed out 4 changesets (bug 1536584, bug 1538661, bug 1538694) for causing build bustages CLOSED TREE
Backed out changeset 563e8fb1be5d (bug 1538694)
Backed out changeset 7bd834c5800c (bug 1536584)
Backed out changeset f1eec8f7a3f8 (bug 1538694)
Backed out changeset 73a48619739e (bug 1538661)
2019-03-26 16:40:20 +02:00
Emilio Cobos Álvarez 16705172ca Bug 1538661 - Simplify Owned FFI types. r=boris
And make them actually sound. We're defining functions on Rust-land that get
structs as arguments, but declaring them in C++ as getting pointers.

This is another step in order to be able to autogenerate ServoBindings.h and
remove bindings.rs altogether.

We remove FooOwned in favor of Owned<Foo>, which is generated via cbindgen.

It'd be good to actually mark Owned and such as MOZ_MUST_USE_TYPE, so I sent
https://github.com/eqrion/cbindgen/pull/307 for that.

Differential Revision: https://phabricator.services.mozilla.com/D24681

--HG--
extra : moz-landing-system : lando
2019-03-26 13:25:42 +00:00
Emilio Cobos Álvarez d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Emilio Cobos Álvarez f8233b4454 Bug 1456471: Remove nsCSSParser.h. r=xidorn
MozReview-Commit-ID: 4qa7llzCXeR
2018-04-25 10:38:37 +02:00
Jeff Walden 821db93ccc Bug 1453456 - Replace nsCRT::IsAscii{Alpha,Digit} with mfbt/TextUtils.h versions. r=froydnj
--HG--
extra : rebase_source : b31986c0e6828be79442cfb0cf369eb80c232139
2018-04-12 20:19:30 -07:00
Xidorn Quan 4cf9aed667 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

--HG--
extra : rebase_source : 459e8efeb171adad089d94272e143e8c244bd279
extra : source : 65ba2f174fcf7dba4e59c00ee8908b1bd0820a48
2018-03-29 22:15:46 +11:00
Xidorn Quan d026c664c3 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

--HG--
extra : rebase_source : 20e1ead4438f3e3e457af2a4ae4e614992b5f050
extra : source : 53aae6abf7482d4366b66fc8b14d89bf762c19f3
2018-03-29 22:15:46 +11:00
Emilio Cobos Álvarez 8fcda0e92d Bug 1448690: Remove IsStyledByServo. r=xidorn
MozReview-Commit-ID: I3MDbo2Yu7d
2018-03-26 09:39:26 +02:00
Emilio Cobos Álvarez f7522ae728 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 1b0cba9367 Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
It would be convenient to get nsPresContext from nsIDocument.

MozReview-Commit-ID: Ei6V3UE8XGr

--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Cameron McCormack d02e54b79b Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
MozReview-Commit-ID: CIHyPdF7Exl

--HG--
extra : source : 78a2fc781eead47af3923efcde58569c5d882ab1
2018-02-01 15:04:04 +11:00
Cameron McCormack cc7db5c40c Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
MozReview-Commit-ID: 1FZ9VzjcPzN

--HG--
extra : source : de22d220635f8c059834b76f769d5215ab1a8b5b
2018-02-01 15:04:04 +11:00
Emilio Cobos Álvarez f52846b518 Bug 1408308: Integrate Servo SourceSizeList in ResponsiveImageSelector. r=Manishearth
MozReview-Commit-ID: DMVfE56DyYm
2017-11-13 13:39:30 +01:00
Margareta Eliza Balazs 85280dc48c 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 58aae7a733 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 4733acb9d8 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 da67af471f 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 0c0d4ccc04 Bug 1402930 - Use the PresContext's override dppx value if set; r=bradwerth
MozReview-Commit-ID: 9DWQdVevIaz

--HG--
extra : rebase_source : 03e184c107e8356c0b8c15a1bfc3d53c092e413a
2017-09-25 20:01:22 +02:00
Kris Maglione d038453393 Bug 1406278: Part 2c - Use subject principal as triggering principal in <img> "srcset" attribute. r=bz
MozReview-Commit-ID: 784EsgwBcS1

--HG--
extra : rebase_source : 01b701f84c425786b66cd9787d4e570dd9341ae5
2017-10-02 21:30:34 -07:00
Xidorn Quan 0053eb4c08 Bug 1323919 - Rename nsIMediaList.h to nsMediaList.h. r=heycam
MozReview-Commit-ID: Ake5srkKJbf

--HG--
rename : layout/style/nsIMediaList.h => layout/style/nsMediaList.h
extra : rebase_source : 05de33770a7bf0b5d01672571bde00506853fcfe
2016-12-16 14:50:36 +11:00
Emilio Cobos Álvarez d791eef979 Bug 1029867: Remove useless nsCSSParser::mHTMLMediaMode. r=heycam
MozReview-Commit-ID: AFtd0G4oP3R
2016-12-13 11:39:32 +01:00
Edgar Chen cf7304c3c6 Bug 1306007 - Part 1: Remove srcset/picture feature control preference; r=jdm,smaug
MozReview-Commit-ID: BsyTHeqiGZL

--HG--
extra : rebase_source : 2add2510dbe16c641fe997a8349c1a36009bec20
2016-04-16 18:07:56 -04:00
Edgar Chen 39105e76a9 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 e81b2a134a Bug 1262942 - Remove unnecessary warning message in ResponsiveImageSelector; r=jdm 2016-04-20 15:04:12 +08:00
Edgar Chen e036f20a6f 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 a67de0b59f Bug 1237633 - Part 2: Avoid fatal assertion when a responsive image's size specifier is invalid. r=johns, r=jdm
MozReview-Commit-ID: LyG6xn5VbSE

--HG--
extra : rebase_source : e04db97470b7024c8069fe8e6495d833818e913f
extra : histedit_source : a1cfd41e56809464a69c124df0c698046b5b93db
2016-01-07 15:02:14 -05:00
Edgar Chen 25174c3544 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 13c38e804c 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 afcc9df76d 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 fcbded3dbb 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 132b6bcf2e Bug 1206720 - Remove invalid assertions during response image loading. r=jdm 2015-09-30 16:22:49 +03:00
John Schoenick ffa5e40696 Bug 1160819 - ResponsiveImageSelector - improve some over-aggressive assertions 2015-07-05 18:03:00 -07:00
Dragana Damjanovic 7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
John Schoenick 46f4269b7a Bug 1139560 - Fix srcset parser 'After descriptor' state mishandling spaces. r=jst 2015-03-04 23:11:00 -05:00
John Schoenick 5b798a33e0 Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst 2015-03-04 23:09:00 -05:00
Ryan VanderMeulen 3b75ea9aff 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 99dc02a8c8 Bug 1139560 - Fix srcset parser 'After descriptor' state mishandling spaces. r=jst 2015-03-04 23:11:00 -05:00
John Schoenick 7e5e65290d Bug 1139560 - Reject non-standard parses of integers in srcset descriptors. r=jst 2015-03-04 23:09:00 -05:00
John Schoenick fde1768c06 Bug 1139554 - Fix srcset parser mishandling bare URLs followed by a comma. r=jst 2015-03-04 23:07:00 -05:00
Wes Kocher 4d83e3608b Backed out changeset 2c368e6b267e (bug 1139554) for mochitest-2 failures 2015-03-26 17:34:37 -07:00