Commit 4450022c authored by ggaren@apple.com's avatar ggaren@apple.com

Qt build fix: Updated for ArgList changes.

* bridge/qt/qt_pixmapruntime.cpp:
(JSC::Bindings::QtPixmapAssignToElementMethod::invoke):
(JSC::Bindings::QtPixmapToDataUrlMethod::invoke):
(JSC::Bindings::QtPixmapToStringMethod::invoke):
(JSC::Bindings::QtPixmapInstance::invokeMethod):
* bridge/qt/qt_pixmapruntime.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@60397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 17681f97
2010-05-29 Geoffrey Garen <ggaren@apple.com>
Qt build fix: Updated for ArgList changes.
* bridge/qt/qt_pixmapruntime.cpp:
(JSC::Bindings::QtPixmapAssignToElementMethod::invoke):
(JSC::Bindings::QtPixmapToDataUrlMethod::invoke):
(JSC::Bindings::QtPixmapToStringMethod::invoke):
(JSC::Bindings::QtPixmapInstance::invokeMethod):
* bridge/qt/qt_pixmapruntime.h:
2010-05-29 Geoffrey Garen <ggaren@apple.com>
Qt build fix: Keep this borken class limping along.
......
......@@ -74,7 +74,7 @@ public:
{
return 0;
}
virtual JSValue invoke(ExecState* exec, QtPixmapInstance*, const ArgList&) = 0;
virtual JSValue invoke(ExecState* exec, QtPixmapInstance*) = 0;
};
......@@ -82,12 +82,12 @@ public:
class QtPixmapAssignToElementMethod : public QtPixmapRuntimeMethod {
public:
static const char* name() { return "assignToHTMLImageElement"; }
JSValue invoke(ExecState* exec, QtPixmapInstance* instance, const ArgList& args)
JSValue invoke(ExecState* exec, QtPixmapInstance* instance)
{
if (!args.size())
if (!exec->argumentCount())
return jsUndefined();
JSObject* objectArg = args.at(0).toObject(exec);
JSObject* objectArg = exec->argument(0).toObject(exec);
if (!objectArg)
return jsUndefined();
......@@ -113,7 +113,7 @@ public:
class QtPixmapToDataUrlMethod : public QtPixmapRuntimeMethod {
public:
static const char* name() { return "toDataUrl"; }
JSValue invoke(ExecState* exec, QtPixmapInstance* instance, const ArgList&)
JSValue invoke(ExecState* exec, QtPixmapInstance* instance)
{
QByteArray byteArray;
QBuffer buffer(&byteArray);
......@@ -127,7 +127,7 @@ public:
class QtPixmapToStringMethod : public QtPixmapRuntimeMethod {
public:
static const char* name() { return "toString"; }
JSValue invoke(ExecState* exec, QtPixmapInstance* instance, const ArgList&)
JSValue invoke(ExecState* exec, QtPixmapInstance* instance)
{
return instance->valueOf(exec);
}
......@@ -184,7 +184,7 @@ JSValue QtPixmapInstance::getMethod(ExecState* exec, const Identifier& propertyN
return new (exec) RuntimeMethod(exec, exec->lexicalGlobalObject(), propertyName, methodList);
}
JSValue QtPixmapInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod, const ArgList& args)
JSValue QtPixmapInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod)
{
const MethodList& methods = *runtimeMethod->methods();
......
......@@ -33,7 +33,7 @@ public:
QtPixmapInstance(PassRefPtr<RootObject> rootObj, const QVariant& newData);
virtual Class* getClass() const;
virtual JSValue getMethod(ExecState* exec, const Identifier& propertyName);
virtual JSValue invokeMethod(ExecState*, RuntimeMethod*, const ArgList& args);
virtual JSValue invokeMethod(ExecState*, RuntimeMethod*);
virtual void getPropertyNames(ExecState*, PropertyNameArray&);
virtual JSValue defaultValue(ExecState*, PreferredPrimitiveType) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment