Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/style/CSSFontFeatureValuesRule.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/CSSFontFeatureValuesRule.h"
8
#include "mozilla/dom/CSSFontFeatureValuesRuleBinding.h"
9
#include "mozilla/ServoBindings.h"
10
11
namespace mozilla {
12
namespace dom {
13
14
size_t
15
CSSFontFeatureValuesRule::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
16
0
{
17
0
  // TODO Implement this!
18
0
  return aMallocSizeOf(this);
19
0
}
20
21
#ifdef DEBUG
22
void
23
CSSFontFeatureValuesRule::List(FILE* out, int32_t aIndent) const
24
{
25
  nsAutoCString str;
26
  for (int32_t i = 0; i < aIndent; i++) {
27
    str.AppendLiteral("  ");
28
  }
29
  Servo_FontFeatureValuesRule_Debug(mRawRule, &str);
30
  fprintf_stderr(out, "%s\n", str.get());
31
}
32
#endif
33
34
/* CSSRule implementation */
35
36
void
37
CSSFontFeatureValuesRule::GetCssText(nsAString& aCssText) const
38
0
{
39
0
  Servo_FontFeatureValuesRule_GetCssText(mRawRule, &aCssText);
40
0
}
41
42
/* CSSFontFeatureValuesRule implementation */
43
44
void
45
CSSFontFeatureValuesRule::GetFontFamily(nsAString& aFamilyListStr)
46
0
{
47
0
  Servo_FontFeatureValuesRule_GetFontFamily(mRawRule, &aFamilyListStr);
48
0
}
49
50
void
51
CSSFontFeatureValuesRule::GetValueText(nsAString& aValueText)
52
0
{
53
0
  Servo_FontFeatureValuesRule_GetValueText(mRawRule, &aValueText);
54
0
}
55
56
void
57
CSSFontFeatureValuesRule::SetFontFamily(const nsAString& aFontFamily,
58
                                        ErrorResult& aRv)
59
0
{
60
0
  aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
61
0
}
62
63
void
64
CSSFontFeatureValuesRule::SetValueText(const nsAString& aValueText,
65
                                       ErrorResult& aRv)
66
0
{
67
0
  aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
68
0
}
69
70
// If this ever gets its own cycle-collection bits, reevaluate our IsCCLeaf
71
// implementation.
72
73
bool
74
CSSFontFeatureValuesRule::IsCCLeaf() const
75
0
{
76
0
  return Rule::IsCCLeaf();
77
0
}
78
79
/* virtual */ JSObject*
80
CSSFontFeatureValuesRule::WrapObject(JSContext* aCx,
81
                                     JS::Handle<JSObject*> aGivenProto)
82
0
{
83
0
  return CSSFontFeatureValuesRule_Binding::Wrap(aCx, this, aGivenProto);
84
0
}
85
86
} // namespace dom
87
} // namespace mozilla