Changeset 150769 in webkit


Ignore:
Timestamp:
May 27, 2013 11:39:02 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Checkbox UX update.
https://bugs.webkit.org/show_bug.cgi?id=116838.

Patch by Tiancheng Jiang <tijiang@rim.com> on 2013-05-27
Reviewed by Rob Buis.

BlackBerry PR 342302.
Internally Reviewed by Jeff Rogers.
Remove old background and change pressed checkmark image.

  • platform/blackberry/RenderThemeBlackBerry.cpp:

(WebCore::RenderThemeBlackBerry::paintCheckbox):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150768 r150769  
     12013-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
    1152013-05-27  Sam Weinig  <sam@webkit.org>
    216
  • trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp

    r149822 r150769  
    446446    GraphicsContext* context = info.context;
    447447
    448     static RefPtr<Image> disabled, background, inactive, pressed, active, activeMark, disableMark;
     448    static RefPtr<Image> disabled, inactive, pressed, active, activeMark, disableMark, pressedMark;
    449449    if (!disabled) {
    450450        disabled = loadImage("core_checkbox_disabled");
    451         background = loadImage("core_checkbox_moat");
    452451        inactive = loadImage("core_checkbox_inactive");
    453452        pressed = loadImage("core_checkbox_pressed");
     
    455454        activeMark = loadImage("core_checkbox_active_mark");
    456455        disableMark = loadImage("core_checkbox_disabled_mark");
     456        pressedMark = loadImage("core_checkbox_pressed_mark");
    457457    }
    458458
     
    466466    FloatRect centerRect(centerX, centerY, width, height);
    467467
    468     drawControl(context, rect, background.get());
    469 
    470468    if (isEnabled(object)) {
    471469        if (isPressed(object)) {
    472470            drawControl(context, rect, pressed.get());
    473471            if (isChecked(object)) {
    474                 // FIXME: need opacity 30% on activeMark
    475                 drawControl(context, centerRect, activeMark.get());
     472                drawControl(context, centerRect, pressedMark.get());
    476473            }
    477474        } else {
Note: See TracChangeset for help on using the changeset viewer.