[Webkit-unassigned] [Bug 25756] Explicit guards for ENABLE_GEOLOCATION

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Mar 28 20:46:22 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=25756


David Kilzer (ddkilzer) <ddkilzer at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #51798|review?                     |review-
               Flag|                            |




--- Comment #13 from David Kilzer (ddkilzer) <ddkilzer at webkit.org>  2010-03-28 20:46:21 PST ---
(From update of attachment 51798)
> +2010-03-26  Laszlo Gombos  <laszlo.1.gombos at nokia.com>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        Guard Geolocation files with ENABLE_GEOLOCATION
> +        https://bugs.webkit.org/show_bug.cgi?id=25756
> +
> +        The intent is to guard the Geolocation implementation files 
> +        and minimize the impact on 

This seems like an incomplete sentence?

> Index: WebCore/page/Geolocation.cpp
> ===================================================================
> --- WebCore/page/Geolocation.cpp	(revision 56641)
> +++ WebCore/page/Geolocation.cpp	(working copy)
> @@ -28,6 +28,8 @@
>  #include "config.h"
>  #include "Geolocation.h"
>  
> +#if ENABLE(GEOLOCATION)
> +
>  #include "Chrome.h"
>  #include "Frame.h"
>  #include "Page.h"
> @@ -641,3 +643,19 @@ void Geolocation::stopUpdating()
>  }
>  
>  } // namespace WebCore
> +
> +#else
> +
> +namespace WebCore {
> +
> +void Geolocation::disconnectFrame() {}
> +
> +Geolocation::Geolocation(Frame*) {}
> +
> +Geolocation::~Geolocation() {}
> +
> +void Geolocation::setIsAllowed(bool) {}
> +
> +}
> +                                                        
> +#endif // ENABLE(GEOLOCATION)

I think the preferred place for the stub implementation is in the header file
(Geolocation.h) so that the whole thing can be inlined and optimized out by the
compiler.

r- to move the stub implementation into the header and fix the ChangeLog entry.
 Otherwise this looks great!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list