Source code
Revision control
Copy as Markdown
Other Tools
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
#include "mozilla/dom/CSSNumericValue.h"
#include "mozilla/AlreadyAddRefed.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/CSSNumericValueBinding.h"
namespace mozilla::dom {
CSSNumericValue::CSSNumericValue(nsCOMPtr<nsISupports> aParent)
: CSSStyleValue(std::move(aParent)) {}
JSObject* CSSNumericValue::WrapObject(JSContext* aCx,
JS::Handle<JSObject*> aGivenProto) {
return CSSNumericValue_Binding::Wrap(aCx, this, aGivenProto);
}
// start of CSSNumericValue Web IDL implementation
already_AddRefed<CSSNumericValue> CSSNumericValue::Add(
const Sequence<OwningCSSNumberish>& aValues, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<CSSNumericValue> CSSNumericValue::Sub(
const Sequence<OwningCSSNumberish>& aValues, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<CSSNumericValue> CSSNumericValue::Mul(
const Sequence<OwningCSSNumberish>& aValues, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<CSSNumericValue> CSSNumericValue::Div(
const Sequence<OwningCSSNumberish>& aValues, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<CSSNumericValue> CSSNumericValue::Min(
const Sequence<OwningCSSNumberish>& aValues, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<CSSNumericValue> CSSNumericValue::Max(
const Sequence<OwningCSSNumberish>& aValues, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
bool CSSNumericValue::Equals(const Sequence<OwningCSSNumberish>& aValue) {
return false;
}
already_AddRefed<CSSUnitValue> CSSNumericValue::To(const nsACString& aUnit,
ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
already_AddRefed<CSSMathSum> CSSNumericValue::ToSum(
const Sequence<nsCString>& aUnits, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
void CSSNumericValue::Type(CSSNumericType& aRetVal) {}
// static
already_AddRefed<CSSNumericValue> CSSNumericValue::Parse(
const GlobalObject& aGlobal, const nsACString& aCssText, ErrorResult& aRv) {
aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
return nullptr;
}
// end of CSSNumericValue Web IDL implementation
} // namespace mozilla::dom