LCOV - code coverage report
Current view: top level - layout/style - ServoNamespaceRule.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 26 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 11 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/ServoNamespaceRule.h"
       8             : 
       9             : #include "mozilla/ServoBindings.h"
      10             : 
      11             : using namespace mozilla::dom;
      12             : 
      13             : namespace mozilla {
      14             : 
      15           0 : ServoNamespaceRule::~ServoNamespaceRule()
      16             : {
      17           0 : }
      18             : 
      19           0 : NS_IMPL_ADDREF_INHERITED(ServoNamespaceRule, CSSNamespaceRule)
      20           0 : NS_IMPL_RELEASE_INHERITED(ServoNamespaceRule, CSSNamespaceRule)
      21             : 
      22           0 : NS_INTERFACE_MAP_BEGIN(ServoNamespaceRule)
      23           0 : NS_INTERFACE_MAP_END_INHERITING(CSSNamespaceRule)
      24             : 
      25             : #ifdef DEBUG
      26             : void
      27           0 : ServoNamespaceRule::List(FILE* out, int32_t aIndent) const
      28             : {
      29           0 :   nsAutoCString str;
      30           0 :   for (int32_t i = 0; i < aIndent; i++) {
      31           0 :     str.AppendLiteral("  ");
      32             :   }
      33           0 :   Servo_NamespaceRule_Debug(mRawRule, &str);
      34           0 :   fprintf_stderr(out, "%s\n", str.get());
      35           0 : }
      36             : #endif
      37             : 
      38             : already_AddRefed<css::Rule>
      39           0 : ServoNamespaceRule::Clone() const
      40             : {
      41             :   // Rule::Clone is only used when CSSStyleSheetInner is cloned in
      42             :   // preparation of being mutated. However, ServoStyleSheet never clones
      43             :   // anything, so this method should never be called.
      44           0 :   MOZ_ASSERT_UNREACHABLE("Shouldn't be cloning ServoNamespaceRule");
      45             :   return nullptr;
      46             : }
      47             : 
      48             : nsIAtom*
      49           0 : ServoNamespaceRule::GetPrefix() const
      50             : {
      51           0 :   return Servo_NamespaceRule_GetPrefix(mRawRule);
      52             : }
      53             : 
      54             : void
      55           0 : ServoNamespaceRule::GetURLSpec(nsString& aURLSpec) const
      56             : {
      57           0 :   nsIAtom* atom = Servo_NamespaceRule_GetURI(mRawRule);
      58           0 :   atom->ToString(aURLSpec);
      59           0 : }
      60             : 
      61             : void
      62           0 : ServoNamespaceRule::GetCssTextImpl(nsAString& aCssText) const
      63             : {
      64           0 :   Servo_NamespaceRule_GetCssText(mRawRule, &aCssText);
      65           0 : }
      66             : 
      67             : size_t
      68           0 : ServoNamespaceRule::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
      69             : {
      70           0 :   return aMallocSizeOf(this);
      71             : }
      72             : 
      73             : } // namespace mozilla

Generated by: LCOV version 1.13