Changeset 184380 in webkit
- Timestamp:
- May 15, 2015, 4:59:25 AM (10 years ago)
- Location:
- releases/WebKitGTK/webkit-2.8
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.8/LayoutTests/ChangeLog
r184189 r184380 1 2015-05-12 Zalan Bujtas <zalan@apple.com> 2 3 REGRESSION(r175617): Some text doesn't render on internationalculinarycenter.com 4 https://bugs.webkit.org/show_bug.cgi?id=144917 5 rdar://problem/20545878 6 7 Reviewed by Andreas Kling. 8 9 This patch ensures that text stroke width value is taken into account while 10 calculating visual overflow for simple line layout. 11 Ceiling the text stroke width value matches the normal text layout behaviour. 12 13 * fast/text/simple-line-layout-text-stroke-width-expected.txt: Added. 14 * fast/text/simple-line-layout-text-stroke-width.html: Added. 15 1 16 2015-05-11 Chris Fleizach <cfleizach@apple.com> 2 17 -
releases/WebKitGTK/webkit-2.8/Source/WebCore/ChangeLog
r184377 r184380 1 2015-05-12 Zalan Bujtas <zalan@apple.com> 2 3 REGRESSION(r175617): Some text doesn't render on internationalculinarycenter.com 4 https://bugs.webkit.org/show_bug.cgi?id=144917 5 rdar://problem/20545878 6 7 Reviewed by Andreas Kling. 8 9 This patch ensures that text stroke width value is taken into account while 10 calculating visual overflow for simple line layout. 11 Ceiling the text stroke width value matches the normal text layout behaviour. 12 13 Test: fast/text/simple-line-layout-text-stroke-width.html 14 15 * rendering/SimpleLineLayoutFunctions.cpp: 16 (WebCore::SimpleLineLayout::paintFlow): 17 (WebCore::SimpleLineLayout::collectFlowOverflow): 18 1 19 2015-05-12 Carlos Garcia Campos <cgarcia@igalia.com> 2 20 -
releases/WebKitGTK/webkit-2.8/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp
r178510 r184380 80 80 81 81 auto resolver = runResolver(flow, layout); 82 float strokeOverflow = ceilf(flow.style().textStrokeWidth()); 82 83 for (const auto& run : resolver.rangeForRect(paintRect)) { 83 if (!run.rect().intersects(paintRect)) 84 FloatRect rect = run.rect(); 85 rect.inflate(strokeOverflow); 86 if (!rect.intersects(paintRect)) 84 87 continue; 85 88 TextRun textRun(run.text()); … … 128 131 { 129 132 auto resolver = lineResolver(flow, layout); 133 float strokeOverflow = ceilf(flow.style().textStrokeWidth()); 130 134 for (auto it = resolver.begin(), end = resolver.end(); it != end; ++it) { 131 135 auto rect = *it; 136 rect.inflate(strokeOverflow); 132 137 flow.addLayoutOverflow(rect); 133 138 flow.addVisualOverflow(rect);
Note:
See TracChangeset
for help on using the changeset viewer.