[Webkit-unassigned] [Bug 36520] [DRT/Chromium] Add LayoutTestController

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 24 09:18:09 PDT 2010


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


Dimitri Glazkov (Google) <dglazkov at chromium.org> changed:

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




--- Comment #2 from Dimitri Glazkov (Google) <dglazkov at chromium.org>  2010-03-24 09:18:08 PST ---
(From update of attachment 51484)
Thanks for working on this. I know it's a slow process, but it's a very
important one.

> +#include "WebViewHost.h"
> +#include "base/basictypes.h"
> +#include "base/debug_util.h"
> +#include "base/file_path.h"
> +#include "base/message_loop.h"
> +#include "base/path_service.h"
> +#include "base/string_util.h"

Ouch, that's a lot of base dependencies. We should work to eliminate them.
With these upstream, changing base code will be very difficult -- think of all
the three-sided patches it will take.
Let's convert them to WebKit API uses or build up webkit_support library.

> +
> +LayoutTestController::LayoutTestController(TestShell* shell)
> +    : ALLOW_THIS_IN_INITIALIZER_LIST(m_timeoutFactory(this))
> +    , m_shell(shell)
> +    , ALLOW_THIS_IN_INITIALIZER_LIST(m_workQueue(this))

We can just drop ALLOW_THIS_IN_INITIALIZER_LIST in WebKit.

> +{
> +    if (arguments.size() > 0 && arguments[0].isString()) {
> +        GURL currentURL = m_shell->webView()->mainFrame()->url();
> +        GURL fullURL = currentURL.Resolve(arguments[0].toString());

WebURL?

> +        m_userStyleSheetLocation = GURL(TestShell::rewriteLocalUrl(arguments[0].toString()));

Ditto.

> +        m_shell->webView()->settings()->setUserStyleSheetLocation(m_userStyleSheetLocation);


> +    GURL location(TestShell::rewriteLocalUrl(url));

Ditto.

> +    } else {
> +        result->set(false);
> +    }

No braces here?

> +        result->set(pauseTransitionAtTimeOnElementWithId(propertyName, time, elementId));
> +    } else {
> +        result->set(false);
> +    }

Ditto.

-- 
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