gecko-dev/parser/html
Henry Chang 55356f4f83 Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug
This patch is mainly to make IdleTaskRunner reusable by nsHtml5TreeOpExecutor.
The only necessary work to that purpose is to remove the dependency of
sShuttingDown, which was a static variable in nsJSEnvironment.cpp.
The idea is to have a "MayStopProcessing" as a callback for the consumer to
return sShuttingDown.

In addition to sShuttingDown, we use std::function<bool()> as the runner
main callback type.

MozReview-Commit-ID: FT2X1unSvPS

--HG--
extra : rebase_source : 3fe2d4f597f53e9a90f3dc8d5009df04240534ba
extra : intermediate-source : 41f6715c344ce26f7820cecb2544db8c50dca796
extra : source : 042f10937305e34245bdaf75dcb816db7738254e
2017-07-12 09:23:15 +08:00
..
java Bug 1377859 - Make the HTML parser translation makefile use nsGkAtomList. r=wchen 2017-07-03 14:23:30 +03:00
javasrc Bug 1266495 - Remove <isindex>. r=wchen 2017-07-05 11:42:04 +03:00
jArray.h Bug 1309834. r=wchen. 2016-10-14 11:47:17 +03:00
moz.build Bug 1333333 - Label runnables in the HTML parser (again). r=billm. 2017-06-27 10:38:30 -07:00
nsAHtml5TreeBuilderState.h Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps 2017-02-07 17:52:56 +01:00
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen. 2017-03-20 14:45:15 +02:00
nsHtml5Atom.cpp Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj 2016-08-24 14:47:04 +08:00
nsHtml5Atom.h
nsHtml5AtomTable.cpp Bug 1371132 - Convert NS_GetCurrentThread calls in parser/ (r=hsivonen) 2017-06-12 20:21:43 -07:00
nsHtml5AtomTable.h Bug 1371132 - Convert NS_GetCurrentThread calls in parser/ (r=hsivonen) 2017-06-12 20:21:43 -07:00
nsHtml5AttributeEntry.h Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to avoid malloc. r=wchen 2017-04-13 11:14:48 +03:00
nsHtml5AttributeName.cpp 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 2017-06-27 13:48:25 -07:00
nsHtml5AttributeName.h 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 2017-06-27 13:48:25 -07:00
nsHtml5ByteReadable.h
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5DocumentBuilder.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp Bug 1266495 - Remove <isindex>. r=wchen 2017-07-05 11:42:04 +03:00
nsHtml5ElementName.h Bug 1266495 - Remove <isindex>. r=wchen 2017-07-05 11:42:04 +03:00
nsHtml5Highlighter.cpp Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen 2017-04-20 11:47:02 +03:00
nsHtml5Highlighter.h Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen. 2017-03-20 14:45:15 +02:00
nsHtml5HtmlAttributes.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5HtmlAttributes.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Bug 1376154 - Preserve nsHtml5MetaScanner::mEncoding initialization when re-translating parser. r=wchen. 2017-07-03 14:52:19 +03:00
nsHtml5MetaScanner.h Bug 1376154 - Preserve nsHtml5MetaScanner::mEncoding initialization when re-translating parser. r=wchen. 2017-07-03 14:52:19 +03:00
nsHtml5MetaScannerCppSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5MetaScannerHSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5Module.cpp Bug 1276669 - part 1 - make nsHtml5Atoms initialization explicit in nsLayoutStatics; r=hsivonen 2017-01-26 15:43:39 -05:00
nsHtml5Module.h
nsHtml5NamedCharacters.cpp Bug 712936 - Convert users of PR_STATIC_ASSERT to C++11 static_assert(). r=Ms2ger 2016-08-23 11:24:54 -04:00
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
nsHtml5OplessBuilder.h Bug 1232696 - Remove NS_DECL_AND_IMPL_ZEROING_OPERATOR_NEW as it causes segfaulting for GCC 6 builds (4 of 5, fixes for parser/). r=hsivonen. 2017-01-24 17:11:43 +01:00
nsHtml5OwningUTF16Buffer.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5OwningUTF16Buffer.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5Parser.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsHtml5Parser.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5PlainTextUtils.cpp Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen. 2017-03-20 14:45:15 +02:00
nsHtml5Portability.h Bug 1266495 - Remove <isindex>. r=wchen 2017-07-05 11:42:04 +03:00
nsHtml5SVGLoadDispatcher.cpp Bug 1331804 - Add more runnable names (r=ehsan) 2017-01-24 16:34:37 -08:00
nsHtml5SVGLoadDispatcher.h
nsHtml5Speculation.cpp
nsHtml5Speculation.h
nsHtml5SpeculativeLoad.cpp Backed out changeset 548ed79f2337 (bug 1053321) for strange and terribly-reported failures in Android opt mochitest-15 and debug mochitest-36 2017-08-01 23:13:42 -07:00
nsHtml5SpeculativeLoad.h Backed out changeset 548ed79f2337 (bug 1053321) for strange and terribly-reported failures in Android opt mochitest-15 and debug mochitest-36 2017-08-01 23:13:42 -07:00
nsHtml5StackNode.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5StackNode.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5StateSnapshot.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5StateSnapshot.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5StreamListener.cpp
nsHtml5StreamListener.h Bug 1333333 - Label runnables in the HTML parser (again). r=billm. 2017-06-27 10:38:30 -07:00
nsHtml5StreamParser.cpp Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj. 2017-07-31 14:28:48 +10:00
nsHtml5StreamParser.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsHtml5StreamParserPtr.h Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsHtml5String.cpp Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen. 2017-03-20 14:45:15 +02:00
nsHtml5String.h Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen. 2017-03-20 14:45:15 +02:00
nsHtml5StringParser.cpp Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
nsHtml5StringParser.h
nsHtml5Tokenizer.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsHtml5Tokenizer.h Bug 1269490 - Merge nsHtml5Atoms into nsGkAtoms. r=wchen 2017-04-20 11:47:02 +03:00
nsHtml5TokenizerCppSupplement.h Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName. r=wchen 2017-04-20 10:34:32 +03:00
nsHtml5TokenizerHSupplement.h
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
nsHtml5TreeBuilder.h Bug 1266495 - Remove <isindex>. r=wchen 2017-07-05 11:42:04 +03:00
nsHtml5TreeBuilderCppSupplement.h Backed out changeset 548ed79f2337 (bug 1053321) for strange and terribly-reported failures in Android opt mochitest-15 and debug mochitest-36 2017-08-01 23:13:42 -07:00
nsHtml5TreeBuilderHSupplement.h Bug 1373984 - Turn nsIDocument::mCharacterSet into mozilla::NotNull<const mozilla::Encoding*>. r=hsivonen 2017-06-18 20:37:50 +09:00
nsHtml5TreeOpExecutor.cpp Bug 1355746 - Part 2. Polish IdleTaskRunner and reuse it for background parsing. r=smaug 2017-07-12 09:23:15 +08:00
nsHtml5TreeOpExecutor.h Backed out changeset 548ed79f2337 (bug 1053321) for strange and terribly-reported failures in Android opt mochitest-15 and debug mochitest-36 2017-08-01 23:13:42 -07:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h
nsHtml5TreeOperation.cpp Bug 1386600 - Change nsIStringBundle methods to return |AString| instead of |wstring|. r=emk,sr=dbaron. 2017-08-04 14:40:52 +10:00
nsHtml5TreeOperation.h Bug 1266495 - Remove <isindex>. r=wchen 2017-07-05 11:42:04 +03:00
nsHtml5UTF16Buffer.cpp Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5UTF16Buffer.h Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor. 2017-06-13 13:23:23 +03:00
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp Bug 1347737 - Introduce a new non-heap-allocated type for holding nsStringBuffer* in the HTML parser. r=wchen. 2017-03-20 14:45:15 +02:00
nsHtml5ViewSourceUtils.h
nsIContentHandle.h
nsIParserUtils.idl
nsIScriptableUnescapeHTML.idl
nsParserUtils.cpp Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan 2017-05-08 08:24:22 +02:00
nsParserUtils.h