William Chen
a7d3b243a3
Bug 1366241 - Change memory layout of element name and attribute name hashes in HTML parser from sorted to level order BST in order to take advantage of cache during lookup. r=hsivonen
...
--HG--
extra : rebase_source : 3100da08a88a71b1d9253a664f0fd0f935bdcc01
2017-06-27 13:48:25 -07: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
Henri Sivonen
4abd5bbff7
Bug 1358095 - Remove useless interned attributes from the HTML parser. r=wchen
...
Stuff that's removed includes:
* IE data binding
* SVG fonts
* Web Forms 2.0 templates
* unsupported math spaces
* abandoned HTML5 features
* random inexplicable stuff
MozReview-Commit-ID: 1iiKyFHZQWd
--HG--
extra : rebase_source : d5c2ae8d309e433053b5e9c1579707a24bf903b9
2017-04-20 14:19:12 +03: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
b05b669637
Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements. r=wchen.
...
MozReview-Commit-ID: 1fiqOuGUOBG
--HG--
extra : rebase_source : 8d2efb1ef9a18da0604109e9ee37e5edfb570b17
2017-04-11 17:43:54 +03:00
Henri Sivonen
658e8c34d3
Bug 1352082 - Avoid shifting a signed integer left in C++. r=wchen
...
MozReview-Commit-ID: 52YqyHAz2c3
--HG--
extra : rebase_source : 38faa832b92564783d06c85a2f23fb7c16ba38fe
2017-04-07 13:26:31 +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
William Chen
fdb6d83b05
Bug 1187357 - Generated code for renaming referrer to referrerpolicy in html parser. r=hsivonen
2015-11-30 16:12:59 -08:00
Ted Clancy
675740b45e
Bug 1178484 - Part 2: Regenerate gecko's in-tree parser. r=hsivonen
2015-08-28 03:31:24 -07:00
William Chen
8e360c243e
Bug 1166910 - Gecko changes for adding referrer attribute. r=hsivonen
...
--HG--
extra : rebase_source : 06fbe7cd7efe8a66e96bcea18c34a417aea6f41d
2015-05-29 16:43:07 -07:00
Francois Marier
ab3bec2d73
Bug 1100206 - Teach the parser about the integrity attribute. r=hsivonen
2014-12-18 13:59:04 +02:00
Henri Sivonen
b4f7335790
Bug 1066483 - Drop SVG camelCase mappings filterRes, contentStyleType, contentScriptType and externalResourcesRequired. r=wchen.
2014-09-19 18:20:26 +03:00
John Schoenick
737a2d14d8
Bug 870022 - Part 4.3 - Teach parser about sizes attr (generated bits). r=hsivonen
2014-06-25 11:47:48 -07:00
Yuki Sekiguchi
eebed2404e
Bug 1024447 - Part 6: Retranslated html parser. r=hsivonen.
2014-06-12 13:37:49 +09:00
Carsten "Tomcat" Book
90f74aea8e
Backed out changeset 8c5b73e6b782 (bug 1024447) for bustage on a CLOSED TREE
2014-06-18 12:43:41 +02:00
Yuki Sekiguchi
ab4716832e
Bug 1024447 - Part 6: Retranslated html parser. r=hsivonen.
2014-06-12 13:37:49 +09:00
John Schoenick
36e3c89be5
Bug 870021 - Part 1.2 - Teach parser about srcset (generated bits). r=hsivonen
2014-05-30 13:03:04 -07: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
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
James Kitchener
a1621fa975
Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen
2013-06-28 23:13:23 -04:00
William Chen
a74ccbd5e9
Bug 818976 - Part 3: Generated code for HTML5 parser. r=hsivonen
2013-03-26 00:15:23 -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
Aryeh Gregor
d0ad5a7d0c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Henri Sivonen
030d0bffb8
Bug 704034 - Replace old pre-interned looping attributes with a single loop attribute in the HTML parser. rs=smaug.
2011-11-22 10:29:14 +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
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
Boris Zbarsky
8983ada153
Bug 672014. Pass the crossorigin attribute through to image preloading code. r=joe,hsivonen
2011-07-29 14:30:00 -04:00
Boris Zbarsky
1242922ac9
Back out changeset f5aecf9010ef (bug 672014) due to build bustage.
2011-07-29 15:29:01 -04:00
Boris Zbarsky
23f2cddc95
Bug 672014. Pass the crossorigin attribute through to image preloading code. r=joe,hsivonen
2011-07-29 14:30:00 -04:00
Henri Sivonen
2b19692c02
Bug 643395 - Update the HTML parser Java code to the state in the htmlparser repo (NPOTB). rs=jonas.
2011-04-08 09:07:27 +03: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
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
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
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
d2e28c3cf5
Bug 515142 - Make HTML5 parser never clone nodes. WHATWG spec SVN rev 2947. rs=sicking.
2009-09-21 10:00:10 +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
00382e3718
Bug 501015 - Address code style comments from timeless. r+sr=mrbkap
2009-07-15 14:30:33 +03:00
Henri Sivonen
168f13774e
Bug 501091 - Avoid overlap with platform defines in HTML5 element/attribute name object names. r=jonas, sr=mrbkap
2009-06-30 13:50:56 +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