mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
9c467e7e8d
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 |
||
---|---|---|
.. | ||
expat | ||
html | ||
htmlparser | ||
xml | ||
moz.build | ||
nsCharsetSource.h |