⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176534 in webkit


Ignore:
Timestamp:
Nov 24, 2014, 7:47:57 PM (12 years ago)
Author:
Alan Bujtas
Message:

Fix r176527. Iterate through the text renderers.
https://bugs.webkit.org/show_bug.cgi?id=139007

Reviewed by Antti Koivisto.

  • rendering/SimpleLineLayout.cpp:

(WebCore::SimpleLineLayout::canUseFor):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176531 r176534  
     12014-11-24  Zalan Bujtas  <zalan@apple.com>
     2
     3        Fix r176527. Iterate through the text renderers.
     4        https://bugs.webkit.org/show_bug.cgi?id=139007
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * rendering/SimpleLineLayout.cpp:
     9        (WebCore::SimpleLineLayout::canUseFor):
     10
    1112014-11-24  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Source/WebCore/rendering/SimpleLineLayout.cpp

    r176531 r176534  
    168168    if (flow.containsFloats()) {
    169169        float minimumWidthNeeded = std::numeric_limits<float>::max();
    170         for (const auto& textRenderer : childrenOfType<RenderText>(flow))
     170        for (const auto& textRenderer : childrenOfType<RenderText>(flow)) {
    171171            minimumWidthNeeded = std::min(minimumWidthNeeded, textRenderer.minLogicalWidth());
    172172
    173         for (auto& floatRenderer : *flow.floatingObjectSet()) {
    174             ASSERT(floatRenderer);
    175             float availableWidth = flow.availableLogicalWidthForLine(floatRenderer->y(), false);
    176             if (availableWidth < minimumWidthNeeded)
    177                 return false;
     173            for (auto& floatRenderer : *flow.floatingObjectSet()) {
     174                ASSERT(floatRenderer);
     175                float availableWidth = flow.availableLogicalWidthForLine(floatRenderer->y(), false);
     176                if (availableWidth < minimumWidthNeeded)
     177                    return false;
     178            }
    178179        }
    179180    }
Note: See TracChangeset for help on using the changeset viewer.