Bug 87719

Summary: REGRESSION(r111497): The "option" element doesn't match CSS pseudo class :enabled
Product: WebKit Reporter: yosin
Component: FormsAssignee: yosin
Status: RESOLVED FIXED    
Severity: Normal CC: cmarcelo, macpherson, menard, mitz, tkent, webkit.review.bot
Priority: P1 Keywords: InRadar, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 80381    
Attachments:
Description Flags
Patch 1
none
Patch 2
none
Patch 3 none

Description yosin 2012-05-29 03:01:37 PDT
In SelectorChecker::checkOneSelector, following code fragment should check element->hasTagName(optionTag).
Because, r111497 changed base class of HTMLOptionElement to HTMLElement from HTMLFormControlElement.

        case CSSSelector::PseudoEnabled:
            if (element && element->isFormControlElement())
                return element->isEnabledFormControl();
            break;
Comment 1 yosin 2012-05-29 18:51:34 PDT
Created attachment 144673 [details]
Patch 1
Comment 2 yosin 2012-05-29 18:52:15 PDT
Comment on attachment 144673 [details]
Patch 1

Could you review this patch?
Thanks in advance.
Comment 3 Kent Tamura 2012-05-29 18:55:54 PDT
Comment on attachment 144673 [details]
Patch 1

View in context: https://bugs.webkit.org/attachment.cgi?id=144673&action=review

> Source/WebCore/css/SelectorChecker.cpp:1054
> -            if (element && (element->isFormControlElement() ||  element->hasTagName(optgroupTag)))
> +            if (element && (element->isFormControlElement() || element->hasTagName(optionTag) ||  element->hasTagName(optgroupTag)))

Would you remove one space after the second || please?
Comment 4 mitz 2012-05-29 18:57:27 PDT
<rdar://problem/11553964>
Comment 5 yosin 2012-05-29 19:16:08 PDT
Created attachment 144677 [details]
Patch 2
Comment 6 yosin 2012-05-29 19:16:38 PDT
Comment on attachment 144677 [details]
Patch 2

Remove an extra space.
Comment 7 WebKit Review Bot 2012-05-29 21:05:14 PDT
Comment on attachment 144677 [details]
Patch 2

Rejecting attachment 144677 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 1

ERROR: /mnt/git/webkit-commit-queue/LayoutTests/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).

Full output: http://queues.webkit.org/results/12845746
Comment 8 yosin 2012-05-29 21:08:37 PDT
Created attachment 144690 [details]
Patch 3
Comment 9 WebKit Review Bot 2012-05-29 21:34:49 PDT
Comment on attachment 144690 [details]
Patch 3

Clearing flags on attachment: 144690

Committed r118891: <http://trac.webkit.org/changeset/118891>
Comment 10 WebKit Review Bot 2012-05-29 21:34:58 PDT
All reviewed patches have been landed.  Closing bug.