Build fix after 187961
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Aug 2015 16:15:40 +0000 (16:15 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Aug 2015 16:15:40 +0000 (16:15 +0000)
* platform/mac/ThemeMac.mm:
(WebCore::ThemeMac::drawCellOrFocusRingWithViewIntoContext):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187963 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/mac/ThemeMac.mm

index 8957752951e5fa564f0d8a96bc580dbeda2bf8f4..23805fc8967ab773a9b30e0b9202b1c7e32e0cf2 100644 (file)
@@ -1,3 +1,10 @@
+2015-08-05  Wenson Hsieh  <wenson_hsieh@apple.com>
+
+        Build fix after 187961
+
+        * platform/mac/ThemeMac.mm:
+        (WebCore::ThemeMac::drawCellOrFocusRingWithViewIntoContext):
+
 2015-08-05  Daniel Bates  <dabates@apple.com>
 
         REGRESSION (r185111): Clicking phone numbers doesn't prompt to call sometimes
index 8fc41ebf35ae72317bcf884c07fe74db8e7bbb09..9e74595583e77dda2c713ad5840fa0d6aa6861c9 100644 (file)
@@ -669,7 +669,7 @@ bool ThemeMac::drawCellOrFocusRingWithViewIntoContext(RetainPtr<NSCell> cell, Gr
     ASSERT(drawButtonCell || drawFocusRing);
     bool needsRepaint = false;
     if (useImageBuffer) {
-        NSRect imageBufferDrawRect = CGRectMake(buttonFocusRectOutlineWidth, buttonFocusRectOutlineWidth, inflatedRect.width(), inflatedRect.height());
+        NSRect imageBufferDrawRect = NSRect(FloatRect(buttonFocusRectOutlineWidth, buttonFocusRectOutlineWidth, inflatedRect.width(), inflatedRect.height()));
         std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::createCompatibleBuffer(inflatedRect.size() + 2 * FloatSize(buttonFocusRectOutlineWidth, buttonFocusRectOutlineWidth), deviceScaleFactor, ColorSpaceSRGB, context, false);
         {
             LocalCurrentGraphicsContext localContext(imageBuffer->context());