Webpositive: Refactor

... to make variables available in outer scope,
eliminate now redundant nested if and reorder condition
variables to avoid function call in common case.

all prep for next commit...
This commit is contained in:
John Scipione
2017-09-09 13:09:07 -07:00
parent b8cfd96db1
commit ec7c3ff311
+7 -7
View File
@@ -566,13 +566,13 @@ void
WebTabView::MouseMoved(BPoint where, uint32 transit,
const BMessage* dragMessage)
{
if (fController->CloseButtonsAvailable()) {
BRect closeRect = _CloseRectFrame(Frame());
bool overCloseRect = closeRect.Contains(where);
if (overCloseRect != fOverCloseRect) {
fOverCloseRect = overCloseRect;
ContainerView()->Invalidate(closeRect);
}
BRect closeRect = _CloseRectFrame(Frame());
bool overCloseRect = closeRect.Contains(where);
if (overCloseRect != fOverCloseRect
&& fController->CloseButtonsAvailable()) {
fOverCloseRect = overCloseRect;
ContainerView()->Invalidate(closeRect);
}
// Set the tool tip