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/BorrowedAttrInfo.h" | |
8 | ||
9 | namespace mozilla { | |
10 | namespace dom { | |
11 | ||
12 | BorrowedAttrInfo::BorrowedAttrInfo(const nsAttrName* aName, | |
13 | const nsAttrValue* aValue) | |
14 | : mName(aName) | |
15 | , mValue(aValue) | |
16 | 0 | { |
17 | 0 | MOZ_ASSERT_IF(mName, mValue); |
18 | 0 | } |
19 | ||
20 | BorrowedAttrInfo::BorrowedAttrInfo(const BorrowedAttrInfo& aOther) | |
21 | : mName(aOther.mName) | |
22 | , mValue(aOther.mValue) | |
23 | 0 | { |
24 | 0 | MOZ_ASSERT_IF(mName, mValue); |
25 | 0 | } |
26 | ||
27 | } // namespace dom | |
28 | } // namespace mozilla |