Kris Maglione
c484ba9c97
Bug 1333990: Part 2a - Allow multiple concurrent parser blockers. r=hsivonen
...
MozReview-Commit-ID: DYegic0RPWL
2017-03-15 17:31:00 -07:00
Julian Seward
daefba8f63
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
49993e0363
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
0550795f93
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.
2016-08-08 10:54:47 +10:00
Nathan Froyd
4e6d8f6705
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
2015-10-18 01:24:48 -04:00
Andrea Marchesini
ad97ae68b8
Bug 1148527 - Indentation fix after bug 1145631, r=ehsan
2015-03-27 18:52:19 +00:00
Ehsan Akhgari
ea41d8de48
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
5c1aa90db7
Bug 1118417 - Mark virtual overridden functions as MOZ_OVERRIDE in parser; r=hsivonen
2015-01-12 10:19:21 -05:00
Henri Sivonen
89552abfc6
Bug 1088635. r=smaug.
2014-11-05 17:44:37 +02:00
Trevor Saunders
b131fddd60
bug 1059490 - mark more classes MOZ_FINAL r=froydnj
2014-08-27 14:26:48 -04:00
Benoit Jacob
722ec47133
Bug 1028588 - Fix dangerous public destructors in parser/ - r=wchen
2014-06-27 14:41:03 -04:00
Henri Sivonen
0e8540320a
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
b09f44b0e5
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
35226d8b0a
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
cbb279e1e0
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
c719617d8e
Bug 913847 - stop needlessly including nsThreadUtils.h - r=ehsan
2013-09-19 09:54:39 -04:00
Wes Kocher
df60e63207
Backed out changeset 554bfe767519 (bug 913847) for leaking on a CLOSED TREE
2013-09-18 17:21:02 -07:00
Benoit Jacob
7bcf1eee88
Bug 913847 - stop needlessly including nsThreadUtils.h - r=ehsan
2013-09-18 18:50:32 -04:00
James Kitchener
9e4c5894af
Bug 912981 - Make parser aware of view-source srcdoc status. r=hsivonen
2013-09-10 13:40:50 -04:00
Cykesiopka
2b212b7067
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
2966ca6302
Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen
2013-06-28 23:13:23 -04:00
Ehsan Akhgari
243c878d26
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
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
David Zbarsky
a0e342d0b9
Bug 772758 - Clean up some build warnings in html5 parser r=hsivonen
2012-07-13 11:55:21 -07:00
David Zbarsky
9050aef271
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Gervase Markham
d697fdc8ec
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
2012-05-29 16:52:43 +01:00
Henri Sivonen
40ba9af5f5
Bug 714777 - Refactor fragment parsing out of nsHtml5Parser. r=smaug.
2012-01-20 13:16:27 +02:00
Henri Sivonen
4e63e18f2a
Bug 715103 - Move parser unblocking management from nsContentSink to nsScriptLoader. r=smaug.
2012-01-20 13:16:27 +02:00
Henri Sivonen
40e41c5d2b
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
e37be49202
Bug 655261 - Remove nsIParserFilter from the tree. r=mrbkap.
2012-01-09 14:20:43 +02:00
Henri Sivonen
943aee8f19
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
9b1962f5cc
Back out 38814e0bafb9 through c5d44e6e957b because of test failures
2011-11-30 11:44:50 -08:00
Henri Sivonen
72a4aefa74
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
4c0d56004b
Bug 697494 - Outparamdel nsIParser::GetStreamListener; r=hsivonen
2011-11-16 08:50:19 +01:00
Henri Sivonen
e68cae07f7
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
a42c6e14db
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
ff8c3afd83
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
1cde100e2a
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
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Marco Castelluccio
09cdbdd268
Bug 612839 - Removed nsAHtml5FragmentParser. r=hsivonen
2011-08-14 10:39:26 -07:00
Henri Sivonen
2fa0fb46af
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
076ac188e0
Bug 541496 prelim 1: remove nsIUnicharStreamListener (no in-tree implementations). r=hsivonen
2011-05-06 08:45:33 -07:00
Henri Sivonen
b08bd7a552
Bug 543062 - When document.write() blocks, pre-parse the tail of the buffer for speculative loads. r=jonas, a=blocking2.0-beta8.
2010-11-18 10:23:48 +02:00
Henri Sivonen
14caf81d48
Bug 599588 addendum - Revert change to nsIParser and introduce a new abstract class instead to avoid changing the interface during an interface freeze. r=jonas, a=blocking2.0-final.
2010-11-16 09:47:10 +02:00
Henri Sivonen
8743dcf063
Bug 599588 - Make scripts created by createContextualFragment() executable. r=jonas, a=blocking2.0-final.
2010-11-01 11:50:01 +01:00
Olli Pettay
780c38d2b9
Bug 580094 - Few SetInnerHTML micro optimizations , r=jst, a=benjamin
2010-07-21 19:03:21 +03:00
Henri Sivonen
4d410f2cc6
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.
2010-04-16 13:52:06 +03:00
Henri Sivonen
1347ac34f9
Bug 551344 part 4 - Address more review comments from sicking in the C++ parts of the HTML5 parser. r=jonas.
2010-04-16 13:52:06 +03:00
Henri Sivonen
b1663de57d
Bug 551344 part 1 - Address sicking's review comments in nsHtml5Parser.cpp. r=jonas.
2010-03-15 14:04:41 +02:00
Henri Sivonen
4793e2d1fd
Bug 543458 - Make the HTML5 tree op executor use nsContentSink code for deciding when to return to the event loop. r=bnewman.
2010-02-26 11:18:38 +02:00