Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: Source/core/dom/Document.cpp

Issue 346603005: Remove the old text autosizer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase for landing Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 3fa9fc9c630cc2b0b3d73d60c53836f28bf28107..5034de808f93dfe293e7ec68c613864bd6ef3982 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -173,7 +173,6 @@
#include "core/rendering/HitTestResult.h"
#include "core/rendering/RenderView.h"
#include "core/rendering/RenderWidget.h"
-#include "core/rendering/TextAutosizer.h"
#include "core/rendering/compositing/RenderLayerCompositor.h"
#include "core/svg/SVGDocumentExtensions.h"
#include "core/svg/SVGFontFaceElement.h"
@@ -4624,14 +4623,6 @@ void Document::finishedParsing()
if (!m_documentTiming.domContentLoadedEventEnd)
m_documentTiming.domContentLoadedEventEnd = monotonicallyIncreasingTime();
- if (frame() && frame()->isMainFrame()) {
- // Reset the text autosizing multipliers on main frame when DOM is loaded.
- // This is to allow for a fresh text autosizing pass when the page layout
- // changes significantly in the end.
- if (TextAutosizer* textAutosizer = this->textAutosizer())
- textAutosizer->recalculateMultipliers();
- }
-
// The loader's finishedParsing() method may invoke script that causes this object to
// be dereferenced (when this document is in an iframe and the onload causes the iframe's src to change).
// Keep it alive until we are done.
@@ -5668,13 +5659,6 @@ void Document::modifiedStyleSheet(StyleSheet* sheet, StyleResolverUpdateMode upd
styleResolverChanged(updateMode);
}
-TextAutosizer* Document::textAutosizer()
-{
- if (!m_textAutosizer && !RuntimeEnabledFeatures::fastTextAutosizingEnabled())
- m_textAutosizer = TextAutosizer::create(this);
- return m_textAutosizer.get();
-}
-
FastTextAutosizer* Document::fastTextAutosizer()
{
if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnabled())
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698