Bug 98212 - [WK2] Support all attributes of GeolocationPosition
Summary: [WK2] Support all attributes of GeolocationPosition
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
: 94554 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-02 16:41 PDT by Benjamin Poulain
Modified: 2013-04-17 14:39 PDT (History)
5 users (show)

See Also:


Attachments
Patch (56.78 KB, patch)
2012-10-02 16:59 PDT, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (56.76 KB, patch)
2012-10-02 18:35 PDT, Benjamin Poulain
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2012-10-02 16:41:53 PDT
We only support the 3 basic attributes.
Comment 1 Benjamin Poulain 2012-10-02 16:59:01 PDT
Created attachment 166779 [details]
Patch
Comment 2 WebKit Review Bot 2012-10-02 17:03:07 PDT
Attachment 166779 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
LayoutTests/platform/qt/TestExpectations:2739:  Path does not exist.  [test/expectations] [5]
LayoutTests/platform/qt/TestExpectations:2740:  Path does not exist.  [test/expectations] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Benjamin Poulain 2012-10-02 18:35:42 PDT
Created attachment 166795 [details]
Patch
Comment 4 WebKit Review Bot 2012-10-02 18:38:02 PDT
Attachment 166795 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
LayoutTests/platform/qt/TestExpectations:2739:  Path does not exist.  [test/expectations] [5]
LayoutTests/platform/qt/TestExpectations:2740:  Path does not exist.  [test/expectations] [5]
Total errors found: 2 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Sam Weinig 2012-10-03 15:23:24 PDT
Comment on attachment 166795 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=166795&action=review

> Source/WebKit2/Shared/WebGeolocationPosition.cpp:56
> +    encoder->encode(CoreIPC::In(timestamp, latitude, longitude, accuracy, canProvideAltitude, altitude, canProvideAltitudeAccuracy, altitudeAccuracy, canProvideHeading, heading, canProvideSpeed, speed));

Instead of adding the overload of CoreIPC::In(), can you just call encoder->encode multiple times.  That has become more idiomatic in our code.

> Source/WebKit2/Shared/WebGeolocationPosition.cpp:61
> +    return decoder->decode(CoreIPC::Out(data.timestamp, data.latitude, data.longitude, data.accuracy, data.canProvideAltitude, data.altitude, data.canProvideAltitudeAccuracy, data.altitudeAccuracy, data.canProvideHeading, data.heading, data.canProvideSpeed, data.speed));

Same here.
Comment 6 Benjamin Poulain 2012-10-03 15:40:32 PDT
(In reply to comment #5)
> Instead of adding the overload of CoreIPC::In(), can you just call encoder->encode multiple times.  That has become more idiomatic in our code.

I know, I just find it a little silly to have to limit ourself to 10 args :)
Comment 7 Benjamin Poulain 2012-10-04 12:10:06 PDT
Committed r130416: <http://trac.webkit.org/changeset/130416>
Comment 8 Jessie Berlin 2013-04-17 14:39:00 PDT
*** Bug 94554 has been marked as a duplicate of this bug. ***