| Index: fpdfsdk/pdfwindow/PWL_Wnd.cpp
|
| diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/pdfwindow/PWL_Wnd.cpp
|
| index 4a479de0dc18ff9a8aa3cb0e8ec9765b90c6d4d5..adda0bbbc950ffc202a1ce6f442767b025ef0424 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())
|
|
|