/src/mozilla-central/layout/style/CSSNamespaceRule.cpp
Line | Count | Source (jump to first uncovered line) |
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/CSSNamespaceRule.h" |
8 | | |
9 | | #include "mozilla/ServoBindings.h" |
10 | | |
11 | | using namespace mozilla::dom; |
12 | | |
13 | | namespace mozilla { |
14 | | |
15 | | CSSNamespaceRule::~CSSNamespaceRule() |
16 | 0 | { |
17 | 0 | } |
18 | | |
19 | | #ifdef DEBUG |
20 | | void |
21 | | CSSNamespaceRule::List(FILE* out, int32_t aIndent) const |
22 | | { |
23 | | nsAutoCString str; |
24 | | for (int32_t i = 0; i < aIndent; i++) { |
25 | | str.AppendLiteral(" "); |
26 | | } |
27 | | Servo_NamespaceRule_Debug(mRawRule, &str); |
28 | | fprintf_stderr(out, "%s\n", str.get()); |
29 | | } |
30 | | #endif |
31 | | |
32 | | nsAtom* |
33 | | CSSNamespaceRule::GetPrefix() const |
34 | 0 | { |
35 | 0 | return Servo_NamespaceRule_GetPrefix(mRawRule); |
36 | 0 | } |
37 | | |
38 | | void |
39 | | CSSNamespaceRule::GetURLSpec(nsString& aURLSpec) const |
40 | 0 | { |
41 | 0 | nsAtom* atom = Servo_NamespaceRule_GetURI(mRawRule); |
42 | 0 | atom->ToString(aURLSpec); |
43 | 0 | } |
44 | | |
45 | | void |
46 | | CSSNamespaceRule::GetCssText(nsAString& aCssText) const |
47 | 0 | { |
48 | 0 | Servo_NamespaceRule_GetCssText(mRawRule, &aCssText); |
49 | 0 | } |
50 | | |
51 | | size_t |
52 | | CSSNamespaceRule::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const |
53 | 0 | { |
54 | 0 | return aMallocSizeOf(this); |
55 | 0 | } |
56 | | |
57 | | } // namespace mozilla |