Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(961)

Unified Diff: xfa/src/fwl/src/core/fwl_panelimp.cpp

Issue 1508883003: Replace more static casts in FWL (part 3) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/src/fwl/src/core/fwl_panelimp.cpp
diff --git a/xfa/src/fwl/src/core/fwl_panelimp.cpp b/xfa/src/fwl/src/core/fwl_panelimp.cpp
index 991ce226ab462768435f59f63e8655985e000e89..df2fca9da5a0e0094148e2e7d267f9d18dcb6727 100644
--- a/xfa/src/fwl/src/core/fwl_panelimp.cpp
+++ b/xfa/src/fwl/src/core/fwl_panelimp.cpp
@@ -59,13 +59,11 @@ FWL_ERR CFWL_PanelImp::Update() {
if (!pWidgetMgr)
return FWL_ERR_Indefinite;
IFWL_Widget* pParent =
- pWidgetMgr->GetWidget((IFWL_Widget*)this, FWL_WGTRELATION_Parent);
+ pWidgetMgr->GetWidget(GetInterface(), FWL_WGTRELATION_Parent);
if (pParent && pParent->GetClassID() == FWL_CLASSHASH_Grid) {
- IFWL_Grid* pGrid = (IFWL_Grid*)pParent;
- pGrid->GetWidgetSize((IFWL_Widget*)this, FWL_GRIDSIZE_Width, eWidth);
- pGrid->GetWidgetSize((IFWL_Widget*)this, FWL_GRIDSIZE_Height, eHeight);
- }
- if (eWidth != FWL_GRIDUNIT_Auto || eHeight != FWL_GRIDUNIT_Auto) {
+ IFWL_Grid* pGrid = static_cast<IFWL_Grid*>(pParent);
+ pGrid->GetWidgetSize(GetInterface(), FWL_GRIDSIZE_Width, eWidth);
Tom Sepez 2015/12/08 00:47:06 yow.
+ pGrid->GetWidgetSize(GetInterface(), FWL_GRIDSIZE_Height, eHeight);
}
m_pContent->SetWidgetRect(rtClient);
m_pContent->Update();

Powered by Google App Engine
This is Rietveld 408576698