From a5b47041066011eb590a020bb38035442fce48af Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 19 Oct 2015 14:32:16 -0700 Subject: Merge to XFA: Remove dead code that was reactivated when fixing overrides. BUG=pdfium:205 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1409743004 . (cherry picked from commit 9ddafc82bddb984ae46ee0df801ba20b446d5158) Review URL: https://codereview.chromium.org/1411423002 . --- fpdfsdk/src/pdfwindow/PWL_ListBox.cpp | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'fpdfsdk/src/pdfwindow/PWL_ListBox.cpp') diff --git a/fpdfsdk/src/pdfwindow/PWL_ListBox.cpp b/fpdfsdk/src/pdfwindow/PWL_ListBox.cpp index b252bffb8e..4bdcb5d1f3 100644 --- a/fpdfsdk/src/pdfwindow/PWL_ListBox.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_ListBox.cpp @@ -374,20 +374,17 @@ void CPWL_ListBox::RePosChildWnd() { void CPWL_ListBox::OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, FX_DWORD nFlag) { - if (m_pFillerNotify) { - FX_BOOL bRC = TRUE; - CFX_WideString swChange = GetText(); - CFX_WideString strChangeEx; - int nSelStart = 0; - int nSelEnd = swChange.GetLength(); - m_pFillerNotify->OnBeforeKeyStroke(FALSE, GetAttachedData(), 0, swChange, - strChangeEx, nSelStart, nSelEnd, - bKeyDown, bRC, bExit, nFlag); - if (bExit) - return; - - m_pFillerNotify->OnAfterKeyStroke(FALSE, GetAttachedData(), bExit, nFlag); - } + if (!m_pFillerNotify) + return; + + FX_BOOL bRC = TRUE; + CFX_WideString swChange = GetText(); + CFX_WideString strChangeEx; + int nSelStart = 0; + int nSelEnd = swChange.GetLength(); + m_pFillerNotify->OnBeforeKeyStroke(GetAttachedData(), swChange, strChangeEx, + nSelStart, nSelEnd, bKeyDown, bRC, bExit, + nFlag); } CPDF_Rect CPWL_ListBox::GetFocusRect() const { -- cgit v1.2.3