summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_widget.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-12-15 13:44:32 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-15 13:44:32 -0800
commit68034894d246f1352e7ff221f52c469e008fbfe8 (patch)
tree9bb771e747303c3e4795dbcc4fca8a0a138620e6 /xfa/fwl/cfwl_widget.cpp
parent46a4bbf46723cd6375042d599d01fe08012eadd6 (diff)
downloadpdfium-68034894d246f1352e7ff221f52c469e008fbfe8.tar.xz
Remove widget offscreen code.
The Offscreen state was never set, removed. Review-Url: https://codereview.chromium.org/2569663006
Diffstat (limited to 'xfa/fwl/cfwl_widget.cpp')
-rw-r--r--xfa/fwl/cfwl_widget.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/xfa/fwl/cfwl_widget.cpp b/xfa/fwl/cfwl_widget.cpp
index 6c33c7674e..7da12fcfba 100644
--- a/xfa/fwl/cfwl_widget.cpp
+++ b/xfa/fwl/cfwl_widget.cpp
@@ -82,10 +82,6 @@ void CFWL_Widget::InflateWidgetRect(CFX_RectF& rect) {
void CFWL_Widget::SetWidgetRect(const CFX_RectF& rect) {
m_pProperties->m_rtWidget = rect;
- if (IsChild())
- return;
-
- m_pWidgetMgr->SetWidgetRect_Native(this, rect);
}
CFX_RectF CFWL_Widget::GetClientRect() {
@@ -284,10 +280,6 @@ bool CFWL_Widget::IsChild() const {
return !!(m_pProperties->m_dwStyles & FWL_WGTSTYLE_Child);
}
-bool CFWL_Widget::IsOffscreen() const {
- return !!(m_pProperties->m_dwStyles & FWL_WGTSTYLE_Offscreen);
-}
-
CFX_RectF CFWL_Widget::GetEdgeRect() {
CFX_RectF rtEdge = m_pProperties->m_rtWidget;
rtEdge.left = rtEdge.top = 0;