Summary: | Remove HTMLInputElement dependency from PickerIndicatorElement | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kunihiko Sakamoto <ksakamoto> | ||||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | mifenton, tkent, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 101889 | ||||||||
Attachments: |
|
Description
Kunihiko Sakamoto
2012-11-12 02:21:43 PST
Created attachment 173596 [details]
Patch
Comment on attachment 173596 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173596&action=review The code looks ok. One comment. > Source/WebCore/html/shadow/PickerIndicatorElement.h:53 > + virtual bool isPickerIndicatorOwnerDisabled() const = 0; > + virtual bool isPickerIndicatorOwnerReadOnly() const = 0; They are called together every time. So we may merge them into one function like isPickerIndicatorOwnerDisabledOrReadOnly(). This pattern is used in FieldOwner in WebCore/html/shadow/DateTimeFieldElement.h. Created attachment 173600 [details]
Patch 2
Comment on attachment 173596 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173596&action=review >> Source/WebCore/html/shadow/PickerIndicatorElement.h:53 >> + virtual bool isPickerIndicatorOwnerReadOnly() const = 0; > > They are called together every time. So we may merge them into one function like isPickerIndicatorOwnerDisabledOrReadOnly(). This pattern is used in FieldOwner in WebCore/html/shadow/DateTimeFieldElement.h. Done. Comment on attachment 173600 [details]
Patch 2
ok, great.
Comment on attachment 173600 [details] Patch 2 Clearing flags on attachment: 173600 Committed r134206: <http://trac.webkit.org/changeset/134206> All reviewed patches have been landed. Closing bug. |