Re: [webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-09 Thread Steve Block
> It seems like a lot of churn for relatively little gain. I'd rather our time > be focused > on areas that actually benefit users of WebKit. OK. I don't feel strongly enough about this to push the issue. ___ webkit-dev mailing list webkit-dev@lists.webk

Re: [webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-09 Thread Steve Block
> I'm really not sure that this set of changes is going in the right direction. > What's driving them; some abstract sense of purity, or > reducing the chances of introducing real bugs that we've seen in the past? Some of both. I was investigating a bug where WebCore is generating unexpected negat

Re: [webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-09 Thread Steve Block
> Removing the existing subtraction operator (xxxPoint minus > xxxPoint returns xxxSize) might be a good place to start. I've uploaded a patch to https://bugs.webkit.org/show_bug.cgi?id=106408 which replaces these subtraction operators with ones that return xxxPoint, and which adds Int/FloatSize::f

Re: [webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-09 Thread Steve Block
> Also, the word "position" is used to represent a tree-position in DOM in > WebKit so please don't use that to represent a point in a screen or a layout > coordinate system. OK, perhaps we should use Vector2d, as is used by the Chromium port ___ webkit-d

Re: [webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-03 Thread Steve Block
ding confusion with Vector<>? I guess 'Offset' is an obvious candidate, but that is probably already too overloaded. Perhaps RelativePosition or RelativePoint? On 4 January 2013 16:15, Simon Fraser wrote: > On Jan 3, 2013, at 7:43 PM, Steve Block wrote: > >> Thanks all

Re: [webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-03 Thread Steve Block
Thanks all for the detailed replies. I wasn't aware of the distinction made between points and vectors for the purposes transforms. However, if I understand things correctly, introducing a vector type could be considered separately from the issue I initially raised. It seems that everyone is agre

[webkit-dev] Int/FloatPoint and Int/FloatSize

2013-01-02 Thread Steve Block
Hi webkit, I was hoping that somebody could clarify the policy regarding the correct use of Int/FloatPoint vs Int/FloatSize. It seems that xxxPoint is consistently used to represent a position, which makes sense. However, when representing the position of one point relative to another, both xxxPo

Re: [webkit-dev] Is Bug 51742 - Add DeviceOrientationEvent.absolute blocking?

2012-01-10 Thread Steve Block
There's no particular reason why this hasn't been implemented - it's simply not high on anybody's list of priorities. Feel free to take the bug and implement the feature if you'd like. Steve -- Google UK Limited Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ Regist

Re: [webkit-dev] Early deletion of DocumentLoader instances

2011-09-22 Thread Steve Block
> I tried to look into this, but couldn’t find a function named > DocumentLoader::loader. Sorry, typo. Thanks for CC'ing me on the bug. Will re-post the corrected version there. ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit

Re: [webkit-dev] Early deletion of DocumentLoader instances

2011-09-22 Thread Steve Block
It looks like this was resolved in https://bugs.webkit.org/show_bug.cgi?id=61494, which resulted in http://trac.webkit.org/changeset/87756. I can't access the bug, so I'm following up here ... This change is causing problems on Android. We use the AllowLocalLoadsForLocalAndSubstituteData policy bu

Re: [webkit-dev] Remote Debugging v8 - Android

2011-07-07 Thread Steve Block
> You need to check with Android port owners on whether they intend to enable > INSPECTOR in their builds and expose remote debugging capabilities. I'm afraid we have no plans right now to enable this feature. Steve -- Google UK Limited Registered Office: Belgrave House, 76 Buckingham Palace Ro

Re: [webkit-dev] Plans to fully merge the Android port

2011-04-27 Thread Steve Block
> Is there any plan to fully merge the code, have updated LayoutTests and > build-webkit integration? The Android browser still uses the Android port, but as you point out, it's not fully upstreamed. We're continuing to work on this. > Since then, WebCore/Android.mk has been modified 81 times, but

Re: [webkit-dev] Atomic read/write operations and thread safety

2010-12-15 Thread Steve Block
Thanks for the reply Brady. > The boolean in question isn't both checked and set at the same time - it's > not an acquired resource.  One > thread sets it, the other checks it. I don't follow. If it's set from one thread and checked from another thread without locks, how can you guarantee this (o

Re: [webkit-dev] Atomic read/write operations and thread safety

2010-12-15 Thread Steve Block
>>> The boolean in question isn't both checked and set at the same time - it's >>> not an acquired resource.  One >>> thread sets it, the other checks it. >> I don't follow. If it's set from one thread and checked from another >> thread without locks, how can you guarantee this (other than with >>

[webkit-dev] Atomic read/write operations and thread safety

2010-12-15 Thread Steve Block
I have a question about whether WebCore code makes assumptions about the atomicity of certain read/write operations. The particular instance I'm interested in is IconDatabase, where m_threadTerminationRequested is written to from the main thread (in close() for example) and read from the DB thread

Re: [webkit-dev] Client-based Geolocation

2010-12-15 Thread Steve Block
> (1) Adds a level of indirection that may not be necessary in these cases. It's true, there's now one more level of indirection. The non-client-based implementation uses Geolocation -> GeolocationServiceFoo. The client-based implementation uses Geolocation -> GeolocationController -> GeolocationSe

Re: [webkit-dev] Client-based Geolocation

2010-12-14 Thread Steve Block
> On the one hand, getting rid of ifdefs is good. On the other hand, it seems > to me there are some downsides to moving ports over to the client-based > approach: The motivation is much more than removing ifdefs. The original Geolocation implementation was provided in WebCore/platform, presumabl

Re: [webkit-dev] Why are the mock implementations in WebCore/platform?

2010-12-14 Thread Steve Block
> Just a general question as to why the decision was made to put the mock > implementation classes (DeviceOrientationClientMock, GeolocationServiceMock > and SpeechInputClientMock) beneath WebCore/platform. I added the first mock class, GeolocationServiceMock , to allow Geolocation to be tested in

Re: [webkit-dev] GTK Skiplist

2010-09-03 Thread Steve Block
I think the code review in which the need to do this was first pointed out to me was https://bugs.webkit.org/show_bug.cgi?id=27716#c32 I've been following this pattern for the Geolocation and DeviceOrientation tests, all of which are skipped on GTK. If I can instead list the directory, that would

Re: [webkit-dev] DeviceOrientation/Motion on Document rather than Page

2010-08-24 Thread Steve Block
> I'd rather the mock controller setup be ugly than the typical use of the > controller. Having the > controller and client on Page was quite annoying. I'd much prefer it lived on > Document. I'm fine with moving the controller and client from the Page to the Document. The important thing, as I u

Re: [webkit-dev] DeviceOrientation/Motion on Document rather than Page

2010-08-23 Thread Steve Block
> - it would allow the client to live in WebCore. > FWIW, Geolocation seems to take both approaches. One implementation is down > in Navigator/Document/DOMWindow, > but the mock controller is on Page. I've found the low-level approach much > easier to implement. My understanding was that clients

Re: [webkit-dev] Sharing WebKit mocks across platforms

2010-08-02 Thread Steve Block
I'd be happy to help where I can too, and can migrate the existing Geolocation/DeviceOrientation/SpeechInput mocks to use the new pattern. Please CC me on any bugs you create. Steve ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.web

Re: [webkit-dev] Sharing WebKit mocks across platforms

2010-07-30 Thread Steve Block
> WebCore::LayoutTestController would be exposed to JavaScript running > in LayoutTests directly (like the DOM), so we can skip the type > conversions. There might still be the need for some plumbing though. In the case of DeviceOrientation and SpeechInput, we're mocking a client which is provided

[webkit-dev] Sharing WebKit mocks across platforms

2010-07-28 Thread Steve Block
I'm in the process of adding a mock client for DeviceOrientation, which will be used in DumpRenderTree to test the feature. In order to share the mock across platforms, I'd like to add the mock to WebCore/platform/mock. An interface to the mock will have to be exposed to the embedder through the p

Re: [webkit-dev] Clients and the Page constructor

2010-07-27 Thread Steve Block
https://bugs.webkit.org/show_bug.cgi?id=42834 has now been r+'ed. I'll submit in the morning if there are no further comments. Thanks, Steve ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Re: [webkit-dev] Clients and the Page constructor

2010-07-22 Thread Steve Block
I've filed https://bugs.webkit.org/show_bug.cgi?id=42834 to track the addition of a structure to pass pointers to the clients for optional features. Feedback welcome. Steve -- Google UK Limited Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ Registered in England Nu

Re: [webkit-dev] Clients and the Page constructor

2010-07-21 Thread Steve Block
> That still makes it required to add null checks for some (or all) of > the clients.  Something we've avoided in the past. This wouldn't add a need for null checks. The structure would only be for clients for optional features. If the feature is enabled, the client must be non-null. This is no dif

Re: [webkit-dev] Clients and the Page constructor

2010-07-21 Thread Steve Block
> What exactly does not scalable mean? Passing arguments to the constructor > rather than setting > them up later is often good because there is no time window where the object > is not set up. > Generally speaking we don’t want to have to write code to handle a client of > 0 unless it’s absolut

[webkit-dev] Clients and the Page constructor

2010-07-21 Thread Steve Block
Currently, nine clients are passed to the Page constructor and the number is growing. Recently, clients have been added for Geolocation, DeviceOrientation and BackForwardController. This approach doesn't seem scalable. Instead, I'd like to suggest that clients, at least those for optional features

Re: [webkit-dev] Multiple location providers in Geolocation API

2009-02-02 Thread Steve Block
> Well that platform should manage between GPS and any other providers itself? > So if this was implemented on iPhone, for example, the platform uses > iPhone's CoreLocation, and it manages where it is getting the data from > itself. That is a platform detail as I read it. Sure, I agree. On a

Re: [webkit-dev] Multiple location providers in Geolocation API

2009-01-27 Thread Steve Block
> I think that the most accurate response should be returned, especially if it > is already known. OK, that seems reasonable. > I > think having multiple providers will be the exception rather than the rule, > so I designed around that assumption. I'm not sure that this is true, as many devices wi

[webkit-dev] Multiple location providers in Geolocation API

2009-01-22 Thread Steve Block
Hi, I have a question regarding the way in which multiple sources of location information are handled in the Geolocation API. The Geolocation API allows the user some choice over which sources of location information are used in a given request (a call to getCurrentPosition or watchPosition) thro