diff options
author | dsinclair <dsinclair@chromium.org> | 2016-09-15 12:41:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-15 12:41:50 -0700 |
commit | 8faac627c4562098c62f8497e56a44500c3c199b (patch) | |
tree | 1eeca4146f5376e4416b39c52a091a6d60d93d54 /fpdfsdk/pdfwindow/PWL_Wnd.cpp | |
parent | 4935e606c632e38af8fca1729f8688fa0d152b90 (diff) | |
download | pdfium-8faac627c4562098c62f8497e56a44500c3c199b.tar.xz |
Cleanup CFX_SystemHandler.
This CL cleans up signatures and code in CFX_SystemHandler.
Review-Url: https://codereview.chromium.org/2341693003
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Wnd.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_Wnd.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/pdfwindow/PWL_Wnd.cpp index 4a479de0dc..adda0bbbc9 100644 --- a/fpdfsdk/pdfwindow/PWL_Wnd.cpp +++ b/fpdfsdk/pdfwindow/PWL_Wnd.cpp @@ -24,7 +24,7 @@ PWL_CREATEPARAM::PWL_CREATEPARAM() pFocusHandler(nullptr), dwFlags(0), sBackgroundColor(), - hAttachedWnd(nullptr), + pAttachedWidget(nullptr), nBorderStyle(BorderStyle::SOLID), dwBorderWidth(1), sBorderColor(), @@ -422,9 +422,8 @@ void CPWL_Wnd::InvalidateRect(CFX_FloatRect* pRect) { rcWin.bottom += PWL_INVALIDATE_INFLATE; if (CFX_SystemHandler* pSH = GetSystemHandler()) { - if (FX_HWND hWnd = GetAttachedHWnd()) { - pSH->InvalidateRect(hWnd, rcWin); - } + if (CPDFSDK_Widget* widget = m_sPrivateParam.pAttachedWidget) + pSH->InvalidateRect(widget, rcWin); } } } @@ -907,10 +906,6 @@ FX_RECT CPWL_Wnd::PWLtoWnd(const CFX_FloatRect& rect) const { (int32_t)(rcTemp.right + 0.5), (int32_t)(rcTemp.top + 0.5)); } -FX_HWND CPWL_Wnd::GetAttachedHWnd() const { - return m_sPrivateParam.hAttachedWnd; -} - CFX_FloatPoint CPWL_Wnd::ChildToParent(const CFX_FloatPoint& point) const { CFX_Matrix mt = GetChildMatrix(); if (mt.IsIdentity()) |