Changeset 220901 in webkit


Ignore:
Timestamp:
Aug 17, 2017 9:13:36 PM (7 years ago)
Author:
Wenson Hsieh
Message:

[Input Events] Rename inputType "formatForeColor" to "formatFontColor"
https://bugs.webkit.org/show_bug.cgi?id=175703

Reviewed by Ryosuke Niwa.

Source/WebCore:

Renames an inputType value to match the spec. There is no other change in behavior.
Rebaselines fast/events/input-events-selection-forecolor-data.html and fast/events/input-events-forecolor-data.html.

  • editing/EditCommand.cpp:

(WebCore::inputTypeNameForEditingAction):

LayoutTests:

Rebaselines two LayoutTests that check for the "formatForeColor" inputType.

  • fast/events/input-events-forecolor-data-expected.txt:
  • fast/events/input-events-selection-forecolor-data.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r220892 r220901  
     12017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [Input Events] Rename inputType "formatForeColor" to "formatFontColor"
     4        https://bugs.webkit.org/show_bug.cgi?id=175703
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Rebaselines two LayoutTests that check for the "formatForeColor" inputType.
     9
     10        * fast/events/input-events-forecolor-data-expected.txt:
     11        * fast/events/input-events-selection-forecolor-data.html:
     12
    1132017-08-17  Ryan Haddad  <ryanhaddad@apple.com>
    214
  • trunk/LayoutTests/fast/events/input-events-forecolor-data-expected.txt

    r207244 r220901  
    55
    66event.type = beforeinput
    7 event.inputType = formatForeColor
     7event.inputType = formatFontColor
    88event.data = rgb(255, 255, 255)
    99event.type = input
    10 event.inputType = formatForeColor
     10event.inputType = formatFontColor
    1111event.data = rgb(255, 255, 255)
    1212event.type = beforeinput
    13 event.inputType = formatForeColor
     13event.inputType = formatFontColor
    1414event.data = rgb(100, 255, 0)
    1515event.type = input
    16 event.inputType = formatForeColor
     16event.inputType = formatFontColor
    1717event.data = rgb(100, 255, 0)
    1818event.type = beforeinput
    19 event.inputType = formatForeColor
     19event.inputType = formatFontColor
    2020event.data = rgb(0, 0, 0)
    2121event.type = input
    22 event.inputType = formatForeColor
     22event.inputType = formatFontColor
    2323event.data = rgb(0, 0, 0)
    2424event.type = beforeinput
    25 event.inputType = formatForeColor
     25event.inputType = formatFontColor
    2626event.data = rgb(255, 0, 0)
    2727event.type = input
    28 event.inputType = formatForeColor
     28event.inputType = formatFontColor
    2929event.data = rgb(255, 0, 0)
    3030PASS successfullyParsed is true
  • trunk/LayoutTests/fast/events/input-events-selection-forecolor-data.html

    r208461 r220901  
    3030        function handleInput(event)
    3131        {
    32             if (event.inputType === "formatForeColor")
     32            if (event.inputType === "formatFontColor")
    3333                write(`Received ${event.type} event with data: "${event.data}"`);
    3434        }
  • trunk/Source/WebCore/ChangeLog

    r220897 r220901  
     12017-08-17  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        [Input Events] Rename inputType "formatForeColor" to "formatFontColor"
     4        https://bugs.webkit.org/show_bug.cgi?id=175703
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Renames an inputType value to match the spec. There is no other change in behavior.
     9        Rebaselines fast/events/input-events-selection-forecolor-data.html and fast/events/input-events-forecolor-data.html.
     10
     11        * editing/EditCommand.cpp:
     12        (WebCore::inputTypeNameForEditingAction):
     13
    1142017-08-17  Daewoong Jang  <daewoong.jang@navercorp.com>
    215
  • trunk/Source/WebCore/editing/EditCommand.cpp

    r213355 r220901  
    5757        return ASCIILiteral("formatUnderline");
    5858    case EditActionSetColor:
    59         return ASCIILiteral("formatForeColor");
     59        return ASCIILiteral("formatFontColor");
    6060    case EditActionDeleteByDrag:
    6161        return ASCIILiteral("deleteByDrag");
Note: See TracChangeset for help on using the changeset viewer.