Changeset 40490 in webkit


Ignore:
Timestamp:
Feb 2, 2009 1:35:02 PM (15 years ago)
Author:
bfulgham@webkit.org
Message:
 
Location:
trunk/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r40488 r40490  
     12009-02-02  Brent Fulgham  <bfulgham@webkit.org>
     2
     3        Reviewed by George Staikos.
     4
     5        Fixes https://bugs.webkit.org/show_bug.cgi?id=23691.
     6        Correct build break caused by @r40366 by moving the
     7        common code implmentations from GraphicsContextCGWin.cpp
     8        into the base Windows class (GraphicsContextWin.cpp).  Also
     9        move inTransparencyLayer since it is identical in both
     10        children.
     11
     12        * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
     13          Added member m_shouldIncludeChildWindows to Windows version,
     14          similar to GraphicsContextPlatformPrivateCG.h.
     15        * platform/graphics/win/GraphicsContextCGWin.cpp: Remove the
     16          implementations of shouldIncludeChildWindows,
     17          setShouldIncludeChildWindows, and inTransparencyLayer.
     18        * platform/graphics/win/GraphicsContextCairoWin.cpp: Remove
     19          the implementation of inTransparencyLayer.
     20        * platform/graphics/win/GraphicsContextWin.cpp: Move common code
     21          from GraphicsContextCGWin.cpp and GraphicsContextCairoWin.cpp.
     22        (WebCore::GraphicsContext::inTransparencyLayer):
     23        (WebCore::GraphicsContext::setShouldIncludeChildWindows):
     24        (WebCore::GraphicsContext::shouldIncludeChildWindows):
     25
    1262009-02-02  Darin Adler  <darin@apple.com>
    227
  • trunk/WebCore/platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h

    r39635 r40490  
    5252        , m_hdc(0)
    5353        , m_transparencyCount(0)
     54        , m_shouldIncludeChildWindows(false)
    5455#endif
    5556    {
     
    9596    HDC m_hdc;
    9697    unsigned m_transparencyCount;
     98    bool m_shouldIncludeChildWindows;
    9799#endif
    98100};
  • trunk/WebCore/platform/graphics/win/GraphicsContextCGWin.cpp

    r40366 r40490  
    7777}
    7878
    79 bool GraphicsContext::inTransparencyLayer() const { return m_data->m_transparencyCount; }
    80 
    8179// FIXME: Is it possible to merge getWindowsContext and createWindowsBitmap into a single API
    8280// suitable for all clients?
     
    174172}
    175173
    176 void GraphicsContext::setShouldIncludeChildWindows(bool include)
    177 {
    178     m_data->m_shouldIncludeChildWindows = include;
    179 }
    180 
    181 bool GraphicsContext::shouldIncludeChildWindows() const
    182 {
    183     return m_data->m_shouldIncludeChildWindows;
    184 }
    185 
    186174GraphicsContext::WindowsBitmap::WindowsBitmap(HDC hdc, IntSize size)
    187175    : m_hdc(0)
  • trunk/WebCore/platform/graphics/win/GraphicsContextCairoWin.cpp

    r39635 r40490  
    8888}
    8989
    90 bool GraphicsContext::inTransparencyLayer() const { return m_data->m_transparencyCount; }
    91 
    9290void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
    9391{
  • trunk/WebCore/platform/graphics/win/GraphicsContextWin.cpp

    r39635 r40490  
    4343
    4444class SVGResourceImage;
     45
     46bool GraphicsContext::inTransparencyLayer() const { return m_data->m_transparencyCount; }
     47
     48void GraphicsContext::setShouldIncludeChildWindows(bool include)
     49{
     50    m_data->m_shouldIncludeChildWindows = include;
     51}
     52
     53bool GraphicsContext::shouldIncludeChildWindows() const
     54{
     55    return m_data->m_shouldIncludeChildWindows;
     56}
    4557
    4658void GraphicsContextPlatformPrivate::save()
Note: See TracChangeset for help on using the changeset viewer.