Commit Graph
27 Commits
Author SHA1 Message Date
serge-sans-paille 3f5c6b4f18 Bug 1991865 - Cleanup mozilla/fallible.h includes r=emilio,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,dom-worker-reviewers,padenot,glandium,asuth
Differential Revision: https://phabricator.services.mozilla.com/D267364
2025-10-08 15:00:00 +00:00
Emilio Cobos Álvarez 990106b121 Bug 1861068 - Make nsHTML5AttributeName constructors allocate less. r=hsivonen
This removes a bunch of allocations on startup.

Java changes: https://github.com/validator/htmlparser/pull/90

Differential Revision: https://phabricator.services.mozilla.com/D191870
2023-10-25 18:26:49 +00:00
Emilio Cobos Álvarez 7aa7edbcb0 Bug 1861010 - Improve nsHtml5AttributeName. r=hsivonen
In particular:

 * Store local names, namespaces, etc inline.
 * Avoid taking unnecessary atom references for non-interned atoms.

As a follow-up, we can look into making the input data truly static,
which would be nice.

Depends on D191853

Differential Revision: https://phabricator.services.mozilla.com/D191854
2023-10-25 12:37:26 +00:00
Sylvestre Ledru e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Henri Sivonen 2f6f5abbb4 Bug 1466449 addendum - Turn jArray from a struct to class and make it have a constructor from nullptr. r=smaug.
Simple adding a constructor from nullptr did not compile without turning
jArray all the way to a class instead of struct.
2018-11-09 14:20:18 +01:00
Boris Zbarsky 051041fc49 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
Henri Sivonen fa187d93c8 Bug 1309834. r=wchen.
MozReview-Commit-ID: FO7bXlx6lv
2016-10-14 11:47:17 +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 eccd3ffef0 Bug 1173818 - Make jArray.h assert bound checks. r=wchen. 2015-06-12 14:54:31 +03:00
Masatoshi Kimura 1ac9001f06 Bug 1120062 - Part 2: Remove use of IsNullPointer. r=waldo 2015-01-15 02:09:11 +09:00
Masatoshi Kimura bae0a32948 Bug 1120062 - Part 1: Remove most Nullptr.h includes. r=waldo 2015-01-11 11:34:52 +09:00
Georg Fritzsche eb5c2aafa5 Bug 1067989 - Unify some more binary search uses. r=waldo 2014-09-17 15:46:24 +02:00
Ehsan Akhgari 7cea6a9bcc Bug 1060982 - Fix more bad implicit constructors in the HTML parser; r=hsivonen 2014-09-01 18:04:20 -04:00
Phil Ringnalda 36b0901dec Backed out 6 changesets (bug 1060982, bug 1061058, bug 1060987, bug 1061060, bug 1060930) for build bustage
CLOSED TREE

Backed out changeset c23b8418e6be (bug 1060987)
Backed out changeset a8cddc6bdffc (bug 1061060)
Backed out changeset b5af5cbdac3f (bug 1060982)
Backed out changeset 4912d451011a (bug 1060930)
Backed out changeset bdacbf453238 (bug 1061058)
Backed out changeset da6c71a8f5ae (bug 1060987)
2014-09-01 16:48:51 -07:00
Ehsan Akhgari 1a06ad4b0d Bug 1060982 - Fix more bad implicit constructors in the HTML parser; r=hsivonen 2014-09-01 18:04:20 -04:00
Jeff Walden 400a152552 Bug 953296 - Implement mozilla::NullptrT as a typedef to use to accept nullptr values. Also add mozilla::IsNullPointer<T>, a trait for detecting *only* true nullptr (emulated nullptr [__null] used by gcc 4.4/4.5 isn't true nullptr). r=ehsan
Generally, if you want a decltype(nullptr)-based overload, you should use SFINAE and IsNullPointer.  (Examples are provided in NullPtr.h comments.)  The problem is NullptrT matches far more than just __null as emulated nullptr for gcc 4.4/4.5 overloading purposes.  This problem is unavoidable without true nullptr.  Currently, the only valid use for NullptrT is believed to be in operator overloads.  All existing nullptr-overloading code has been rewritten to use the appropriate technique for the situation, and MOZ_HAVE_CXX11_NULLPTR is no longer an API.
2014-01-02 17:27:41 -06: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
Juan Gomez 809e711396 Bug 820435 - Fix the B2G builds on gcc-4.6 (NDK r8) due to missing std::nullptr_t in STLPort; r=ehsan 2012-12-11 20:29:00 -05:00
Kartikaya Gupta 0fe97a385a Bug 820172 - Fix android build when building with gcc 4.6. r=ehsan 2012-12-11 01:08:27 -05:00
Jeff Walden cc5955eb53 Bug 796925 - Fix clang-on-Linux bustage in parser/html/jArray.h. rs=hsivonen 2012-10-09 15:01:48 -07:00
Henri Sivonen fc88a5853d Bug 792790 - Introduce NoBoundsCheck variants of accessors on nsHtml5HtmlAttributes; Make operator= in jArray nullptr-aware. r=smaug. 2012-10-01 11:49:01 +03: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 4f178bfcdf Bug 598886 - Relicense HTML5 parser C++ files that are not Gecko-specific. r=gerv, a=NPOTB. 2010-09-28 10:32:31 +03:00
Zbyszek Skowron 4b8110d400 Bug 530090 - Memory leaks in jArray in HTML5 parser. r=hsivonen. 2009-12-21 13:38:58 +02:00
Henri Sivonen 2f19c38b3b Bug 487949 - Land HTML5 parser on trunk preffed off r=mrbkap, sr=jonas 2009-06-29 00:44:22 +02:00
Johnny Stenback 64cf7ea628 Backed out changeset 168dd0eb7283 2009-06-28 11:47:11 -07:00
Jonas Sicking 6a0cbe0e68 Move files to better location 2009-06-26 17:12:29 -07:00