LCOV - code coverage report
Current view: top level - dom/base - DOMPoint.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 12 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
       3             : /* This Source Code Form is subject to the terms of the Mozilla Public
       4             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       5             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       6             : 
       7             : #include "mozilla/dom/DOMPoint.h"
       8             : 
       9             : #include "mozilla/dom/DOMPointBinding.h"
      10             : #include "mozilla/dom/BindingDeclarations.h"
      11             : 
      12             : using namespace mozilla;
      13             : using namespace mozilla::dom;
      14             : 
      15           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(DOMPointReadOnly, mParent)
      16             : 
      17           0 : NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(DOMPointReadOnly, AddRef)
      18           0 : NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(DOMPointReadOnly, Release)
      19             : 
      20             : already_AddRefed<DOMPoint>
      21           0 : DOMPoint::Constructor(const GlobalObject& aGlobal, const DOMPointInit& aParams,
      22             :                       ErrorResult& aRV)
      23             : {
      24             :   RefPtr<DOMPoint> obj =
      25           0 :     new DOMPoint(aGlobal.GetAsSupports(), aParams.mX, aParams.mY,
      26           0 :                  aParams.mZ, aParams.mW);
      27           0 :   return obj.forget();
      28             : }
      29             : 
      30             : already_AddRefed<DOMPoint>
      31           0 : DOMPoint::Constructor(const GlobalObject& aGlobal, double aX, double aY,
      32             :                       double aZ, double aW, ErrorResult& aRV)
      33             : {
      34             :   RefPtr<DOMPoint> obj =
      35           0 :     new DOMPoint(aGlobal.GetAsSupports(), aX, aY, aZ, aW);
      36           0 :   return obj.forget();
      37             : }
      38             : 
      39             : JSObject*
      40           0 : DOMPoint::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
      41             : {
      42           0 :   return DOMPointBinding::Wrap(aCx, this, aGivenProto);
      43             : }

Generated by: LCOV version 1.13