diff options
Diffstat (limited to 'Source/WebCore/bridge/runtime_method.h')
-rw-r--r-- | Source/WebCore/bridge/runtime_method.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/WebCore/bridge/runtime_method.h b/Source/WebCore/bridge/runtime_method.h index e141968ae..d86d59475 100644 --- a/Source/WebCore/bridge/runtime_method.h +++ b/Source/WebCore/bridge/runtime_method.h @@ -10,10 +10,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -29,13 +29,13 @@ #include "BridgeJSC.h" #include <runtime/InternalFunction.h> #include <runtime/JSGlobalObject.h> -#include <wtf/OwnPtr.h> namespace JSC { -class RuntimeMethod : public InternalFunction { +class WEBCORE_EXPORT RuntimeMethod : public InternalFunction { public: typedef InternalFunction Base; + static const unsigned StructureFlags = Base::StructureFlags | OverridesGetOwnPropertySlot | TypeOfShouldCallGetCallData; static RuntimeMethod* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, const String& name, Bindings::Method* method) { @@ -61,13 +61,12 @@ public: protected: RuntimeMethod(JSGlobalObject*, Structure*, Bindings::Method*); void finishCreation(VM&, const String&); - static const unsigned StructureFlags = OverridesGetOwnPropertySlot | InternalFunction::StructureFlags; static CallType getCallData(JSCell*, CallData&); static bool getOwnPropertySlot(JSObject*, ExecState*, PropertyName, PropertySlot&); private: - static EncodedJSValue lengthGetter(ExecState*, EncodedJSValue, EncodedJSValue, PropertyName); + static EncodedJSValue lengthGetter(ExecState*, EncodedJSValue, PropertyName); Bindings::Method* m_method; }; |