tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CSSSkew.cpp (1757B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      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/CSSSkew.h"
      8 
      9 #include "mozilla/AlreadyAddRefed.h"
     10 #include "mozilla/ErrorResult.h"
     11 #include "mozilla/RefPtr.h"
     12 #include "mozilla/dom/BindingDeclarations.h"
     13 #include "mozilla/dom/CSSSkewBinding.h"
     14 
     15 namespace mozilla::dom {
     16 
     17 CSSSkew::CSSSkew(nsCOMPtr<nsISupports> aParent)
     18    : CSSTransformComponent(std::move(aParent)) {}
     19 
     20 JSObject* CSSSkew::WrapObject(JSContext* aCx,
     21                              JS::Handle<JSObject*> aGivenProto) {
     22  return CSSSkew_Binding::Wrap(aCx, this, aGivenProto);
     23 }
     24 
     25 // start of CSSSkew Web IDL implementation
     26 
     27 // static
     28 already_AddRefed<CSSSkew> CSSSkew::Constructor(const GlobalObject& aGlobal,
     29                                               CSSNumericValue& aAx,
     30                                               CSSNumericValue& aAy,
     31                                               ErrorResult& aRv) {
     32  return MakeAndAddRef<CSSSkew>(aGlobal.GetAsSupports());
     33 }
     34 
     35 CSSNumericValue* CSSSkew::GetAx(ErrorResult& aRv) const {
     36  aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
     37  return nullptr;
     38 }
     39 
     40 void CSSSkew::SetAx(CSSNumericValue& aArg, ErrorResult& aRv) {
     41  aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
     42 }
     43 
     44 CSSNumericValue* CSSSkew::GetAy(ErrorResult& aRv) const {
     45  aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
     46  return nullptr;
     47 }
     48 
     49 void CSSSkew::SetAy(CSSNumericValue& aArg, ErrorResult& aRv) {
     50  aRv.Throw(NS_ERROR_NOT_IMPLEMENTED);
     51 }
     52 
     53 // end of CSSSkew Web IDL implementation
     54 
     55 }  // namespace mozilla::dom