Boris Zbarsky
46fc331568
Bug 1446097. Switch to "set" as the canonical nsGkAtoms name of the string "set", so it matches the actual tag name "set" in SVG. r=hsivonen,njn
...
Most of the noise is from the fact that clang-format on parser/html/*.{h,cpp}
reformatted all sorts of stuff. Not running it caused lots of format changes
from the generator... I guess we changed the format rules since the last time
this got run?
MozReview-Commit-ID: IA2G87zUIKN
2018-03-16 11:26:06 -04:00
Jon Coppeard
3bdf7ef24a
Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen
2018-01-23 13:07:37 +00:00
Henri Sivonen
71f07dccfb
Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug
...
MozReview-Commit-ID: 9gsFme52mOG
--HG--
extra : rebase_source : d71040069ff4b3db476bf4cf3c08258def019f5a
2018-01-15 20:07:28 +02: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
Olli Pettay
af3373dc1d
Bug 1418002 - Remove HTMLContentElement, r=jessica
2017-11-30 10:57:15 +02:00
Jessica Jong
0ed394bfdf
Bug 1378079 - Part 1: Gecko changes for adding attribute 'is' to parser. r=hsivonen
...
--HG--
extra : rebase_source : 413505a2aa4fe229da957906697f172527361b38
2017-10-26 14:08:10 +08:00
Alphan Chen
8e5cbb6713
Bug 500617 - Remove always-zero offsets from HTML5 parser. r=hsivonen
...
MozReview-Commit-ID: DT8oWxbbYNy
2017-10-23 14:42:21 +03: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
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
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
Cykesiopka
f5e1032f63
Bug 528863 - Use _h instead of _h__ in include guards in the HTML5 parser. r=hsivonen
2013-08-23 11:07:10 -04:00
James Kitchener
a1621fa975
Bug 802895 - Parser changes to support srcdoc attributes for iframes, r=hsivonen
2013-06-28 23:13:23 -04: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
1afc6bf0fd
Bug 765381 - Make the destructors on nsHtml5ElementName and nsHtml5AttributeName virtual to avoid warnings in clang. r=ehsan
...
--HG--
extra : rebase_source : 3c2558dfa8ef5389b2acd97f419d2276d4269a8d
2012-07-13 15:04:11 +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
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