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
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
eea6b5c9c8
Bug 1288084 - Expose a line number for each attribute, v2; r=wchen
2016-09-20 16:31:57 +02:00
Mats Palmgren
81171b713c
Bug 1256530 - Fix compiler warnings about casting to larger size. r=hsivonen
...
Specifically, the Microsoft VS2015u1 compiler said:
warning C4312: 'type cast': conversion from 'unsigned int' to
'nsIContent *' of greater size
2016-03-17 17:27:56 +01:00
Chris Peterson
7abc7ee59e
Bug 1236322 - Part 1: Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in parser/. r=hsivonen
...
parser/html/nsHtml5Highlighter.cpp:572:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
parser/htmlparser/nsScanner.cpp:425:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
parser/htmlparser/nsScanner.cpp:780:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-12-25 00:01:32 -07:00
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
J. Ryan Stinnett
e1f26b0e50
Bug 1067325 - Control syntax highlighting via a class. r=hsivonen
2015-05-23 18:17:50 -05:00
William Chen
b55e2cb1a3
Bug 1091425 - Use the correct document when creating nodes in the HTML5 parser. r=hsivonen
2014-11-09 22:50:18 -08:00
Diwas Joshi
fdfd9cce83
Bug 617789 - Links in view page source when base href exists fixed. r=hsivonen.
2014-09-30 12:35:17 +03: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
Isaac Aggrey
481e7dfb0b
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05: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
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
1ccc571266
Bug 742414 & Bug 731234 - Highlight script end tag correctly in View Source and avoid crashing when doing so. r=smaug.
2012-04-17 14:53:52 +03:00
Henri Sivonen
034415bb26
Bug 695640 - Remove View Source pre chunking, because it is no longer needed for reasonable perf. r=smaug.
2011-11-30 19:44:31 +02: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
7acf63e90a
Bug 695640 - Remove View Source pre chunking, because it is no longer needed for reasonable perf. r=smaug.
2011-11-30 19:44:31 +02: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
ae6ef685b6
Bug 704667 - Take transitions from the comment start state to the data state into account when doing syntax highlighting. r=smaug.
2011-11-29 08:55:09 +02:00
Henri Sivonen
5579c150ca
Bug 700260 - Honor the view_source.tab_size pref in a way that actually works. r=smaug.
2011-11-07 21:20:14 +02:00
Henri Sivonen
1a4dfbfc57
Bug 700042 - Support turning off View Source syntax highlighting. r=smaug.
2011-11-07 21:20:14 +02:00
Henri Sivonen
c718393931
Bug 482921 part 14 - Address review comments. r=Olli.Pettay.
2011-11-01 13:33:11 +02:00
Henri Sivonen
7506879167
Bug 482921 part 10 - Support parametrized error messages in new View Source. r=Olli.Pettay.
2011-11-01 13:33:11 +02:00
Henri Sivonen
4600ed7a01
Bug 482921 part 8 - Start a new <pre> occasionally in View Source refixing bug 86355. r=bzbarsky.
2011-11-01 13:33:11 +02:00
Henri Sivonen
976ec770d6
Bug 482921 part 7 - Add an id for each line in new View Source. r=Olli.Pettay.
2011-11-01 13:33:11 +02:00
Henri Sivonen
2de2833898
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
8fd5e88e4a
Bug 482921 part 3 - Highlight tree builder-level errors in View Source. r=Olli.Pettay.
2011-11-01 13:33:11 +02:00
Henri Sivonen
2df8639026
Bug 482921 part 2 - Highligh tokenizer-level errors in View Source. 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