Commit e7b8679c authored by adele's avatar adele

Reviewed by Kevin Decker.

        Fix for <rdar://problem/4926179> Text in menulist control should never update if menu is open

        * rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
          Only setTextFromOption if the menu isn't visible.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8695b238
2007-03-15 Adele Peterson <adele@apple.com>
Reviewed by Kevin Decker.
Fix for <rdar://problem/4926179> Text in menulist control should never update if menu is open
* rendering/RenderMenuList.cpp: (WebCore::RenderMenuList::updateFromElement):
Only setTextFromOption if the menu isn't visible.
2007-03-15 Brady Eidson <beidson@apple.com>
Reviewed by Oliver
......
......@@ -140,10 +140,10 @@ void RenderMenuList::updateFromElement()
m_optionsChanged = false;
}
setTextFromOption(static_cast<HTMLSelectElement*>(node())->selectedIndex());
if (m_popupIsVisible)
m_popup->updateFromElement();
else
setTextFromOption(static_cast<HTMLSelectElement*>(node())->selectedIndex());
}
void RenderMenuList::setTextFromOption(int optionIndex)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment