Changeset 150769 in webkit
- Timestamp:
- May 27, 2013 11:39:02 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r150768 r150769 1 2013-05-27 Tiancheng Jiang <tijiang@rim.com> 2 3 Checkbox UX update. 4 https://bugs.webkit.org/show_bug.cgi?id=116838. 5 6 Reviewed by Rob Buis. 7 8 BlackBerry PR 342302. 9 Internally Reviewed by Jeff Rogers. 10 Remove old background and change pressed checkmark image. 11 12 * platform/blackberry/RenderThemeBlackBerry.cpp: 13 (WebCore::RenderThemeBlackBerry::paintCheckbox): 14 1 15 2013-05-27 Sam Weinig <sam@webkit.org> 2 16 -
trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp
r149822 r150769 446 446 GraphicsContext* context = info.context; 447 447 448 static RefPtr<Image> disabled, background, inactive, pressed, active, activeMark, disableMark;448 static RefPtr<Image> disabled, inactive, pressed, active, activeMark, disableMark, pressedMark; 449 449 if (!disabled) { 450 450 disabled = loadImage("core_checkbox_disabled"); 451 background = loadImage("core_checkbox_moat");452 451 inactive = loadImage("core_checkbox_inactive"); 453 452 pressed = loadImage("core_checkbox_pressed"); … … 455 454 activeMark = loadImage("core_checkbox_active_mark"); 456 455 disableMark = loadImage("core_checkbox_disabled_mark"); 456 pressedMark = loadImage("core_checkbox_pressed_mark"); 457 457 } 458 458 … … 466 466 FloatRect centerRect(centerX, centerY, width, height); 467 467 468 drawControl(context, rect, background.get());469 470 468 if (isEnabled(object)) { 471 469 if (isPressed(object)) { 472 470 drawControl(context, rect, pressed.get()); 473 471 if (isChecked(object)) { 474 // FIXME: need opacity 30% on activeMark 475 drawControl(context, centerRect, activeMark.get()); 472 drawControl(context, centerRect, pressedMark.get()); 476 473 } 477 474 } else {
Note: See TracChangeset
for help on using the changeset viewer.