Changeset 184380 in webkit


Ignore:
Timestamp:
May 15, 2015, 4:59:25 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r184219 - REGRESSION(r175617): Some text doesn't render on internationalculinarycenter.com
https://bugs.webkit.org/show_bug.cgi?id=144917
rdar://problem/20545878

Reviewed by Andreas Kling.

This patch ensures that text stroke width value is taken into account while
calculating visual overflow for simple line layout.
Ceiling the text stroke width value matches the normal text layout behaviour.

Source/WebCore:

Test: fast/text/simple-line-layout-text-stroke-width.html

  • rendering/SimpleLineLayoutFunctions.cpp:

(WebCore::SimpleLineLayout::paintFlow):
(WebCore::SimpleLineLayout::collectFlowOverflow):

LayoutTests:

  • fast/text/simple-line-layout-text-stroke-width-expected.txt: Added.
  • fast/text/simple-line-layout-text-stroke-width.html: Added.
Location:
releases/WebKitGTK/webkit-2.8
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.8/LayoutTests/ChangeLog

    r184189 r184380  
     12015-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
    1162015-05-11  Chris Fleizach  <cfleizach@apple.com>
    217
  • releases/WebKitGTK/webkit-2.8/Source/WebCore/ChangeLog

    r184377 r184380  
     12015-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
    1192015-05-12  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • releases/WebKitGTK/webkit-2.8/Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp

    r178510 r184380  
    8080
    8181    auto resolver = runResolver(flow, layout);
     82    float strokeOverflow = ceilf(flow.style().textStrokeWidth());
    8283    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))
    8487            continue;
    8588        TextRun textRun(run.text());
     
    128131{
    129132    auto resolver = lineResolver(flow, layout);
     133    float strokeOverflow = ceilf(flow.style().textStrokeWidth());
    130134    for (auto it = resolver.begin(), end = resolver.end(); it != end; ++it) {
    131135        auto rect = *it;
     136        rect.inflate(strokeOverflow);
    132137        flow.addLayoutOverflow(rect);
    133138        flow.addVisualOverflow(rect);
Note: See TracChangeset for help on using the changeset viewer.