Changeset 95004 in webkit


Ignore:
Timestamp:
Sep 12, 2011 8:24:33 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Initialize m_unmodifiedText in PlatformKeyboardEventEfl.
https://bugs.webkit.org/show_bug.cgi?id=67038

Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-09-12
Reviewed by Kenneth Rohde Christiansen.

Since most of the time it will return the same thing as text(), we
initialize it the same way we initialize m_text. The other case (what
would have been generated if no modifiers were pressed) should be
covered by this as well.

As this method is used when handling access keys, tests such as
fast/events/access-key-self-destruct.html should now pass.

No new tests, as this fixes a problem uncovered by the existing ones.

  • platform/efl/PlatformKeyboardEventEfl.cpp:

(WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r95002 r95004  
     12011-09-12  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [EFL] Initialize m_unmodifiedText in PlatformKeyboardEventEfl.
     4        https://bugs.webkit.org/show_bug.cgi?id=67038
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Since most of the time it will return the same thing as text(), we
     9        initialize it the same way we initialize m_text. The other case (what
     10        would have been generated if no modifiers were pressed) should be
     11        covered by this as well.
     12
     13        As this method is used when handling access keys, tests such as
     14        fast/events/access-key-self-destruct.html should now pass.
     15
     16        No new tests, as this fixes a problem uncovered by the existing ones.
     17
     18        * platform/efl/PlatformKeyboardEventEfl.cpp:
     19        (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
     20
    1212011-09-12  Hyowon Kim  <hw1008.kim@samsung.com>
    222
  • trunk/Source/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp

    r89810 r95004  
    192192    : m_type(KeyDown)
    193193    , m_text(String::fromUTF8(event->string))
     194    , m_unmodifiedText(String::fromUTF8(event->string))
    194195    , m_shiftKey(evas_key_modifier_is_set(event->modifiers, "Shift"))
    195196    , m_ctrlKey(evas_key_modifier_is_set(event->modifiers, "Control"))
Note: See TracChangeset for help on using the changeset viewer.