~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/bindings/js/JSSVGLengthCustom.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
namespace WebCore {
28
28
 
29
 
JSValuePtr JSSVGLength::value(ExecState* exec) const
 
29
JSValue JSSVGLength::value(ExecState* exec) const
30
30
{
31
31
    SVGLength imp(*impl());
32
32
    return jsNumber(exec, imp.value(context()));
33
33
}
34
34
 
35
 
JSValuePtr JSSVGLength::convertToSpecifiedUnits(ExecState* exec, const ArgList& args)
 
35
JSValue JSSVGLength::convertToSpecifiedUnits(ExecState* exec, const ArgList& args)
36
36
{
37
37
    JSSVGPODTypeWrapper<SVGLength>* wrapper = impl();
38
38
 
39
39
    SVGLength imp(*wrapper);
40
 
    imp.convertToSpecifiedUnits(args.at(exec, 0)->toInt32(exec), context());
 
40
    imp.convertToSpecifiedUnits(args.at(0).toInt32(exec), context());
41
41
 
42
42
    wrapper->commitChange(imp, context());
43
43
    return jsUndefined();