Introduce PickerIndicatorOwner interface that replaces the role of hostInput() in PickerIndicatorElement. It makes easier to add interactions between picker indicator and its owner without adding functions to HTMLInputElement.
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.