Unreviewed build fix with ENABLE_DEVICE_ORIENTATION after r157215
[WebKit-https.git] / Source / WebCore / bindings / js / JSDeviceOrientationEventCustom.cpp
index a1678c3..65eccb3 100644 (file)
@@ -38,34 +38,34 @@ namespace WebCore {
 
 JSValue JSDeviceOrientationEvent::alpha(ExecState*) const
 {
-    DeviceOrientationEvent* imp = impl();
-    if (!imp->orientation()->canProvideAlpha())
+    DeviceOrientationEvent& imp = impl();
+    if (!imp.orientation()->canProvideAlpha())
         return jsNull();
-    return jsNumber(imp->orientation()->alpha());
+    return jsNumber(imp.orientation()->alpha());
 }
 
 JSValue JSDeviceOrientationEvent::beta(ExecState*) const
 {
-    DeviceOrientationEvent* imp = impl();
-    if (!imp->orientation()->canProvideBeta())
+    DeviceOrientationEvent& imp = impl();
+    if (!imp.orientation()->canProvideBeta())
         return jsNull();
-    return jsNumber(imp->orientation()->beta());
+    return jsNumber(imp.orientation()->beta());
 }
 
 JSValue JSDeviceOrientationEvent::gamma(ExecState*) const
 {
-    DeviceOrientationEvent* imp = impl();
-    if (!imp->orientation()->canProvideGamma())
+    DeviceOrientationEvent& imp = impl();
+    if (!imp.orientation()->canProvideGamma())
         return jsNull();
-    return jsNumber(imp->orientation()->gamma());
+    return jsNumber(imp.orientation()->gamma());
 }
 
 JSValue JSDeviceOrientationEvent::absolute(ExecState*) const
 {
-    DeviceOrientationEvent* imp = impl();
-    if (!imp->orientation()->canProvideAbsolute())
+    DeviceOrientationEvent& imp = impl();
+    if (!imp.orientation()->canProvideAbsolute())
         return jsNull();
-    return jsBoolean(imp->orientation()->absolute());
+    return jsBoolean(imp.orientation()->absolute());
 }
 
 JSValue JSDeviceOrientationEvent::initDeviceOrientationEvent(ExecState* exec)
@@ -84,8 +84,7 @@ JSValue JSDeviceOrientationEvent::initDeviceOrientationEvent(ExecState* exec)
     bool absoluteProvided = !exec->argument(6).isUndefinedOrNull();
     bool absolute = exec->argument(6).toBoolean(exec);
     RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);
-    DeviceOrientationEvent* imp = impl();
-    imp->initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
+    impl().initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
     return jsUndefined();
 }