LCOV - code coverage report
Current view: top level - layout/style - nsDOMCSSRGBColor.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 4 11 36.4 %
Date: 2017-07-14 16:53:18 Functions: 1 9 11.1 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       3             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : /* DOM object representing color values in DOM computed style */
       6             : 
       7             : #include "nsDOMCSSRGBColor.h"
       8             : 
       9             : #include "mozilla/dom/RGBColorBinding.h"
      10             : #include "nsROCSSPrimitiveValue.h"
      11             : 
      12             : using namespace mozilla;
      13             : 
      14           3 : nsDOMCSSRGBColor::nsDOMCSSRGBColor(nsROCSSPrimitiveValue* aRed,
      15             :                                    nsROCSSPrimitiveValue* aGreen,
      16             :                                    nsROCSSPrimitiveValue* aBlue,
      17             :                                    nsROCSSPrimitiveValue* aAlpha,
      18           3 :                                    bool aHasAlpha)
      19             :   : mRed(aRed), mGreen(aGreen), mBlue(aBlue), mAlpha(aAlpha)
      20           3 :   , mHasAlpha(aHasAlpha)
      21             : {
      22           3 : }
      23             : 
      24           0 : nsDOMCSSRGBColor::~nsDOMCSSRGBColor(void)
      25             : {
      26           0 : }
      27             : 
      28           0 : NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(nsDOMCSSRGBColor, mAlpha,  mBlue, mGreen, mRed)
      29             : 
      30           0 : NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(nsDOMCSSRGBColor, AddRef)
      31           0 : NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(nsDOMCSSRGBColor, Release)
      32             : 
      33             : JSObject*
      34           0 : nsDOMCSSRGBColor::WrapObject(JSContext *aCx, JS::Handle<JSObject*> aGivenProto)
      35             : {
      36           0 :   return dom::RGBColorBinding::Wrap(aCx, this, aGivenProto);
      37             : }
      38             : 

Generated by: LCOV version 1.13