[Webkit-unassigned] [Bug 85527] [Qt][WK2] Add support for multi-select list

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 31 13:58:32 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85527





--- Comment #20 from Pierre Rossi <pierre.rossi at gmail.com>  2012-05-31 13:58:31 PST ---
(From update of attachment 145120)
View in context: https://bugs.webkit.org/attachment.cgi?id=145120&action=review

> Source/WebKit2/UIProcess/WebPageProxy.cpp:2759
> +#if PLATFORM(QT)

Could those be in WebPageProxyQt.cpp maybe ?

> Source/WebKit2/UIProcess/qt/WebPopupMenuProxyQt.cpp:246
> +    qSort(list);

In general, couldn't we avoid this whole logic of determining this selectedOriginalIndex() in the UI process at that point and passing it along with the HidePopupMenu messgage ?

Why not update the Button's text directly in the WebProcess ?

Seems to me that something like this should work:
void RenderMenuList::listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow)
{
    HTMLSelectElement* select = toHTMLSelectElement(node());
    select->listBoxSelectItem(listIndex, allowMultiplySelections, shift, fireOnChangeNow);
#if PLATFORM(QT)
    const int firstSelectedIndex = select->selectedIndex();
    if (listIndex <= firstSelectedIndex)
        setTextFromItem(firstSelectedIndex);
#endif
}

With the added benefit of updating the combo button directly during the selection process.

> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:2344
> +#if PLATFORM(QT)

Same as above. WebPageQt.cpp ?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list