-
eric@webkit.org authored
Reviewed by Dimitri Glazkov. Geolocation does not correctly handle Infinity for PositionOptions properties. https://bugs.webkit.org/show_bug.cgi?id=29099 * fast/dom/Geolocation/resources/argument-types.js: Modified. Test passing positive and negative Infinity to Geolocation methods. * fast/dom/Geolocation/argument-types-expected.txt: Modified. Expected result for above test. 2009-09-18 Steve Block <steveblock@google.com> Reviewed by Dimitri Glazkov. Geolocation does not correctly handle Infinity for PositionOptions properties. https://bugs.webkit.org/show_bug.cgi?id=29099 * bindings/js/JSGeolocationCustom.cpp: Modified. (WebCore::createPositionOptions): Modified. If timeout or maximumAge is positive infinity, applies these values as a special case. * page/PositionOptions.h: Modified. (WebCore::PositionOptions::hasMaximumAge): Added. Determines whether the object has a maximum age. (WebCore::PositionOptions::maximumAge): Modified. Asserts that the object has a maximum age. (WebCore::PositionOptions::clearMaximumAge): Added. Clears the maximum age. (WebCore::PositionOptions::setMaximumAge): Modified. Registers that the maximum age has been set. (WebCore::PositionOptions::PositionOptions): Modified. Registers that the maximum age has been set. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a05aaad4