static inline EVisibility blendFunc(EVisibility from, EVisibility to, double progress)
{
- if (from == to || from != VISIBLE && to != VISIBLE)
- return to;
-
// Any non-zero result means we consider the object to be visible. Only at 0 do we consider the object to be
// invisible. The invisible value we use (HIDDEN vs. COLLAPSE) depends on the specified from/to values.
double fromVal = from == VISIBLE ? 1. : 0.;
double toVal = to == VISIBLE ? 1. : 0.;
+ if (fromVal == toVal)
+ return to;
double result = blendFunc(fromVal, toVal, progress);
return result > 0. ? VISIBLE : (to != VISIBLE ? to : from);
}
bool m_forceFTPDirectoryListings : 1;
bool m_developerExtrasEnabled : 1;
bool m_authorAndUserStylesEnabled : 1;
- FontRenderingMode m_fontRenderingMode : 1;
+ unsigned m_fontRenderingMode : 1;
};
} // namespace WebCore