Changeset 176534 in webkit
- Timestamp:
- Nov 24, 2014, 7:47:57 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
rendering/SimpleLineLayout.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r176531 r176534 1 2014-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 1 11 2014-11-24 Zalan Bujtas <zalan@apple.com> 2 12 -
trunk/Source/WebCore/rendering/SimpleLineLayout.cpp
r176531 r176534 168 168 if (flow.containsFloats()) { 169 169 float minimumWidthNeeded = std::numeric_limits<float>::max(); 170 for (const auto& textRenderer : childrenOfType<RenderText>(flow)) 170 for (const auto& textRenderer : childrenOfType<RenderText>(flow)) { 171 171 minimumWidthNeeded = std::min(minimumWidthNeeded, textRenderer.minLogicalWidth()); 172 172 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 } 178 179 } 179 180 }
Note:
See TracChangeset
for help on using the changeset viewer.