[webkit-dev] Should we move methods from layoutTestController/etc... to internals?
Ryosuke Niwa
rniwa at webkit.org
Tue Feb 21 17:25:18 PST 2012
FYI, I'm not saying that I'm intending to do this refactoring myself in
near future. I just wanted to know the community consensus so that I can
suggest to others and in review comments.
So please take initiative if you're motivated to do this refactoring.
- Ryosuke
On Tue, Feb 21, 2012 at 12:15 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> Hi,
>
> It appears to me window.internals is a superior solution to expose
> cross-platform features to our test harness compared to other interfaces
> implemented in DumpRenderTree and WebKitTestRunner such as
> layoutTestController and friends.
>
> Should we try to move methods of layoutTestController and friends that
> expose WebCore-level features to internals? Moving methods to internals
> would reduce DRT/WTR's code size, and lower the entry barrier for new ports.
>
> For example, PlainTextController seems to exist only to expose
> Range::text(). But this function can be exposed via internals for testing
> purposes instead since it doesn't depend on any port-specific code.
>
> Of course, there will be interfaces that rely on WebKit-layer code (e.g.
> TextInputController) we shouldn't be moving.
>
> Best,
> Ryosuke Niwa
> Software Engineer
> Google Inc.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120221/2cab7e46/attachment.html>
More information about the webkit-dev
mailing list