| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Harri Porten (porten@kde.org) | 2 * Copyright (C) 2000 Harri Porten (porten@kde.org) |
| 3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org) | 3 * Copyright (c) 2000 Daniel Molkentin (molkentin@kde.org) |
| 4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org) | 4 * Copyright (c) 2000 Stefan Schimanski (schimmi@kde.org) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 Geolocation* NavigatorGeolocation::geolocation(Navigator& navigator) | 52 Geolocation* NavigatorGeolocation::geolocation(Navigator& navigator) |
| 53 { | 53 { |
| 54 return NavigatorGeolocation::from(navigator).geolocation(); | 54 return NavigatorGeolocation::from(navigator).geolocation(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 Geolocation* NavigatorGeolocation::geolocation() | 57 Geolocation* NavigatorGeolocation::geolocation() |
| 58 { | 58 { |
| 59 if (!m_geolocation && frame()) | 59 if (!m_geolocation && frame()) |
| 60 m_geolocation = Geolocation::create(frame()->document()); | 60 m_geolocation = Geolocation::create(frame()->document()); |
| 61 return m_geolocation.get(); | 61 return m_geolocation; |
| 62 } | 62 } |
| 63 | 63 |
| 64 DEFINE_TRACE(NavigatorGeolocation) | 64 DEFINE_TRACE(NavigatorGeolocation) |
| 65 { | 65 { |
| 66 visitor->trace(m_geolocation); | 66 visitor->trace(m_geolocation); |
| 67 Supplement<Navigator>::trace(visitor); | 67 Supplement<Navigator>::trace(visitor); |
| 68 DOMWindowProperty::trace(visitor); | 68 DOMWindowProperty::trace(visitor); |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| OLD | NEW |