| Index: Source/modules/geolocation/PositionOptions.cpp
|
| diff --git a/Source/modules/geolocation/PositionOptions.cpp b/Source/modules/geolocation/PositionOptions.cpp
|
| index 2236306e4172102b9c2110a0e62106d9661be5cf..1a3427f22180bb4c6813212ad02a01a0cfde0757 100644
|
| --- a/Source/modules/geolocation/PositionOptions.cpp
|
| +++ b/Source/modules/geolocation/PositionOptions.cpp
|
| @@ -6,6 +6,7 @@
|
| #include "modules/geolocation/PositionOptions.h"
|
|
|
| #include "bindings/core/v8/Dictionary.h"
|
| +#include "bindings/core/v8/DictionaryHelper.h"
|
| #include <limits.h>
|
|
|
| namespace WebCore {
|
| @@ -22,12 +23,12 @@ PositionOptions::PositionOptions(const Dictionary& options)
|
| {
|
| if (options.hasProperty("enableHighAccuracy")) {
|
| bool highAccuracy;
|
| - if (options.get("enableHighAccuracy", highAccuracy))
|
| + if (DictionaryHelper::get(options, "enableHighAccuracy", highAccuracy))
|
| m_highAccuracy = highAccuracy;
|
| }
|
| if (options.hasProperty("maximumAge")) {
|
| double maximumAge;
|
| - if (options.get("maximumAge", maximumAge)) {
|
| + if (DictionaryHelper::get(options, "maximumAge", maximumAge)) {
|
| if (maximumAge < 0)
|
| m_maximumAge = 0;
|
| else if (maximumAge > std::numeric_limits<unsigned>::max())
|
| @@ -38,7 +39,7 @@ PositionOptions::PositionOptions(const Dictionary& options)
|
| }
|
| if (options.hasProperty("timeout")) {
|
| double timeout;
|
| - if (options.get("timeout", timeout)) {
|
| + if (DictionaryHelper::get(options, "timeout", timeout)) {
|
| if (timeout < 0)
|
| m_timeout = 0;
|
| else if (timeout > std::numeric_limits<unsigned>::max())
|
|
|