| Index: third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| index bd8e1ee147a2bd9a11d6b1d022f9c2f0bd27949e..44f02be766e504b83384e896b1e4d0f045de902e 100644
|
| --- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
|
| @@ -40,6 +40,7 @@
|
| #include "core/layout/LayoutBlock.h"
|
| #include "core/layout/LayoutListItem.h"
|
| #include "core/layout/LayoutListMarker.h"
|
| +#include "core/layout/LayoutTable.h"
|
| #include "core/layout/LayoutTableCell.h"
|
| #include "core/layout/LayoutView.h"
|
| #include "core/layout/line/InlineIterator.h"
|
| @@ -293,6 +294,10 @@ TextAutosizer::TextAutosizer(const Document* document)
|
| {
|
| }
|
|
|
| +TextAutosizer::~TextAutosizer()
|
| +{
|
| +}
|
| +
|
| void TextAutosizer::record(const LayoutBlock* block)
|
| {
|
| if (!m_pageInfo.m_settingEnabled)
|
| @@ -1040,6 +1045,18 @@ TextAutosizer::Cluster* TextAutosizer::currentCluster() const
|
| return m_clusterStack.last().get();
|
| }
|
|
|
| +TextAutosizer::Cluster::Cluster(const LayoutBlock* root, BlockFlags flags, Cluster* parent, Supercluster* supercluster)
|
| + : m_root(root)
|
| + , m_flags(flags)
|
| + , m_deepestBlockContainingAllText(nullptr)
|
| + , m_parent(parent)
|
| + , m_multiplier(0)
|
| + , m_hasEnoughTextToAutosize(UnknownAmountOfText)
|
| + , m_supercluster(supercluster)
|
| + , m_hasTableAncestor(root->isTableCell() || (m_parent && m_parent->m_hasTableAncestor))
|
| +{
|
| +}
|
| +
|
| #if ENABLE(ASSERT)
|
| void TextAutosizer::FingerprintMapper::assertMapsAreConsistent()
|
| {
|
|
|