Changeset 251003 in webkit
- Timestamp:
- Oct 11, 2019 1:21:02 AM (5 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r250953 r251003 1 2019-10-11 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 3 MediaTime pretty printer can print if time is invalid 4 https://bugs.webkit.org/show_bug.cgi?id=202735 5 6 Reviewed by Eric Carlson. 7 8 * wtf/MediaTime.cpp: 9 (WTF::MediaTime::toString const): Append ", invalid" if isInvalid(). 10 (WTF::MediaTime::toJSONObject const): Set boolean invalid to true 11 when invalid. 12 1 13 2019-10-09 Keith Rollin <krollin@apple.com> 2 14 -
trunk/Source/WTF/wtf/MediaTime.cpp
r242713 r251003 595 595 } 596 596 builder.appendFixedPrecisionNumber(toDouble()); 597 if (isInvalid()) 598 builder.appendLiteral(", invalid"); 597 599 builder.append('}'); 598 600 return builder.toString(); … … 608 610 } 609 611 610 if (isInvalid() || isIndefinite()) 612 if (isInvalid()) 613 object->setBoolean("invalid"_s, true); 614 else if (isIndefinite()) 611 615 object->setString("value"_s, "NaN"_s); 612 616 else if (isPositiveInfinite())
Note: See TracChangeset
for help on using the changeset viewer.