Changeset 19573 in webkit


Ignore:
Timestamp:
Feb 12, 2007 3:59:07 AM (17 years ago)
Author:
mjs
Message:

LayoutTests:

Reviewed by Antti.



  • fast/text/text-shadow-extreme-value.html: Added.
  • fast/text/text-shadow-extreme-value-expected.txt: Added.

WebCore:

Reviewed by Antti.


Test: fast/text/text-shadow-extreme-value.html

  • platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::GraphicsContext::setShadow): Clamp shadow value to 1000px, anything more seems to make CG unhappy.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r19571 r19573  
     12007-02-12  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Antti.
     4       
     5        - test case for <rdar://problem/4928675> REGRESSION: Crash in CGBlt_copyBytes under WebCore::Font::drawGlyphs (12083)
     6        http://bugs.webkit.org/show_bug.cgi?id=12083
     7       
     8        * fast/text/text-shadow-extreme-value.html: Added.
     9        * fast/text/text-shadow-extreme-value-expected.txt: Added.
     10
    1112007-02-11  Maciej Stachowiak  <mjs@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r19572 r19573  
     12007-02-12  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Antti.
     4
     5        - fixed <rdar://problem/4928675> REGRESSION: Crash in CGBlt_copyBytes under WebCore::Font::drawGlyphs (12083)
     6        http://bugs.webkit.org/show_bug.cgi?id=12083
     7       
     8        Test: fast/text/text-shadow-extreme-value.html
     9
     10        * platform/graphics/cg/GraphicsContextCG.cpp:
     11        (WebCore::GraphicsContext::setShadow): Clamp shadow value to 1000px, anything more seems to
     12        make CG unhappy.
     13
    1142007-02-11  Brady Eidson <beidson@apple.com>
    215
    3         Reviewed by Maciej
     16        Reviewed by Maciej.
    417
    518        First in what will be a series of HistoryItem enhancements to help debugging
  • trunk/WebCore/platform/graphics/cg/GraphicsContextCG.cpp

    r18654 r19573  
    596596void GraphicsContext::setShadow(const IntSize& size, int blur, const Color& color)
    597597{
     598    // Extreme "blur" values can make text drawing crash or take crazy long times, so clamp
     599    blur = min(blur, 1000);
     600
    598601    if (paintingDisabled())
    599602        return;
Note: See TracChangeset for help on using the changeset viewer.