Nathan Froyd
ddf68de505
Bug 1229962 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in parser/html/; r=hsivonen
2015-11-19 20:19:57 -05: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
Boris Zbarsky
9171dbee48
Bug 1151048. Disable speculative tokenization in the parser if it's failing too much. r=hsivonen
2015-04-13 19:36:33 -04: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
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
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Henri Sivonen
2dc38251fe
Bug 863728 - Implement the replacement encoding. r=emk.
2013-11-25 10:06:56 +02:00
Henri Sivonen
577d972a8a
Bug 936440 - Report UTF-16LE or UTF-16BE instead of UTF-16 as the BOM-sniffed encoding. r=emk.
2013-11-12 10:45:22 +02: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
Steve Workman
881c09835a
Bug 497003 - Support delivery of OnDataAvailable on the HTML5 parser thread r=hsivonen r=bholley r=bz
2013-07-08 18:45:26 -07:00
James Kitchener
a1621fa975
Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen
2013-06-28 23:13:23 -04:00
Ryan VanderMeulen
adb213ed89
Backed out 4 changesets (bug 497003) for intermittent OSX crashes.
...
Backed out changeset 43223a927976 (bug 497003)
Backed out changeset 26c1d80edf1f (bug 497003)
Backed out changeset 841ed173ba2b (bug 497003)
Backed out changeset f70770fc6dce (bug 497003)
2013-06-17 15:44:07 -04:00
Steve Workman
895826d5ed
Bug 497003 - Support delivery of OnDataAvailable on the HTML5 parser thread r=hsivonen r=bholley r=bz
2013-06-13 10:42:48 -07: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
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
342883de53
Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
...
--HG--
rename : extensions/universalchardet/tests/bug631751be_text.html => parser/htmlparser/tests/mochitest/file_bug672453_bomless_utf16.html
2012-03-24 13:34:42 +02:00
Makoto Kato
b6e9c4d7bb
Bug 590390 - deCOM nsICharsetAlias. r=smontagu
...
--HG--
rename : intl/locale/public/nsICharsetAlias.h => intl/locale/public/nsCharsetAlias.h
rename : intl/locale/src/nsCharsetAliasImp.cpp => intl/locale/src/nsCharsetAlias.cpp
2012-03-05 12:57:51 +09:00
Henri Sivonen
bd1b9e065c
Bug 703965 - Use View Source styling when viewing plain text source. r=smaug.
2011-11-30 19:44:31 +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
efe5ce2bae
Bug 703965 - Use View Source styling when viewing plain text source. r=smaug.
2011-11-30 19:44:31 +02: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
Henri Sivonen
b74c7dc6e2
Bug 651072 - Support HTML parsing in XMLHttpRequest. r=smaug.
2011-11-16 09:38:51 +02:00
Matt Brubeck
e851f37192
Back out 75ace50df008 to try to fix failures after last central/inbound merge on a CLOSED TREE
2011-11-16 11:50:48 -08:00
Henri Sivonen
689c5fc755
Bug 651072 - Support HTML parsing in XMLHttpRequest. r=smaug.
2011-11-16 09:38:51 +02:00
Henri Sivonen
a4642bfe44
Bug 699347 - Avoid crashing when viewing source of XML files that have an XML declaration without the encoding pseudo-attribute. r=smaug.
2011-11-03 16:31:27 +02:00
Henri Sivonen
b9a012bc7f
Bug 482921 part 6 - Use the internal encoding declaration in the XML View Source case. r=Olli.Pettay.
2011-11-01 13:33:11 +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
Ehsan Akhgari
92064e6d3f
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04: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
Henri Sivonen
f68ddc8cba
Bug 631751 - Sniff Basic Latin BOMless UTF-16 for IE compat. r=bzbarsky, a=bzbarsky.
2011-02-16 08:40:35 +02:00
Henri Sivonen
bbffca4d43
Bug 620106 - Allow chardet (if enabled) reload the page during load. r=sicking, a=blocking2.0-final.
2011-02-11 12:33:32 +02:00
Dave Townsend
23fdf3025d
Backout of changeset 9acd51502a65 from bug 579846. a=bustage
2011-01-24 14:59:51 -08:00
Honza Bambas
46257e93e3
Bug 579846 - nsIHttpChannel::SetResponseHeader should work after the stream has ended, r=bzbarsky+hsivonen, a=betaN+
2011-01-23 23:49:30 +01:00
Henri Sivonen
f6fa927986
Bug 594730 - Make the content attribute in <meta> act as an encoding declaration only if http-equiv="Content-Type" is present. rs=jonas, a=blocking2.0-betaN.
2010-12-08 14:37:19 +02:00
Henri Sivonen
3f683051fc
Bug 551344 part 6 - Address more review comments from sicking in the Java parts of the HTML5 parser. r=jonas.
...
--HG--
extra : rebase_source : b89e63cce5869fc0518eacc1102f0d1b4b12d356
2010-04-19 16:25:13 +03:00
Henri Sivonen
79f934beea
Bug 548232 - Make meta charset not have an effect on document.open()ed documents in the HTML5 parser (reverting most of bug 539887). r=bzbarsky.
...
--HG--
extra : rebase_source : 3f001d62e55a4ecd02c4ab8d1f6997e1547aef4e
2010-04-16 13:52:06 +03:00
Henri Sivonen
256e7d25ff
Bug 551344 part 4 - Address more review comments from sicking in the C++ parts of the HTML5 parser. r=jonas.
...
--HG--
extra : rebase_source : b15efefa4ba578dead7645770f5ce3fa8becefda
2010-04-16 13:52:06 +03:00
Henri Sivonen
ced01aa917
Bug 543458 - Make the HTML5 tree op executor use nsContentSink code for deciding when to return to the event loop. r=bnewman.
...
--HG--
extra : rebase_source : fa41825753811279070d232c7d467600d7b2d523
2010-02-26 11:18:38 +02:00
Henri Sivonen
deaa1352fa
Bug 539887 - Make document.written meta charset affect the charset of document.opened documents in the HTML5 parser. r=bnewman.
...
--HG--
extra : rebase_source : 71434258f5a6f330e1e0583826fbb415fb110b0b
2010-03-09 14:39:32 +02:00
Henri Sivonen
1d0a08e5af
Bug 545658 - Change the sniffing limit of the HTML5 parser to 1K. r=jst.
2010-02-26 11:18:38 +02:00
Henri Sivonen
6b8df8aef8
Bug 541079 - Make app cache selection happen before speculative loads in the HTML5 parser. r=bnewman.
2010-02-02 09:43:18 +02:00