gecko-dev/parser/html
Jan Henning 9c467e7e8d Bug 1392996 - Part 1 - Add meta viewport tag to view-source document. r=hsivonen
Adding <meta name="viewport" content="width=device-width"/> to the view-source
document achieves two things when used in a mobile browser, such as Fennec:
1. When word-wrapping is turned off, the page displays at a more readable
   initial zoom level.
2. As of now, font inflation (when enabled) kicks in on the document when word-
   wrapping is turned on, which leads to the line numbers appearing in a
   noticeably smaller font size than the rest of the page.
   Adding the above meta viewport header marks the document as "mobile-friendly"
   and suppresses font inflation, which means that line numbers will appear
   normally even with word-wrapping enabled.

getMathMLSelection() in browser-content.js isn't actually used in Fennec at the
moment, but for consistency we add the meta viewport tag there as well.

MozReview-Commit-ID: K9KVHh7g7TF

--HG--
extra : rebase_source : 1054f712f5420efcd89daeaa2c8c200129544b2a
2018-01-23 22:25:09 +01:00
..
java Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
javasrc Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
jArray.h
moz.build Bug 1424548 - Part 11: Regenerate HTML parser code with MOZ_FALLTHROUGH annotations. r=hsivonen 2017-12-01 01:05:26 -08:00
nsAHtml5TreeBuilderState.h Backed out changeset 0ce8d073a16e (bug 256180) 2017-09-28 11:30:33 +02:00
nsAHtml5TreeOpSink.h
nsHtml5ArrayCopy.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsHtml5AtomTable.cpp Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj. 2017-10-27 10:31:13 +11:00
nsHtml5AtomTable.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5AttributeEntry.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5AttributeName.cpp Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
nsHtml5AttributeName.h Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
nsHtml5AutoPauseUpdate.h Bug 1410848 - Use RAII with nsHtml5TreeOpExecutor::mFlushState. r=smaug. 2017-11-01 13:16:23 +02:00
nsHtml5ByteReadable.h
nsHtml5ContentCreatorFunction.h Backed out changeset 5b706cd241cb (bug 483155) for Valgrind failure on Linux x64 opt. r=backout 2017-08-11 10:48:10 +02:00
nsHtml5DependentUTF16Buffer.cpp
nsHtml5DependentUTF16Buffer.h
nsHtml5DocumentBuilder.cpp Bug 1391005 - Eliminate NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED. r=peterv 2017-08-29 16:02:48 -07:00
nsHtml5DocumentBuilder.h Bug 1410848 - Use RAII with nsHtml5TreeOpExecutor::mFlushState. r=smaug. 2017-11-01 13:16:23 +02:00
nsHtml5DocumentMode.h
nsHtml5ElementName.cpp Bug 1424548 - Part 9a: clang-format generated HTML parser code. r=hsivonen 2017-12-21 00:02:43 -08:00
nsHtml5ElementName.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02:00
nsHtml5Highlighter.cpp Bug 1392996 - Part 1 - Add meta viewport tag to view-source document. r=hsivonen 2018-01-23 22:25:09 +01:00
nsHtml5Highlighter.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5HtmlAttributes.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5HtmlAttributes.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5Macros.h
nsHtml5MetaScanner.cpp Bug 1424548 - Part 11: Regenerate HTML parser code with MOZ_FALLTHROUGH annotations. r=hsivonen 2017-12-01 01:05:26 -08:00
nsHtml5MetaScanner.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02:00
nsHtml5MetaScannerCppSupplement.h Bug 1424548 - Part 1: Fix non-unified build of HTML parser code. r=hsivonen 2017-12-04 13:09:15 -08:00
nsHtml5MetaScannerHSupplement.h
nsHtml5Module.cpp
nsHtml5Module.h
nsHtml5NamedCharacters.cpp
nsHtml5NamedCharacters.h
nsHtml5NamedCharactersAccel.cpp
nsHtml5NamedCharactersAccel.h
nsHtml5NamedCharactersInclude.h
nsHtml5OplessBuilder.cpp Bug 1410848 - Use RAII with nsHtml5TreeOpExecutor::mFlushState. r=smaug. 2017-11-01 13:16:23 +02:00
nsHtml5OplessBuilder.h
nsHtml5OwningUTF16Buffer.cpp Bug 1424548 - Part 1: Fix non-unified build of HTML parser code. r=hsivonen 2017-12-04 13:09:15 -08:00
nsHtml5OwningUTF16Buffer.h
nsHtml5Parser.cpp Bug 1418000 - Check mInsertionPointPermanentlyUndefined when checking for executor completion. r=smaug 2017-11-21 10:36:31 -05:00
nsHtml5Parser.h Bug 1414490 - Permanently undefine the insertion point at EOF. r=smaug. 2017-11-13 16:59:11 +02:00
nsHtml5PlainTextUtils.cpp Bug 1395486 - Move resource://gre-resource/plaintext.css to resource://content-accessible/plaintext.css. r=heycam 2017-08-31 17:06:22 +08:00
nsHtml5PlainTextUtils.h
nsHtml5Portability.cpp Bug 500617 - Remove always-zero offsets from HTML5 parser. r=hsivonen 2017-10-23 14:42:21 +03:00
nsHtml5Portability.h Bug 1424548 - Part 9a: clang-format generated HTML parser code. r=hsivonen 2017-12-21 00:02:43 -08:00
nsHtml5SVGLoadDispatcher.cpp
nsHtml5SVGLoadDispatcher.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
nsHtml5Speculation.cpp
nsHtml5Speculation.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
nsHtml5SpeculativeLoad.cpp Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
nsHtml5SpeculativeLoad.h Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
nsHtml5StackNode.cpp Bug 1424548 - Part 9a: clang-format generated HTML parser code. r=hsivonen 2017-12-21 00:02:43 -08:00
nsHtml5StackNode.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02:00
nsHtml5StateSnapshot.cpp Bug 1424548 - Part 9a: clang-format generated HTML parser code. r=hsivonen 2017-12-21 00:02:43 -08:00
nsHtml5StateSnapshot.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02: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 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
nsHtml5StreamParser.h Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs 2017-11-23 15:03:41 +08:00
nsHtml5StreamParserPtr.h Bug 1424548 - Part 1: Fix non-unified build of HTML parser code. r=hsivonen 2017-12-04 13:09:15 -08:00
nsHtml5String.cpp Bug 1405568 - Return false from nsHtml5String::LowerCaseStartsWithASCII when this string is shorter than the literal. r=smaug 2017-10-09 10:43:48 +03:00
nsHtml5String.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5StringParser.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5StringParser.h Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5Tokenizer.cpp Bug 1424548 - Part 11: Regenerate HTML parser code with MOZ_FALLTHROUGH annotations. r=hsivonen 2017-12-01 01:05:26 -08:00
nsHtml5Tokenizer.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02:00
nsHtml5TokenizerCppSupplement.h Bug 1424548 - Part 1: Fix non-unified build of HTML parser code. r=hsivonen 2017-12-04 13:09:15 -08:00
nsHtml5TokenizerHSupplement.h
nsHtml5TokenizerLoopPolicies.h
nsHtml5TreeBuilder.cpp Bug 1426997 - Add MOZ_FALLTHROUGH_ASSERT to make it clear that it can never fall through r=hsivonen 2018-01-29 09:11:08 +01:00
nsHtml5TreeBuilder.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02:00
nsHtml5TreeBuilderCppSupplement.h Bug 1392996 - Part 1 - Add meta viewport tag to view-source document. r=hsivonen 2018-01-23 22:25:09 +01:00
nsHtml5TreeBuilderHSupplement.h Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs 2017-11-23 15:03:41 +08:00
nsHtml5TreeOpExecutor.cpp Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
nsHtml5TreeOpExecutor.h Bug 1382020 - Don't preload nomodule scripts when modules are enabled r=hsivonen 2018-01-23 13:07:37 +00:00
nsHtml5TreeOpStage.cpp
nsHtml5TreeOpStage.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
nsHtml5TreeOperation.cpp Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition; r=smaug 2018-01-17 14:55:13 +08:00
nsHtml5TreeOperation.h Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs 2017-11-23 15:03:41 +08:00
nsHtml5UTF16Buffer.cpp Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro. 2017-10-03 09:05:19 +11:00
nsHtml5UTF16Buffer.h Bug 1424220 - Set mCurrentHtmlScriptIsAsyncOrDefer to false when restoring tree builder state. r=smaug 2018-01-15 20:07:28 +02:00
nsHtml5UTF16BufferCppSupplement.h
nsHtml5UTF16BufferHSupplement.h
nsHtml5ViewSourceUtils.cpp Bug 1392996 - Part 1 - Add meta viewport tag to view-source document. r=hsivonen 2018-01-23 22:25:09 +01:00
nsHtml5ViewSourceUtils.h Bug 1392996 - Part 1 - Add meta viewport tag to view-source document. r=hsivonen 2018-01-23 22:25:09 +01:00
nsIContentHandle.h
nsIParserUtils.idl
nsIScriptableUnescapeHTML.idl
nsParserUtils.cpp Bug 1432186 part 16. Remove nsIDOMNode's ownerDocument attribute. r=mccr8 2018-01-29 23:10:52 -05:00
nsParserUtils.h