summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/fwl_panelimp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-06 13:40:02 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-06 13:40:02 -0700
commit72851be38d09908efb0d3eca248ee9d3fc655773 (patch)
tree0b9f875256976bd741515119c7af9a50f8743a00 /xfa/fwl/core/fwl_panelimp.cpp
parent98a689f63282cfcae1e70f9a1303e56c3b4ce13e (diff)
downloadpdfium-72851be38d09908efb0d3eca248ee9d3fc655773.tar.xz
Remove IFWL_Grid and other grid classes.
The IFWL_Grid class wasn't an interface, it was a concrete class. Even as a concrete class it was never instantiated. The various other CFWL_Grid* class were also not instantiated. BUG=pdfium:468 Review URL: https://codereview.chromium.org/1862243002
Diffstat (limited to 'xfa/fwl/core/fwl_panelimp.cpp')
-rw-r--r--xfa/fwl/core/fwl_panelimp.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/xfa/fwl/core/fwl_panelimp.cpp b/xfa/fwl/core/fwl_panelimp.cpp
index fce89fb465..a3e304b810 100644
--- a/xfa/fwl/core/fwl_panelimp.cpp
+++ b/xfa/fwl/core/fwl_panelimp.cpp
@@ -13,7 +13,6 @@
#include "xfa/fwl/core/fwl_widgetmgrimp.h"
#include "xfa/fwl/core/ifwl_content.h"
#include "xfa/fwl/core/ifwl_custompanel.h"
-#include "xfa/fwl/core/ifwl_grid.h"
#include "xfa/fwl/core/ifwl_panel.h"
#include "xfa/fwl/core/ifwl_proxy.h"
@@ -59,17 +58,10 @@ FWL_ERR CFWL_PanelImp::Update() {
if (m_pContent) {
CFX_RectF rtClient;
GetClientRect(rtClient);
- FWL_GRIDUNIT eWidth = FWL_GRIDUNIT_Fixed, eHeight = FWL_GRIDUNIT_Fixed;
IFWL_WidgetMgr* pWidgetMgr = FWL_GetWidgetMgr();
if (!pWidgetMgr)
return FWL_ERR_Indefinite;
- IFWL_Widget* pParent =
- pWidgetMgr->GetWidget(GetInterface(), FWL_WGTRELATION_Parent);
- if (pParent && pParent->GetClassID() == FWL_CLASSHASH_Grid) {
- IFWL_Grid* pGrid = static_cast<IFWL_Grid*>(pParent);
- pGrid->GetWidgetSize(GetInterface(), FWL_GRIDSIZE_Width, eWidth);
- pGrid->GetWidgetSize(GetInterface(), FWL_GRIDSIZE_Height, eHeight);
- }
+
m_pContent->SetWidgetRect(rtClient);
m_pContent->Update();
}