KHTML
Go to the documentation of this file.
32 using namespace WebCore;
34 const double SMILTime::unresolvedValue = DBL_MAX;
36 const double SMILTime::indefiniteValue = FLT_MAX;
39 if (a.isUnresolved() || b.isUnresolved())
40 return SMILTime::unresolved();
41 if (a.isIndefinite() || b.isIndefinite())
42 return SMILTime::indefinite();
43 return a.value() + b.value();
47 if (a.isUnresolved() || b.isUnresolved())
48 return SMILTime::unresolved();
49 if (a.isIndefinite() || b.isIndefinite())
50 return SMILTime::indefinite();
51 return a.value() - b.value();
54 SMILTime WebCore::operator*(
const SMILTime& a,
const SMILTime& b) {
55 if (a.isUnresolved() || b.isUnresolved())
56 return SMILTime::unresolved();
57 if (a.value() == 0 || b.value() == 0)
59 if (a.isIndefinite() || b.isIndefinite())
60 return SMILTime::indefinite();
61 return a.value() * b.value();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Jun 5 2013 18:41:09 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.