Changeset 112814 in webkit


Ignore:
Timestamp:
Apr 1, 2012 6:40:30 AM (12 years ago)
Author:
leo.yang@torchmobile.com.cn
Message:

[BlackBerry] Use GraphicsContext::fillPath() and strokePath instead of drawPath() in RenderThemeBlackBerry
https://bugs.webkit.org/show_bug.cgi?id=81486

Reviewed by Rob Buis.

RenderThemeBlackBerry was using GraphicsContext::drawPath() that's added for BlackBerry internally.
But we already have fillPath() and strokePath() in GraphicsContext. So just substitute drawPath()
by them. Also fix a build issue by adding a #include line.

No functionalities changed, no new tests.

  • platform/blackberry/RenderThemeBlackBerry.cpp:

(WebCore::RenderThemeBlackBerry::paintTextFieldOrTextAreaOrSearchField):
(WebCore::RenderThemeBlackBerry::paintButton):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112813 r112814  
     12012-04-01  Leo Yang  <leo.yang@torchmobile.com.cn>
     2
     3        [BlackBerry] Use GraphicsContext::fillPath() and strokePath instead of drawPath() in RenderThemeBlackBerry
     4        https://bugs.webkit.org/show_bug.cgi?id=81486
     5
     6        Reviewed by Rob Buis.
     7
     8        RenderThemeBlackBerry was using GraphicsContext::drawPath() that's added for BlackBerry internally.
     9        But we already have fillPath() and strokePath() in GraphicsContext. So just substitute drawPath()
     10        by them. Also fix a build issue by adding a #include line.
     11
     12        No functionalities changed, no new tests.
     13
     14        * platform/blackberry/RenderThemeBlackBerry.cpp:
     15        (WebCore::RenderThemeBlackBerry::paintTextFieldOrTextAreaOrSearchField):
     16        (WebCore::RenderThemeBlackBerry::paintButton):
     17
    1182012-04-01  Nikolas Zimmermann  <nzimmermann@rim.com>
    219
  • trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp

    r108296 r112814  
    2424#include "CSSValueKeywords.h"
    2525#include "Frame.h"
     26#include "HTMLMediaElement.h"
    2627#include "MediaControlElements.h"
    2728#include "MediaPlayerPrivateBlackBerry.h"
     
    257258        // We force the fill color to White so as to match the background color of the search cancel button graphic.
    258259        context->setFillColor(Color::white, ColorSpaceDeviceRGB);
    259         context->drawPath(textFieldRoundedRectangle);
     260        context->fillPath(textFieldRoundedRectangle);
     261        context->strokePath(textFieldRoundedRectangle);
    260262    } else
    261263        context->strokePath(textFieldRoundedRectangle);
     
    406408        Path path;
    407409        path.addRoundedRect(rect, smallCorner);
    408         info.context->drawPath(path);
     410        info.context->fillPath(path);
     411        info.context->strokePath(path);
    409412
    410413        if (isChecked(object)) {
     
    418421            info.context->setStrokeColor(blackPen, ColorSpaceDeviceRGB);
    419422            info.context->setStrokeThickness(rect2.width() / checkboxStrokeThickness);
    420             info.context->drawPath(checkPath);
     423            info.context->fillPath(checkPath);
     424            info.context->strokePath(checkPath);
    421425        }
    422426        break;
     
    437441        Path path;
    438442        path.addRoundedRect(rect, largeCorner);
    439         info.context->drawPath(path);
     443        info.context->fillPath(path);
     444        info.context->strokePath(path);
    440445        break;
    441446    }
     
    443448        Path path;
    444449        path.addRect(rect);
    445         info.context->drawPath(path);
     450        info.context->fillPath(path);
     451        info.context->strokePath(path);
    446452        break;
    447453    }
Note: See TracChangeset for help on using the changeset viewer.