Henri Sivonen
43720a8e05
Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen
...
MozReview-Commit-ID: EcfnXkFuJy3
2017-04-20 11:47:02 +03:00
Henri Sivonen
3b050334d4
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
2017-04-20 10:34:32 +03:00
Henri Sivonen
759c770926
Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen
...
MozReview-Commit-ID: 77Hqo24F2nB
2017-04-13 11:14:48 +03:00
Henri Sivonen
89dc7f5ddb
Bug 1355779 - Skip interned nsHtml5ElementName lookup for Custom Elements (ones with hyphen). r=wchen
...
MozReview-Commit-ID: 4xQlhExyo7d
2017-04-12 14:28:49 +03:00
Henri Sivonen
6274301b73
Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a non-interned element name. r=wchen
...
MozReview-Commit-ID: 4In5wo0flOB
2017-04-12 13:21:03 +03:00
Henri Sivonen
d333738e61
Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements. r=wchen.
...
MozReview-Commit-ID: 1fiqOuGUOBG
2017-04-11 17:43:54 +03:00
Henri Sivonen
cb263a268d
Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen.
...
MozReview-Commit-ID: Gn9fXroxQhY
2017-03-20 14:45:15 +02:00
Henri Sivonen
f5eeedfb21
Bug 1309195 - Mark strBuf as empty after the contents have been used or ignored. r=wchen.
...
MozReview-Commit-ID: 5KU62o2IMPs
2016-10-19 10:38:20 +03:00
Henri Sivonen
4eb7f7145d
Bug 1286911. r=wchen.
...
MozReview-Commit-ID: hzAu0jKAxt
2016-09-27 13:47:53 +03:00
Henri Sivonen
a6fb532484
Bug 1288084 - Expose a line number for each attribute, v2; r=wchen
2016-09-20 16:31:57 +02:00
Henri Sivonen
4d0b61f3f6
Bug 1176698 - Use fallible allocator for attribute values in the HTML parser. r=wchen.
2015-08-25 18:05:46 +03:00
Henri Sivonen
bee2d42d10
Bug 489820 part 2 - Grow buffers to the worst-case size before tokenizing; fix comments. r=wchen.
2015-08-25 18:05:45 +03:00
Henri Sivonen
ee6c94fc31
Bug 489820 part 1 - Make charRefBuf non-growable and have the same lifetime as the tokenizer. r=wchen.
2015-08-25 18:05:45 +03:00
Henri Sivonen
c8c7896633
Bug 1176668 - Fix overflow avoidance in numeric character reference handling. r=wchen.
2015-08-25 18:05:45 +03:00
Henri Sivonen
d1bb36905e
Bug 559303 - Consolidate strBuf and longStrBuf in the tokenizer. r=wchen.
2015-08-25 18:05:45 +03:00
Henri Sivonen
775e097398
Bug 959150 part 5 - Avoid reallocating the attribute holder when parsing with nsHtml5StringParser. r=smaug.
2014-03-05 21:38:50 +02:00
Henri Sivonen
9a0ebc58ff
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
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
5cc7ddc8b5
Bug 959150 part 5 - Avoid reallocating the attribute holder when parsing with nsHtml5StringParser. r=smaug.
2014-03-05 21:38:50 +02:00
Henri Sivonen
ad4e4d2e99
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
L. David Baron
eccc6c3bd1
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
68bfe70f09
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
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
Henri Sivonen
17c19c799e
Bug 870787 HTML parser part - Make <img> a form-associated element in the HTML parser. r=smaug
2013-06-06 11:02:30 +03:00
Henri Sivonen
870992c36d
Bug 799958 - Remove prtype.h from C++ translator output. r=smaug.
2012-10-25 14:03:27 +03: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
David Zbarsky
a0e342d0b9
Bug 772758 - Clean up some build warnings in html5 parser r=hsivonen
2012-07-13 11:55:21 -07:00
Henri Sivonen
3ab6f79a66
Bug 482921 part 11 - Deduplicate the tokenizer loop in .cpp. r=Olli.Pettay.
2011-11-01 13:33:11 +02:00
Henri Sivonen
8153c335a6
Bug 482921 part 4 - Support XML syntax highlighting in the parser core. r=Olli.Pettay.
2011-11-01 13:33:11 +02:00
Henri Sivonen
df4f37165e
Bug 482921 part 2 - Highligh tokenizer-level errors in View Source. r=Olli.Pettay.
2011-11-01 13:33:11 +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
Ehsan Akhgari
478ad1a412
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
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
Henri Sivonen
034b529d7e
Bug 612527 - Implement spec tweaks to U+0000 handling in the HTML5 parser. rs=jonas, a=blocking2.0-betaN.
2010-12-09 11:27:58 +02:00
Henri Sivonen
e4808f1f2e
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
6d0b9252cc
Bug 502176 bustage fix - Restore the refcount tracing code to nsHtml5Tokenizer. a=orange.
2010-11-10 12:03:48 +02:00
Henri Sivonen
a00ca20e07
Bug 502176 - Replace static use of jArray with a plain old data staticJArray, introduce an autoJArray for nicer memory management. r=tglek, a=jst.
2010-09-28 10:32:31 +03:00
Henri Sivonen
13cd90db61
Bug 570309 - Remove the dead code for the "comment end space" state. rs=jonas, a=blocking2.0-betaN.
2010-10-25 12:22:59 +03:00
Henri Sivonen
05c2d6dcf0
Bug 482921 part 0 - Make preparations for enabling transition reporting in the HTML5 tokenizer. rs=jonas, a=jst.
2010-09-28 10:32:31 +03:00
Henri Sivonen
ed398af2c1
Bug 555941 - Split HILO_ACCEL out of nsHtml5NamedCharacters. r=jonas, a=benjamin.
2010-06-24 11:54:33 +03:00
Henri Sivonen
6a659f4aed
Bug 568800 - Make &foo= not expand in an attribute value. r=sicking.
2010-06-02 14:01:57 +03:00
Henri Sivonen
38f1270287
Bug 551344 part 6 - Address more review comments from sicking in the Java parts of the HTML5 parser. r=jonas.
2010-04-19 16:25:13 +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
ac559f05b8
Bug 551344 part 5 - Address more sicking's review comments in the Java parts of the HTML5 parser. r=jonas.
2010-04-16 13:52:06 +03:00
Henri Sivonen
d008649fab
Bug 555462 - Back out changeset a0f0fde99844 for causing a buffer overrun.
2010-03-30 11:21:36 +03:00
Henri Sivonen
faa5ab7153
Bug 554513 - Remove buffer growth limits from the HTML5 parser where the old parser did not have the exact corresponding limits. rs=sicking.
2010-03-26 09:50:21 +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
Henri Sivonen
c7fd798070
Bug 489820 and bug 483209 - Make the HTML5 parser check buffer bounds less often and place limits on buffer growth. rs=sicking.
2010-02-12 09:49:06 +02:00
Henri Sivonen
382fdd2350
Bug 506090 - Speed up the tokenization of named character references in the HTML5 parser. r=bnewman.
2010-02-10 11:23:35 +02:00
Henri Sivonen
b70fd25289
Bug 539887 - Make document.written meta charset affect the charset of document.opened documents in the HTML5 parser. r=bnewman.
2010-03-09 14:39:32 +02:00