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

Unified Diff: xfa/fwl/cfwl_scrollbar.cpp

Issue 2560873005: Cleanup CFWL_Widget code to return CFX_RectFs where appropriate (Closed)
Patch Set: Review feedback Created 4 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
« no previous file with comments | « xfa/fwl/cfwl_pushbutton.cpp ('k') | xfa/fwl/cfwl_spinbutton.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/cfwl_scrollbar.cpp
diff --git a/xfa/fwl/cfwl_scrollbar.cpp b/xfa/fwl/cfwl_scrollbar.cpp
index d6124c6515d5f5f0b16f1f76f24da6b02a693915..a8e4447263573d6cd6610323ee9444dd39c42907 100644
--- a/xfa/fwl/cfwl_scrollbar.cpp
+++ b/xfa/fwl/cfwl_scrollbar.cpp
@@ -157,7 +157,7 @@ void CFWL_ScrollBar::Layout() {
part.m_pWidget = this;
m_fMinThumb = *static_cast<FX_FLOAT*>(
pTheme->GetCapacity(&part, CFWL_WidgetCapacity::Size));
- GetClientRect(m_rtClient);
+ m_rtClient = GetClientRect();
CalcButtonLen();
CalcMinButtonRect(m_rtMinBtn);
CalcMaxButtonRect(m_rtMaxBtn);
@@ -433,7 +433,7 @@ void CFWL_ScrollBar::DoMouseDown(int32_t iItem,
return;
iState = CFWL_PartState_Pressed;
- Repaint(&rtItem);
+ RepaintRect(rtItem);
}
void CFWL_ScrollBar::DoMouseUp(int32_t iItem,
@@ -447,7 +447,7 @@ void CFWL_ScrollBar::DoMouseUp(int32_t iItem,
return;
iState = iNewState;
- Repaint(&rtItem);
+ RepaintRect(rtItem);
OnScroll(CFWL_EventScroll::Code::EndScroll, m_fTrackPos);
}
@@ -463,7 +463,7 @@ void CFWL_ScrollBar::DoMouseMove(int32_t iItem,
return;
iState = iNewState;
- Repaint(&rtItem);
+ RepaintRect(rtItem);
} else if ((2 == iItem) && (m_iThumbButtonState == CFWL_PartState_Pressed)) {
FX_FLOAT fPos = GetTrackPointPos(fx, fy);
m_fTrackPos = fPos;
@@ -478,7 +478,7 @@ void CFWL_ScrollBar::DoMouseLeave(int32_t iItem,
return;
iState = CFWL_PartState_Normal;
- Repaint(&rtItem);
+ RepaintRect(rtItem);
}
void CFWL_ScrollBar::DoMouseHover(int32_t iItem,
@@ -488,7 +488,7 @@ void CFWL_ScrollBar::DoMouseHover(int32_t iItem,
return;
iState = CFWL_PartState_Hovered;
- Repaint(&rtItem);
+ RepaintRect(rtItem);
}
CFWL_ScrollBar::Timer::Timer(CFWL_ScrollBar* pToolTip) : CFWL_Timer(pToolTip) {}
« no previous file with comments | « xfa/fwl/cfwl_pushbutton.cpp ('k') | xfa/fwl/cfwl_spinbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698