diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-17 09:55:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-17 09:55:41 -0800 |
commit | 28f9b62c397c4f3f8dc0cba69ce1cb8c02f81e76 (patch) | |
tree | 9f6aa0965e1b20964e40e2976f49eb9992816d4f /xfa/fwl/core/ifwl_listbox.cpp | |
parent | e7798055382d2694e2ce78e5330af20c741d0a84 (diff) | |
download | pdfium-28f9b62c397c4f3f8dc0cba69ce1cb8c02f81e76.tar.xz |
Remove the CFWL_EventType::DrawItem
The ListBox DrawItems event is caught by the ComboBox which converts the
event into a ComboBox DrawItems event which is never processed. Removed both.
Review-Url: https://codereview.chromium.org/2510123002
Diffstat (limited to 'xfa/fwl/core/ifwl_listbox.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_listbox.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/xfa/fwl/core/ifwl_listbox.cpp b/xfa/fwl/core/ifwl_listbox.cpp index 1f5a50c4c8..4a8f9395b6 100644 --- a/xfa/fwl/core/ifwl_listbox.cpp +++ b/xfa/fwl/core/ifwl_listbox.cpp @@ -510,17 +510,8 @@ void IFWL_ListBox::DrawItems(CFX_Graphics* pGraphics, if (bMultiCol && rtItem.left > m_rtConent.right()) break; - if (GetStylesEx() & FWL_STYLEEXT_LTB_OwnerDraw) { - CFWL_EvtLtbDrawItem ev; - ev.m_pSrcTarget = this; - ev.m_pGraphics = pGraphics; - ev.m_matrix = *pMatrix; - ev.m_index = i; - ev.m_rect = rtItem; - DispatchEvent(&ev); - } else { + if (!(GetStylesEx() & FWL_STYLEEXT_LTB_OwnerDraw)) DrawItem(pGraphics, pTheme, pItem, i, rtItem, pMatrix); - } } } |