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
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
586ba83170
Bug 1355779 - Skip interned nsHtml5ElementName lookup for Custom Elements (ones with hyphen). r=wchen
...
MozReview-Commit-ID: 4xQlhExyo7d
--HG--
extra : rebase_source : 2acb38715feeeec5a1817dddae31960f18b2fe72
2017-04-12 14:28:49 +03:00
Henri Sivonen
8de02e50f5
Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a non-interned element name. r=wchen
...
MozReview-Commit-ID: 4In5wo0flOB
--HG--
extra : rebase_source : 912c5be12ab9ef96bacdf4ef84905f7056addecb
2017-04-12 13:21:03 +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
Henri Sivonen
93fd0a00c1
Bug 1322938 - Make the HTML tree builder aware of <dialog>. r=wchen
...
Original patch by :hsivonen
MozReview-Commit-ID: C8UK7m7V9tn
2016-12-22 11:30:41 +02:00
Boris Zbarsky
49a90cb122
Bug 1268852. Change <label> elements to not be form-associated anymore. r=bkelly,hsivonen,surkov
...
The web platform tests changes are just a cherrypick of
https://github.com/w3c/web-platform-tests/pull/2926 so I don't have to add
failure annotations until the next test uplift.
I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:
1) nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused. We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.
2) In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
2016-05-26 19:39:03 -04:00
Yuki Sekiguchi
17994bd47b
Bug 1042885 - Part 1: A rp element should not auto close a rtc element. r=wchen
2014-08-18 22:33:45 -07:00
John Schoenick
82815ed367
Bug 870022 - Part 5.4 - Teach parser about <picture> (generated bits). r=hsivonen
2014-06-25 11:47:49 -07:00
Yuki Sekiguchi
839050976b
Bug 664104 - Part 1: Implement new ruby model in HTML parser. r=wchen
2014-06-20 17:08:31 -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
Robert Longson
4e781fb5c6
Bug 964200 (Part 2) - Add HTML parser support for SVG <feDropShadow>. r=wchen
2014-02-05 15:04:08 +00: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
William Chen
7f2609364a
Bug 937259 - Remove <command> element from the parser. r=hsivonen
2013-11-13 15:17:13 -08:00
William Chen
c9f09c2e70
Bug 897153 - Update parsing of template element to spec as of July 15, 2013. r=hsivonen
2013-08-12 14:46:12 -07:00
Henri Sivonen
58fa997e45
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
William Chen
a74ccbd5e9
Bug 818976 - Part 3: Generated code for HTML5 parser. r=hsivonen
2013-03-26 00:15:23 -07:00
Henri Sivonen
c9f1a357dc
Bug 820508 part 1 - Parser support for <main>. r=smaug.
2013-01-29 14:31:45 +02:00
Henri Sivonen
03635e8e8a
Bug 808464 - Refresh the "special" list in the HTML parser and the check for that list in the <dd> case. r=smaug.
2012-11-12 16:41:17 +02:00
Henri Sivonen
9c90ea6ac7
Bug 799958 - Remove prtype.h from C++ translator output. r=smaug.
2012-10-25 14:03:27 +03:00
Henri Sivonen
ee3abb4e83
Bug 503190 - Include assertions in the C++ translator output. r=smaug.
2012-10-01 11:52:32 +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
267803686e
Bug 482921 part 1 - Implement HTML syntax highlighting using the new parser. r=Olli.Pettay.
2010-07-30 13:15:38 +03:00
Jan Varga
e76c71aac4
Bug 676236 - Add support for the <menuitem> element to the HTML parser (not enabled by default) r=hsivonen
2011-08-06 08:41:36 +02: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
Michael(tm) Smith
d73d2ea19d
Bug 620664 - Add support for the track element to the HTML5 parser. r=hsivonen, a=jst.
2011-01-12 10:05:09 +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
3183b3a320
Bug 612529 part 1 - Pack the dispatch group and the flags of an element into one 32-bit bitfield. r=jonas, a=blocking2.0-betaN.
2010-12-09 11:27:57 +02:00
Henri Sivonen
e801a7e1ba
Bug 596169 - Make <summary> and <figcaption> behave per spec. Remove <datagrid>. rs=jonas, a=blocking2.0-betaN.
2010-10-07 10:27:16 +03: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
a5d88062d8
Bug 569528 - Make <p> not close implicitly across a <button> on stack. rs=jonas, a=blocking2.0-final.
...
--HG--
extra : rebase_source : cb0b77f12787278883c3c1ef8d3d0906c86a327a
2010-09-08 19:31:22 +03:00
Henri Sivonen
88a9ce7929
Bug 531056 - Make the HTML5 parser unaware of <spacer>. r=jonas, a=jst.
...
--HG--
extra : rebase_source : 97ef3b60edcd87e3a8ebe4fbb0ee9de75d7ab5c9
2010-09-15 11:37:55 +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
00f26a48f7
Bug 571389 - Make <basefont> and <bgsound> parse like <link>. r=jonas.
...
--HG--
extra : rebase_source : 3b43f8786744e4164adbc2658f8c30f76a8a9f80
2010-06-11 18:08:13 +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
c4e48768e8
Bug 558302 - Make <button> non-scoping in the HTML5 parser. r=bnewman.
2010-04-16 13:52:06 +03:00
Henri Sivonen
13abe101ac
Bug 555906 - </datalist> does not implicitly close an <option> in the HTML5 parser. r=bnewman.
2010-04-09 18:48:30 +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
8447be2850
Bug 502804, bug 510063 - Update the HTML5 tree builder to spec as of 2009-11-24. rs=sicking.
...
--HG--
extra : rebase_source : 3707836f9ad9d61921bf7455d74ee0844f6a4d02
2009-11-30 17:34:51 +02:00