summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering/RenderMenuList.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2014-06-24 17:40:05 +0200
committerPierre Rossi <pierre.rossi@gmail.com>2014-07-30 21:25:00 +0200
commit5f12776a6e3d346bdfea8fbc12df8e643c52c3fd (patch)
treec3811ed2457e2cfe1128e384657b2ed6ad9bb8a0 /Source/WebCore/rendering/RenderMenuList.h
parent622bd271367a251b87881d53df45467777ee863a (diff)
[WK2] Update text upon item selection for menu lists
While RenderListBox repaints itself on selection changes, RenderMenuList lacks this logic when it's used for multiple selections (acting as a listbox). Make sure we properly update the element's text as the options are toggled. Originally reported and proposed fix in http://wkb.ug/91862 Task-number: QTBUG-39675 Change-Id: I09f17ff03577fc6f65875674d632684b560fffb7 Reviewed-by: Michael Bruning <michael.bruning@digia.com> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebCore/rendering/RenderMenuList.h')
-rw-r--r--Source/WebCore/rendering/RenderMenuList.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/rendering/RenderMenuList.h b/Source/WebCore/rendering/RenderMenuList.h
index 7287ac300..eb90a5fc8 100644
--- a/Source/WebCore/rendering/RenderMenuList.h
+++ b/Source/WebCore/rendering/RenderMenuList.h
@@ -54,6 +54,7 @@ public:
void setOptionsChanged(bool changed) { m_needsOptionsWidthUpdate = changed; }
void didSetSelectedIndex(int listIndex);
+ void setTextFromOption(int optionIndex);
String text() const;
@@ -129,7 +130,6 @@ private:
void createInnerBlock();
void adjustInnerStyle();
void setText(const String&);
- void setTextFromOption(int optionIndex);
void updateOptionsWidth();
void didUpdateActiveOption(int optionIndex);