tor-browser

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

commit 0ae07e0c7eddcfece6878a55c9615fb6f4c1398c
parent 1acc4435576ca5ed679d6277403da97b7d5bed98
Author: Gregory Pappas <gp3033@protonmail.com>
Date:   Wed, 19 Nov 2025 22:22:54 +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 | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/dom/html/nsHTMLContentSink.cpp b/dom/html/nsHTMLContentSink.cpp @@ -12,7 +12,6 @@ #include "mozAutoDocUpdate.h" #include "mozilla/Logging.h" -#include "mozilla/Preferences.h" #include "mozilla/dom/CustomElementRegistry.h" #include "mozilla/dom/Document.h" #include "mozilla/dom/Element.h" @@ -116,9 +115,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; @@ -529,8 +525,7 @@ nsresult NS_NewHTMLContentSink(nsIHTMLContentSink** aResult, Document* aDoc, } HTMLContentSink::HTMLContentSink() - : mMaxTextRun(0), - mCurrentContext(nullptr), + : mCurrentContext(nullptr), mHeadContext(nullptr), mHaveSeenHead(false), mNotifiedRootInsertion(false) {} @@ -588,10 +583,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);