Changeset 192143 in webkit


Ignore:
Timestamp:
Nov 8, 2015 7:32:41 AM (8 years ago)
Author:
ddkilzer@apple.com
Message:

REGRESSION (r192140): Windows build broke after removing ColorSpace argument to all drawing calls
<http://webkit.org/b/150967>

Unreviewed attempt to fix the Windows build.

  • platform/graphics/ca/win/PlatformCALayerWin.cpp:

(PlatformCALayerWin::drawTextAtPoint):

  • platform/graphics/win/ImageCGWin.cpp:

(WebCore::BitmapImage::drawFrameMatchingSourceSize):

  • rendering/RenderThemeWin.cpp:

(WebCore::RenderThemeWin::paintSearchFieldCancelButton):
(WebCore::RenderThemeWin::paintSearchFieldResultsDecorationPart):
(WebCore::RenderThemeWin::paintSearchFieldResultsButton):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r192142 r192143  
     12015-11-08  David Kilzer  <ddkilzer@apple.com>
     2
     3        REGRESSION (r192140): Windows build broke after removing ColorSpace argument to all drawing calls
     4        <http://webkit.org/b/150967>
     5
     6        Unreviewed attempt to fix the Windows build.
     7
     8        * platform/graphics/ca/win/PlatformCALayerWin.cpp:
     9        (PlatformCALayerWin::drawTextAtPoint):
     10        * platform/graphics/win/ImageCGWin.cpp:
     11        (WebCore::BitmapImage::drawFrameMatchingSourceSize):
     12        * rendering/RenderThemeWin.cpp:
     13        (WebCore::RenderThemeWin::paintSearchFieldCancelButton):
     14        (WebCore::RenderThemeWin::paintSearchFieldResultsDecorationPart):
     15        (WebCore::RenderThemeWin::paintSearchFieldResultsButton):
     16
    1172015-11-08  Youenn Fablet  <youenn.fablet@crf.canon.fr>
    218
  • trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp

    r190292 r192143  
    928928
    929929    GraphicsContext cg(context);
    930     cg.setFillColor(Color::black, ColorSpaceDeviceRGB);
     930    cg.setFillColor(Color::black);
    931931    cg.drawText(font, TextRun(text), IntPoint(x, y));
    932932}
  • trunk/Source/WebCore/platform/graphics/win/ImageCGWin.cpp

    r192140 r192143  
    9595            size_t currentFrame = m_currentFrame;
    9696            m_currentFrame = i;
    97             draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp, BlendModeNormal, ImageOrientationDescription());
     97            draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), compositeOp, BlendModeNormal, ImageOrientationDescription());
    9898            m_currentFrame = currentFrame;
    9999            return;
     
    103103    // No image of the correct size was found, fallback to drawing the current frame
    104104    FloatSize imageSize = BitmapImage::size();
    105     draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp, BlendModeNormal, ImageOrientationDescription());
     105    draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), compositeOp, BlendModeNormal, ImageOrientationDescription());
    106106}
    107107
  • trunk/Source/WebCore/rendering/RenderThemeWin.cpp

    r191049 r192143  
    893893    static Image* cancelImage = Image::loadPlatformResource("searchCancel").leakRef();
    894894    static Image* cancelPressedImage = Image::loadPlatformResource("searchCancelPressed").leakRef();
    895     paintInfo.context().drawImage(isPressed(o) ? *cancelPressedImage : *cancelImage, o.style().colorSpace(), bounds);
     895    paintInfo.context().drawImage(isPressed(o) ? *cancelPressedImage : *cancelImage, bounds);
    896896    return false;
    897897}
     
    941941   
    942942    static Image* magnifierImage = Image::loadPlatformResource("searchMagnifier").leakRef();
    943     paintInfo.context().drawImage(*magnifierImage, o.style().colorSpace(), bounds);
     943    paintInfo.context().drawImage(*magnifierImage, bounds);
    944944    return false;
    945945}
     
    976976
    977977    static Image* magnifierImage = Image::loadPlatformResource("searchMagnifierResults").leakRef();
    978     paintInfo.context().drawImage(*magnifierImage, o.style().colorSpace(), bounds);
     978    paintInfo.context().drawImage(*magnifierImage, bounds);
    979979    return false;
    980980}
Note: See TracChangeset for help on using the changeset viewer.