Changeset 208170 in webkit
- Timestamp:
- Oct 31, 2016 1:16:37 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r208159 r208170 1 2016-10-31 Zalan Bujtas <zalan@apple.com> 2 3 ASSERTION FAILED: !m_trailingWhitespaceWidth in WebCore::SimpleLineLayout::LineState::removeTrailingWhitespace 4 https://bugs.webkit.org/show_bug.cgi?id=164076 5 6 Reviewed by Antti Koivisto. 7 8 * fast/text/simple-line-layout-with-zero-sized-font-expected.txt: Added. 9 * fast/text/simple-line-layout-with-zero-sized-font.html: Added. 10 1 11 2016-10-31 Nan Wang <n_wang@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r208169 r208170 1 2016-10-31 Zalan Bujtas <zalan@apple.com> 2 3 ASSERTION FAILED: !m_trailingWhitespaceWidth in WebCore::SimpleLineLayout::LineState::removeTrailingWhitespace 4 https://bugs.webkit.org/show_bug.cgi?id=164076 5 6 Reviewed by Antti Koivisto. 7 8 FontCascade's text measure methods return NaN for zero sized fonts. We could actually early return and not 9 measure text with zero font size at all. 10 11 Test: fast/text/simple-line-layout-with-zero-sized-font.html 12 13 * rendering/SimpleLineLayoutTextFragmentIterator.cpp: 14 (WebCore::SimpleLineLayout::TextFragmentIterator::textWidth): 15 (WebCore::SimpleLineLayout::TextFragmentIterator::runWidth): 16 1 17 2016-10-31 Dave Hyatt <hyatt@apple.com> 2 18 -
trunk/Source/WebCore/rendering/SimpleLineLayoutTextFragmentIterator.cpp
r204531 r208170 150 150 ASSERT(segment.start <= from && from <= segment.end && segment.start <= to && to <= segment.end); 151 151 ASSERT(is<RenderText>(segment.renderer)); 152 if (!m_style.font.size()) 153 return 0; 152 154 if (m_style.font.isFixedPitch() || (from == segment.start && to == segment.end)) 153 155 return downcast<RenderText>(segment.renderer).width(from - segment.start, to - from, m_style.font, xPosition, nullptr, nullptr); … … 197 199 float TextFragmentIterator::runWidth(const FlowContents::Segment& segment, unsigned startPosition, unsigned endPosition, float xPosition) const 198 200 { 201 ASSERT(m_style.font.size()); 199 202 ASSERT(startPosition <= endPosition); 200 203 if (startPosition == endPosition)
Note: See TracChangeset
for help on using the changeset viewer.