summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_picturebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/ifwl_picturebox.cpp')
-rw-r--r--xfa/fwl/core/ifwl_picturebox.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/xfa/fwl/core/ifwl_picturebox.cpp b/xfa/fwl/core/ifwl_picturebox.cpp
index 17a87ed835..b7a4c61118 100644
--- a/xfa/fwl/core/ifwl_picturebox.cpp
+++ b/xfa/fwl/core/ifwl_picturebox.cpp
@@ -13,10 +13,7 @@
IFWL_PictureBox::IFWL_PictureBox(
const IFWL_App* app,
std::unique_ptr<CFWL_WidgetProperties> properties)
- : IFWL_Widget(app, std::move(properties), nullptr),
- m_bTop(false),
- m_bVCenter(false),
- m_bButton(false) {
+ : IFWL_Widget(app, std::move(properties), nullptr) {
m_rtClient.Reset();
m_rtImage.Reset();
m_matrix.SetIdentity();
@@ -100,21 +97,6 @@ void IFWL_PictureBox::DrawBkground(CFX_Graphics* pGraphics,
&matrix);
}
-bool IFWL_PictureBox::VStyle(uint32_t dwStyle) {
- switch (dwStyle & FWL_STYLEEXT_PTB_VAlignMask) {
- case FWL_STYLEEXT_PTB_Top:
- m_bTop = true;
- return true;
- case FWL_STYLEEXT_PTB_Vcenter:
- m_bVCenter = true;
- return true;
- case FWL_STYLEEXT_PTB_Bottom:
- m_bButton = true;
- return true;
- }
- return false;
-}
-
void IFWL_PictureBox::OnDrawWidget(CFX_Graphics* pGraphics,
const CFX_Matrix* pMatrix) {
DrawWidget(pGraphics, pMatrix);