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
Chris Peterson
946cc287a2
Bug 1424548 - Part 9a: clang-format generated HTML parser code. r=hsivonen
...
--HG--
extra : rebase_source : 67a0555475dbce49c689d27510dca252089a4a7b
2017-12-21 00:02:43 -08:00
Nicholas Nethercote
d225f7151b
Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
...
(Path is actually r=froydnj.)
Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.
MozReview-Commit-ID: 91U22X2NydP
--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Sebastian Hengst
5573e8270f
Backed out changeset 0ce8d073a16e (bug 256180)
2017-09-28 11:30:33 +02:00
Henri Sivonen
b245e01efe
Bug 256180 parser part - Insert elements as siblings instead of children at the Blink-defined magic depth for compatibility. r=smaug
...
MozReview-Commit-ID: K8fgv3rgklt
--HG--
extra : rebase_source : 3ad91a01805afcd1aeac89a5f2d5ac38dac1797b
2017-09-12 16:57:05 +03:00
Henri Sivonen
3d387ac082
Bug 483155 - Put content creator function pointers onto nsHtml5ElementName. r=smaug
...
MozReview-Commit-ID: E2AAx7Zz2UF
--HG--
extra : rebase_source : 1b85ba3b1c699e71e6ecacf4d1dc4271f3416b08
2017-07-04 11:00:03 +03:00
Sebastian Hengst
56587adeab
Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout
2017-08-11 10:48:10 +02:00
Henri Sivonen
dacb0e05f1
Bug 483155 - Put content creator function pointers onto nsHtml5ElementName. r=smaug
...
MozReview-Commit-ID: E2AAx7Zz2UF
--HG--
extra : rebase_source : 989c11459e16076a043aa7311c95941686e86ef7
2017-07-04 11:00:03 +03:00
Henri Sivonen
432653453a
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
William Chen
17c14a6258
Bug 1355441 - Reuse StackNode in TreeBuilder to avoid malloc. r=hsivonen.
...
MozReview-Commit-ID: 4QwQwISCKPk
2017-05-15 17:18:20 +03:00
Iris Hsiao
cdb9631de8
Backed out changeset 2e7615b554ee (bug 1355441) for crashing at nsHtml5TreeBuilder::getUnusedStackNode() intermittent failures
2017-05-09 17:11:28 +08:00
William Chen
5e9c898c8f
Bug 1355441 - Reuse StackNode in HTML parser TreeBuilder to avoid malloc. r=hsivonen
2017-05-01 17:25:05 -07:00
Henri Sivonen
c18a3863eb
Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen
...
MozReview-Commit-ID: EcfnXkFuJy3
--HG--
extra : rebase_source : eb4ba2c1b95a9ccabdcdecf65f3b757691f033b8
2017-04-20 11:47:02 +03:00
Henri Sivonen
1eb6516385
Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName. r=wchen
...
Moving methods that refer to constant to the header that defines the
constants makes it infeasible to #define the constants at the end
of the header. To avoid introducing a new pass over the Java AST,
this patch turns the primitive constants that were
previously #defined into C++ contants, which, according to
Stroustrup 3rd ed., are handled at compile-time and don't consume
storage.
MozReview-Commit-ID: JnaDgW2OM7t
--HG--
extra : rebase_source : 3678d8db967e83d8b7e265a5ef926050cc20d770
2017-04-20 10:34:32 +03:00
Henri Sivonen
b94c082c37
Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen
...
MozReview-Commit-ID: 77Hqo24F2nB
--HG--
extra : rebase_source : 9829c4ce7561e3a1d64d79884af6a8f72326021d
2017-04-13 11:14:48 +03:00
Henri Sivonen
2dfbad67f6
Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen.
...
MozReview-Commit-ID: Gn9fXroxQhY
--HG--
extra : rebase_source : 70bc539e80ce0b2372569a194366cfe559614fd1
2017-03-20 14:45:15 +02:00
Henri Sivonen
ccbe381144
Bug 959150 part 1 - Represent nodes as void* in the portable part of the parser. r=smaug.
2014-03-05 21:38:49 +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
d9eaa52cdd
Bug 959150 part 1 - Represent nodes as void* in the portable part of the parser. r=smaug.
2014-03-05 21:38:49 +02:00
Reuben Morais
bde629dd63
Bug 458300 - Rename nsINameSpaceManager.h to nsNameSpaceManager.h. r=jst r=hsivonen
...
--HG--
rename : content/base/public/nsINameSpaceManager.h => content/base/public/nsNameSpaceManager.h
2014-02-27 20:04:46 -03:00
L. David Baron
03ba2e465b
Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
...
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
William Chen
8434baa572
Bug 888820 - Save template insertion mode stack information in TreeBuilderState. r=hsivonen
2013-08-12 14:46:12 -07:00
Henri Sivonen
9c90ea6ac7
Bug 799958 - Remove prtype.h from C++ translator output. r=smaug.
2012-10-25 14:03:27 +03: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
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
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
4fb9916a52
Bug 606925 - Get rid of the "in foreign content" insertion mode. Check the namespace of the current node instead. rs=jonas, a=blocking2.0-betaN.
2010-12-09 11:27:58 +02:00
Henri Sivonen
84881910ae
Bug 612529 part 2 - Rework how scopingness and specialness is handled in stack nodes; refresh the set of scoping elements to spec. rs=jonas, a=blocking2.0-betaN.
2010-12-09 11:27:58 +02:00
Henri Sivonen
8648330452
Bug 502176 - Replace static use of jArray with a plain old data staticJArray, introduce an autoJArray for nicer memory management. r=tglek, a=jst.
...
--HG--
extra : rebase_source : c9dbde959b76c019df87b83c551dd97e3ad7d311
2010-09-28 10:32:31 +03:00
Henri Sivonen
f7dfbc2e7b
Bug 591330 - Make deep nesting prevention code in the HTML5 parser not crash when there are speculations involved. r=jonas, a=blocking2.0-betaN.
...
--HG--
extra : rebase_source : 58f604deb70298bcf6103f7857889990d8d9708d
2010-09-06 10:41:26 +03:00
Henri Sivonen
3abf2243f2
Bug 555941 - Split HILO_ACCEL out of nsHtml5NamedCharacters. r=jonas, a=benjamin.
...
--HG--
extra : rebase_source : 40c885f07cf1f89f5503e0a25b369e5fdb63f719
2010-06-24 11:54:33 +03: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
b35a238d49
Bug 551344 part 3 supplement - Rename the getter for the length of list of active formatting elements in the HTML5 parser. r=jonas.
2010-04-16 13:52:06 +03: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
7ac218e0c1
Bug 514602 - Restore frameset-ok properly when the HTML5 tree builder has left the "in body" insertion mode and comes back. rs=sicking.
...
--HG--
extra : rebase_source : 42788e58309762098b4b9bb6efadff07335c011b
2009-12-23 10:31:48 +02:00
Henri Sivonen
fb7c33c862
Bug 516406 - Make document.write() parser and stream parser have distinct tokenizers in the HTML5 parser. r=bnewman.
...
--HG--
extra : rebase_source : d49df0ed8f2c205d97d3023ee88a62e5f8afb91f
2009-09-21 16:18:20 +03:00
Henri Sivonen
c2979194d3
Bug 515338 - Make HTML5 parser internals not hold nsIContent or regular dynamic atoms. r=bnewman.
...
--HG--
extra : rebase_source : 955eb137d96a4ea1461417ada9809404a1218dd1
2009-09-21 14:43:43 +03:00
Henri Sivonen
217db1634c
Bug 499642 - Split the HTML5 parser into stream parser, doc.write parser and tree op executor. r=bnewman, sr=mrbkap.
2009-09-18 12:21:47 +03:00
Henri Sivonen
8803c27a7f
Bug 487949 - Land HTML5 parser on trunk preffed off r=mrbkap, sr=jonas
2009-06-29 00:44:22 +02:00
Johnny Stenback
87138ce673
Backed out changeset 168dd0eb7283
2009-06-28 11:47:11 -07:00
Jonas Sicking
ff259aceaf
Move files to better location
...
--HG--
rename : content/html/parser/src/Makefile.in => parser/html/Makefile.in
rename : content/html/parser/src/jArray.h => parser/html/jArray.h
rename : content/html/parser/src/nsHtml5ArrayCopy.h => parser/html/nsHtml5ArrayCopy.h
rename : content/html/parser/src/nsHtml5AtomList.h => parser/html/nsHtml5AtomList.h
rename : content/html/parser/src/nsHtml5Atoms.cpp => parser/html/nsHtml5Atoms.cpp
rename : content/html/parser/src/nsHtml5Atoms.h => parser/html/nsHtml5Atoms.h
rename : content/html/parser/src/nsHtml5AttributeName.cpp => parser/html/nsHtml5AttributeName.cpp
rename : content/html/parser/src/nsHtml5AttributeName.h => parser/html/nsHtml5AttributeName.h
rename : content/html/parser/src/nsHtml5ByteReadable.h => parser/html/nsHtml5ByteReadable.h
rename : content/html/parser/src/nsHtml5DocumentMode.h => parser/html/nsHtml5DocumentMode.h
rename : content/html/parser/src/nsHtml5ElementName.cpp => parser/html/nsHtml5ElementName.cpp
rename : content/html/parser/src/nsHtml5ElementName.h => parser/html/nsHtml5ElementName.h
rename : content/html/parser/src/nsHtml5HtmlAttributes.cpp => parser/html/nsHtml5HtmlAttributes.cpp
rename : content/html/parser/src/nsHtml5HtmlAttributes.h => parser/html/nsHtml5HtmlAttributes.h
rename : content/html/parser/src/nsHtml5MetaScanner.cpp => parser/html/nsHtml5MetaScanner.cpp
rename : content/html/parser/src/nsHtml5MetaScanner.h => parser/html/nsHtml5MetaScanner.h
rename : content/html/parser/src/nsHtml5MetaScannerCppSupplement.h => parser/html/nsHtml5MetaScannerCppSupplement.h
rename : content/html/parser/src/nsHtml5MetaScannerHSupplement.h => parser/html/nsHtml5MetaScannerHSupplement.h
rename : content/html/parser/src/nsHtml5Module.cpp => parser/html/nsHtml5Module.cpp
rename : content/html/parser/public/nsHtml5Module.h => parser/html/nsHtml5Module.h
rename : content/html/parser/src/nsHtml5NamedCharacters.cpp => parser/html/nsHtml5NamedCharacters.cpp
rename : content/html/parser/src/nsHtml5NamedCharacters.h => parser/html/nsHtml5NamedCharacters.h
rename : content/html/parser/src/nsHtml5Parser.cpp => parser/html/nsHtml5Parser.cpp
rename : content/html/parser/src/nsHtml5Parser.h => parser/html/nsHtml5Parser.h
rename : content/html/parser/src/nsHtml5PendingNotification.h => parser/html/nsHtml5PendingNotification.h
rename : content/html/parser/src/nsHtml5Portability.cpp => parser/html/nsHtml5Portability.cpp
rename : content/html/parser/src/nsHtml5Portability.h => parser/html/nsHtml5Portability.h
rename : content/html/parser/src/nsHtml5ReleasableAttributeName.cpp => parser/html/nsHtml5ReleasableAttributeName.cpp
rename : content/html/parser/src/nsHtml5ReleasableAttributeName.h => parser/html/nsHtml5ReleasableAttributeName.h
rename : content/html/parser/src/nsHtml5ReleasableElementName.cpp => parser/html/nsHtml5ReleasableElementName.cpp
rename : content/html/parser/src/nsHtml5ReleasableElementName.h => parser/html/nsHtml5ReleasableElementName.h
rename : content/html/parser/src/nsHtml5StackNode.cpp => parser/html/nsHtml5StackNode.cpp
rename : content/html/parser/src/nsHtml5StackNode.h => parser/html/nsHtml5StackNode.h
rename : content/html/parser/src/nsHtml5StackNodeCppSupplement.h => parser/html/nsHtml5StackNodeCppSupplement.h
rename : content/html/parser/src/nsHtml5StackNodeHSupplement.h => parser/html/nsHtml5StackNodeHSupplement.h
rename : content/html/parser/src/nsHtml5StateSnapshot.cpp => parser/html/nsHtml5StateSnapshot.cpp
rename : content/html/parser/src/nsHtml5StateSnapshot.h => parser/html/nsHtml5StateSnapshot.h
rename : content/html/parser/src/nsHtml5Tokenizer.cpp => parser/html/nsHtml5Tokenizer.cpp
rename : content/html/parser/src/nsHtml5Tokenizer.h => parser/html/nsHtml5Tokenizer.h
rename : content/html/parser/src/nsHtml5TreeBuilder.cpp => parser/html/nsHtml5TreeBuilder.cpp
rename : content/html/parser/src/nsHtml5TreeBuilder.h => parser/html/nsHtml5TreeBuilder.h
rename : content/html/parser/src/nsHtml5TreeBuilderCppSupplement.h => parser/html/nsHtml5TreeBuilderCppSupplement.h
rename : content/html/parser/src/nsHtml5TreeBuilderHSupplement.h => parser/html/nsHtml5TreeBuilderHSupplement.h
rename : content/html/parser/src/nsHtml5TreeOperation.cpp => parser/html/nsHtml5TreeOperation.cpp
rename : content/html/parser/src/nsHtml5TreeOperation.h => parser/html/nsHtml5TreeOperation.h
rename : content/html/parser/src/nsHtml5UTF16Buffer.cpp => parser/html/nsHtml5UTF16Buffer.cpp
rename : content/html/parser/src/nsHtml5UTF16Buffer.h => parser/html/nsHtml5UTF16Buffer.h
rename : content/html/parser/src/nsHtml5UTF16BufferCppSupplement.h => parser/html/nsHtml5UTF16BufferCppSupplement.h
rename : content/html/parser/src/nsHtml5UTF16BufferHSupplement.h => parser/html/nsHtml5UTF16BufferHSupplement.h
2009-06-26 17:12:29 -07:00