Changeset 112814 in webkit
- Timestamp:
- Apr 1, 2012 6:40:30 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112813 r112814 1 2012-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 1 18 2012-04-01 Nikolas Zimmermann <nzimmermann@rim.com> 2 19 -
trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp
r108296 r112814 24 24 #include "CSSValueKeywords.h" 25 25 #include "Frame.h" 26 #include "HTMLMediaElement.h" 26 27 #include "MediaControlElements.h" 27 28 #include "MediaPlayerPrivateBlackBerry.h" … … 257 258 // We force the fill color to White so as to match the background color of the search cancel button graphic. 258 259 context->setFillColor(Color::white, ColorSpaceDeviceRGB); 259 context->drawPath(textFieldRoundedRectangle); 260 context->fillPath(textFieldRoundedRectangle); 261 context->strokePath(textFieldRoundedRectangle); 260 262 } else 261 263 context->strokePath(textFieldRoundedRectangle); … … 406 408 Path path; 407 409 path.addRoundedRect(rect, smallCorner); 408 info.context->drawPath(path); 410 info.context->fillPath(path); 411 info.context->strokePath(path); 409 412 410 413 if (isChecked(object)) { … … 418 421 info.context->setStrokeColor(blackPen, ColorSpaceDeviceRGB); 419 422 info.context->setStrokeThickness(rect2.width() / checkboxStrokeThickness); 420 info.context->drawPath(checkPath); 423 info.context->fillPath(checkPath); 424 info.context->strokePath(checkPath); 421 425 } 422 426 break; … … 437 441 Path path; 438 442 path.addRoundedRect(rect, largeCorner); 439 info.context->drawPath(path); 443 info.context->fillPath(path); 444 info.context->strokePath(path); 440 445 break; 441 446 } … … 443 448 Path path; 444 449 path.addRect(rect); 445 info.context->drawPath(path); 450 info.context->fillPath(path); 451 info.context->strokePath(path); 446 452 break; 447 453 }
Note: See TracChangeset
for help on using the changeset viewer.