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

Unified Diff: xfa/fwl/core/cfwl_widget.cpp

Issue 2506493003: Continue nit cleanup in fwl/core (Closed)
Patch Set: review feedback Created 4 years, 1 month 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
« no previous file with comments | « xfa/fwl/core/cfwl_widget.h ('k') | xfa/fwl/core/cfwl_widgetmgr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/cfwl_widget.cpp
diff --git a/xfa/fwl/core/cfwl_widget.cpp b/xfa/fwl/core/cfwl_widget.cpp
index fb44ded269edb83603e6bdc3451953f831113941..7cd2ca3913a9a596ec4ddff9d3f49a727f35e22c 100644
--- a/xfa/fwl/core/cfwl_widget.cpp
+++ b/xfa/fwl/core/cfwl_widget.cpp
@@ -27,14 +27,6 @@ void CFWL_Widget::Initialize() {
m_pIface->SetAssociateWidget(this);
}
-IFWL_Widget* CFWL_Widget::GetWidget() {
- return m_pIface.get();
-}
-
-const IFWL_Widget* CFWL_Widget::GetWidget() const {
- return m_pIface.get();
-}
-
void CFWL_Widget::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) {
if (m_pIface)
m_pIface->GetWidgetRect(rect, bAutoSize);
@@ -52,9 +44,7 @@ void CFWL_Widget::ModifyStyles(uint32_t dwStylesAdded,
}
uint32_t CFWL_Widget::GetStylesEx() {
- if (!m_pIface)
- return 0;
- return m_pIface->GetStylesEx();
+ return m_pIface ? m_pIface->GetStylesEx() : 0;
}
void CFWL_Widget::ModifyStylesEx(uint32_t dwStylesExAdded,
@@ -77,21 +67,18 @@ void CFWL_Widget::SetLayoutItem(void* pItem) {
}
void CFWL_Widget::Update() {
- if (!m_pIface)
- return;
- m_pIface->Update();
+ if (m_pIface)
+ m_pIface->Update();
}
void CFWL_Widget::LockUpdate() {
- if (!m_pIface)
- return;
- m_pIface->LockUpdate();
+ if (m_pIface)
+ m_pIface->LockUpdate();
}
void CFWL_Widget::UnlockUpdate() {
- if (!m_pIface)
- return;
- m_pIface->UnlockUpdate();
+ if (m_pIface)
+ m_pIface->UnlockUpdate();
}
FWL_WidgetHit CFWL_Widget::HitTest(FX_FLOAT fx, FX_FLOAT fy) {
« no previous file with comments | « xfa/fwl/core/cfwl_widget.h ('k') | xfa/fwl/core/cfwl_widgetmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698