summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_wnd.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-07-19 16:46:22 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-20 17:01:59 +0000
commit77417ec9e1312a75407f8ab46dd46f777a1742f1 (patch)
treef5d40337730001d8576116783fdada892d20becc /fpdfsdk/pdfwindow/cpwl_wnd.h
parentdc11ec85ebf637efe99dd9195a2a6a52c3e4d48f (diff)
downloadpdfium-77417ec9e1312a75407f8ab46dd46f777a1742f1.tar.xz
Make CPWL_Wnd classes be observable.
This is another case where JS may lead to destruction of an object far away from where we are holding it. Bug: 737023 Change-Id: I994d5425184b8c00b5cfaeb95dbb5032a6e09edb Reviewed-on: https://pdfium-review.googlesource.com/8350 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.h')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_wnd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h
index dfe5dc0ab0..56fbb21baa 100644
--- a/fpdfsdk/pdfwindow/cpwl_wnd.h
+++ b/fpdfsdk/pdfwindow/cpwl_wnd.h
@@ -168,7 +168,7 @@ struct PWL_CREATEPARAM {
CFX_Matrix mtChild; // ignore
};
-class CPWL_Wnd : public CPWL_TimerHandler {
+class CPWL_Wnd : public CPWL_TimerHandler, public CFX_Observable<CPWL_Wnd> {
public:
CPWL_Wnd();
~CPWL_Wnd() override;