tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit e4c0a7574228f2d4c7b06641f511fb01379e9093
parent 90f5a23102ca25f54364c7c4832b6cd3d3d90137
Author: Gregory Pappas <gp3033@protonmail.com>
Date:   Wed, 19 Nov 2025 15:25:19 +0000

Bug 2001105 - Remove unused content.maxtextrun pref r=dom-core,smaug

This became unused in bug 908347

Differential Revision: https://phabricator.services.mozilla.com/D273208

Diffstat:
Mdom/html/nsHTMLContentSink.cpp | 16+++-------------
1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/dom/html/nsHTMLContentSink.cpp b/dom/html/nsHTMLContentSink.cpp @@ -116,9 +116,6 @@ class HTMLContentSink : public nsContentSink, public nsIHTMLContentSink { RefPtr<nsHTMLDocument> mHTMLDocument; - // The maximum length of a text run - int32_t mMaxTextRun; - RefPtr<nsGenericHTMLElement> mRoot; RefPtr<nsGenericHTMLElement> mBody; RefPtr<nsGenericHTMLElement> mHead; @@ -528,12 +525,9 @@ nsresult NS_NewHTMLContentSink(nsIHTMLContentSink** aResult, Document* aDoc, return NS_OK; } -HTMLContentSink::HTMLContentSink() - : mMaxTextRun(0), - mCurrentContext(nullptr), - mHeadContext(nullptr), - mHaveSeenHead(false), - mNotifiedRootInsertion(false) {} +HTMLContentSink::HTMLContentSink() mCurrentContext(nullptr), + mHeadContext(nullptr), mHaveSeenHead(false), + mNotifiedRootInsertion(false) {} HTMLContentSink::~HTMLContentSink() { if (mNotificationTimer) { @@ -588,10 +582,6 @@ nsresult HTMLContentSink::Init(Document* aDoc, nsIURI* aURI, NS_ASSERTION(mDocShell, "oops no docshell!"); - // Changed from 8192 to greatly improve page loading performance on - // large pages. See bugzilla bug 77540. - mMaxTextRun = Preferences::GetInt("content.maxtextrun", 8191); - RefPtr<mozilla::dom::NodeInfo> nodeInfo; nodeInfo = mNodeInfoManager->GetNodeInfo( nsGkAtoms::html, nullptr, kNameSpaceID_XHTML, nsINode::ELEMENT_NODE);