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
Boris Zbarsky
46fc331568
Bug 1446097. Switch to "set" as the canonical nsGkAtoms name of the string "set", so it matches the actual tag name "set" in SVG. r=hsivonen,njn
...
Most of the noise is from the fact that clang-format on parser/html/*.{h,cpp}
reformatted all sorts of stuff. Not running it caused lots of format changes
from the generator... I guess we changed the format rules since the last time
this got run?
MozReview-Commit-ID: IA2G87zUIKN
2018-03-16 11:26:06 -04:00
Henri Sivonen
2069543e3c
Bug 1414490 - Permanently undefine the insertion point at EOF. r=smaug.
...
MozReview-Commit-ID: Kijs3Rxhq0X
2017-11-13 16:59:11 +02:00
Masatoshi Kimura
b515c9c804
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : fdae0046f882d47fb539a7f882364e5c5caafdcd
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Sebastian Hengst
dfc1ad2562
Backed out changeset 7235d05662b0 (bug 1373984) for Android bustage. r=backout on a CLOSED TREE
2017-06-25 18:30:13 +02:00
Masatoshi Kimura
2e04751921
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : a84ab644f52e68676b45f112ff69f868d89f6177
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Wes Kocher
e02435a31e
Backed out changeset 77af189b5c49 (bug 1373984) for build bustage in nsHtml5Parser.cpp a=backout CLOSED TREE
...
MozReview-Commit-ID: 6kBmU71j2To
2017-06-25 05:10:14 -07:00
Masatoshi Kimura
241039fd97
Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen
...
MozReview-Commit-ID: GF0YXDwfA14
--HG--
extra : rebase_source : 09da1685795583513bf019d61c58230c2c4d298d
extra : source : 49249788c0dee331ac2989dc39f0505d965a7bd8
2017-06-18 20:37:50 +09:00
Kris Maglione
45b222c3b2
Bug 1333990: Part 2a - Allow multiple concurrent parser blockers. r=hsivonen
...
MozReview-Commit-ID: DYegic0RPWL
--HG--
extra : rebase_source : 959fae62e924ee9f27f00378a26f752bb0307bb1
2017-03-15 17:31:00 -07:00
Julian Seward
bb66f7fb55
Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (4 of 5, fixes for parser/). r=hsivonen.
2017-01-24 17:11:43 +01:00
Boris Zbarsky
363a5143aa
Bug 1297125. Make sure the parser insertion point is defined when firing the load event for external <scripts> or firing the error event on a failed external script load (but not other cases, like bogus script URL). r=hsivonen
...
If we have a creator parser, then we were a parser-inserted script and should
presumably be able to set a valid insertion point when we run or fire our
load/error events. For the error event case, we do this in
nsScriptElement::ScriptAvailable, so that async error events due to things like
bogus script URLs do not end up with a valid insertion point. For the load
event case, we just do this in ScriptEvaluated directly.
ScriptEvaluated is called while the scriptloader has our script set as the
current parser-inserted script. But for the error event case we need to
maintain that state around the ScriptAvailable call that will fire the event.
2016-09-02 17:55:38 -04:00
Nicholas Nethercote
bab6d17ebf
Bug 1293117 (part 4) - Change many NS_IMETHODIMP occurrences to NS_IMETHOD. r=froydnj.
...
This patch makes the following changes on many in-class methods.
- NS_IMETHODIMP F() override; --> NS_IMETHOD F() override;
- NS_IMETHODIMP F() override {...} --> NS_IMETHOD F() override {...}
- NS_IMETHODIMP F() final; --> NS_IMETHOD F() final;
- NS_IMETHODIMP F() final {...} --> NS_IMETHOD F() final {...}
Using NS_IMETHOD is the preferred way of marking in-class virtual methods.
Although these transformations add an explicit |virtual|, they are safe --
there's an implicit |virtual| anyway because |override| and |final| only work
with virtual methods.
--HG--
extra : rebase_source : 386ee4e4ea2ecd8d5001efabc3ac87b4d6c0659f
2016-08-08 10:54:47 +10:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Andrea Marchesini
e6f385fb3d
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Ehsan Akhgari
dafe75ef66
Bug 1118417 - Mark virtual overridden functions as MOZ_OVERRIDE in parser; r=hsivonen
2015-01-12 10:19:21 -05:00
Henri Sivonen
723b4d1376
Bug 1088635. r=smaug.
2014-11-05 17:44:37 +02:00
Trevor Saunders
d75ed5bf7f
bug 1059490 - mark more classes MOZ_FINAL r=froydnj
2014-08-27 14:26:48 -04:00
Benoit Jacob
b1d91ebb0c
Bug 1028588 - Fix dangerous public destructors in parser/ - r=wchen
2014-06-27 14:41:03 -04:00
Henri Sivonen
8751f19db8
Bug 960519 - Make it safe to refcount the HTML parser's nsIStreamListener off-the-main-thread. r=smaug.
2014-04-16 08:41:39 +03:00
Henri Sivonen
0fdbc6a846
Bug 959150 part 6 - Move the opening brace to the next line in methods whose body is in non-generated .h files under parser/html/. r=smaug.
2014-03-05 21:38:50 +02:00
Ryan VanderMeulen
6626f074d4
Backed out 8 changesets (bug 959150) for Linux debug build bustage on a CLOSED TREE.
...
Backed out changeset 30bdc9b15e8e (bug 959150)
Backed out changeset 630e489aed30 (bug 959150)
Backed out changeset c6874004efe7 (bug 959150)
Backed out changeset ebc67518a962 (bug 959150)
Backed out changeset 14441e528582 (bug 959150)
Backed out changeset 8d0ae8bffb08 (bug 959150)
Backed out changeset 603b63c33e9a (bug 959150)
Backed out changeset 261e2d244c54 (bug 959150)
2014-03-05 15:26:07 -05:00
Henri Sivonen
30d2af3ec5
Bug 959150 part 6 - Move the opening brace to the next line in methods whose body is in non-generated .h files under parser/html/. r=smaug.
2014-03-05 21:38:50 +02:00
Benoit Jacob
ef57b5655b
Bug 913847 - stop needlessly including nsThreadUtils.h - r=ehsan
2013-09-19 09:54:39 -04:00
Wes Kocher
de3dfc4a8e
Backed out changeset 554bfe767519 (bug 913847) for leaking on a CLOSED TREE
2013-09-18 17:21:02 -07:00
Benoit Jacob
1b7e3c520e
Bug 913847 - stop needlessly including nsThreadUtils.h - r=ehsan
2013-09-18 18:50:32 -04:00
James Kitchener
f29c71d5ef
Bug 912981 - Make parser aware of view-source srcdoc status. r=hsivonen
2013-09-10 13:40:50 -04:00
Cykesiopka
f5e1032f63
Bug 528863 - Use _h instead of _h__ in include guards in the HTML5 parser. r=hsivonen
2013-08-23 11:07:10 -04:00
James Kitchener
a1621fa975
Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen
2013-06-28 23:13:23 -04:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
David Zbarsky
efca466fbb
Bug 772758 - Clean up some build warnings in html5 parser r=hsivonen
2012-07-13 11:55:21 -07:00
David Zbarsky
d2ee12f6f9
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Gervase Markham
68d38d677f
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
...
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Henri Sivonen
3bd56d1ff6
Bug 714777 - Refactor fragment parsing out of nsHtml5Parser. r=smaug.
2012-01-20 13:16:27 +02:00
Henri Sivonen
122c17f8e7
Bug 715103 - Move parser unblocking management from nsContentSink to nsScriptLoader. r=smaug.
2012-01-20 13:16:27 +02:00
Henri Sivonen
4dd4e2ea12
Bug 715739 - Make document.write from inside a script-created parser not add to the wyciwyg channel. r=smaug.
2012-01-20 13:16:27 +02:00
Henri Sivonen
a0183e60b6
Bug 655261 - Remove nsIParserFilter from the tree. r=mrbkap.
2012-01-09 14:20:43 +02:00
Henri Sivonen
960819c184
Bug 699356 - Show the URL of the page in the title of the View Source window. r=smaug.
2011-11-30 19:44:31 +02:00
Matt Brubeck
12c396afdf
Back out 38814e0bafb9 through c5d44e6e957b because of test failures
2011-11-30 11:44:50 -08:00
Henri Sivonen
69efc69ab9
Bug 699356 - Show the URL of the page in the title of the View Source window. r=smaug.
2011-11-30 19:44:31 +02:00
Ms2ger
1049c156c8
Bug 697494 - Outparamdel nsIParser::GetStreamListener; r=hsivonen
2011-11-16 08:50:19 +01:00
Henri Sivonen
bc6cd72c1d
Bug 659763 - Make document.open("text/plain") work with the new parser. r=Olli.Pettay.
2011-11-01 17:27:36 +02:00
Henri Sivonen
267803686e
Bug 482921 part 1 - Implement HTML syntax highlighting using the new parser. r=Olli.Pettay.
2010-07-30 13:15:38 +03:00
Henri Sivonen
a0ffb6e2b2
Bug 696651 part 1 - Deal more gracefully with the parser getting terminated during document.write() and with document.close() getting called while document.write() is on the call stack. r=Olli.Pettay.
2011-10-29 23:14:31 +03:00
Henri Sivonen
2cdea7cee0
Bug 687744 and bug 573078 - Make buffer allocations in the HTML parser fallible; deal with allocation failures; reuse the buffers of strings passed to the parser. r=Olli.Pettay.
2011-09-28 15:45:17 +03:00
Michael Wu
d2b70213ac
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Marco Castelluccio
d3f9d68e9e
Bug 612839 - Removed nsAHtml5FragmentParser. r=hsivonen
2011-08-14 10:39:26 -07:00
Henri Sivonen
21d32e82f3
Bug 596182 - Make fragment parsers global. Remove resulting dead code. r=Olli.Pettay, r=bzbarsky.
2011-08-01 10:48:24 +03:00
Zack Weinberg
3febb9d39a
Bug 541496 prelim 1: remove nsIUnicharStreamListener (no in-tree implementations). r=hsivonen
2011-05-06 08:45:33 -07:00