| Index: Source/core/layout/TextAutosizer.cpp
|
| diff --git a/Source/core/layout/TextAutosizer.cpp b/Source/core/layout/TextAutosizer.cpp
|
| index 0ddacbaadf4f32dcc1de1e985d18bedb7d38c5fa..bf376f33c8303df1a54bfa133d0ba6803672e559 100644
|
| --- a/Source/core/layout/TextAutosizer.cpp
|
| +++ b/Source/core/layout/TextAutosizer.cpp
|
| @@ -787,9 +787,8 @@ bool TextAutosizer::superclusterHasEnoughTextToAutosize(Supercluster* superclust
|
| if (supercluster->m_hasEnoughTextToAutosize != UnknownAmountOfText)
|
| return supercluster->m_hasEnoughTextToAutosize == HasEnoughText;
|
|
|
| - BlockSet::iterator end = supercluster->m_roots->end();
|
| - for (BlockSet::iterator it = supercluster->m_roots->begin(); it != end; ++it) {
|
| - if (clusterWouldHaveEnoughTextToAutosize(*it, widthProvider)) {
|
| + for (auto* root : *supercluster->m_roots) {
|
| + if (clusterWouldHaveEnoughTextToAutosize(root, widthProvider)) {
|
| supercluster->m_hasEnoughTextToAutosize = HasEnoughText;
|
| return true;
|
| }
|
| @@ -824,8 +823,8 @@ const LayoutBlock* TextAutosizer::maxClusterWidthProvider(const Supercluster* su
|
| float maxWidth = widthFromBlock(result);
|
|
|
| const BlockSet* roots = supercluster->m_roots;
|
| - for (BlockSet::iterator it = roots->begin(); it != roots->end(); ++it) {
|
| - const LayoutBlock* widthProvider = clusterWidthProvider(*it);
|
| + for (const auto* root : *roots) {
|
| + const LayoutBlock* widthProvider = clusterWidthProvider(root);
|
| if (widthProvider->needsLayout())
|
| continue;
|
| float width = widthFromBlock(widthProvider);
|
|
|