mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 23:28:36 +00:00
72 lines
1.5 KiB
C++
72 lines
1.5 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "mozilla/ServoDeclarationBlock.h"
|
|
|
|
#include "mozilla/ServoBindings.h"
|
|
|
|
#include "nsCSSProps.h"
|
|
|
|
namespace mozilla {
|
|
|
|
/* static */ already_AddRefed<ServoDeclarationBlock>
|
|
ServoDeclarationBlock::FromCssText(const nsAString& aCssText)
|
|
{
|
|
return nullptr;
|
|
}
|
|
|
|
/**
|
|
* An RAII class holding an atom for the given property.
|
|
*/
|
|
class MOZ_STACK_CLASS PropertyAtomHolder
|
|
{
|
|
public:
|
|
explicit PropertyAtomHolder(const nsAString& aProperty)
|
|
{
|
|
}
|
|
|
|
~PropertyAtomHolder()
|
|
{
|
|
}
|
|
|
|
explicit operator bool() const { return !!mAtom; }
|
|
nsIAtom* Atom() const { MOZ_ASSERT(mAtom); return mAtom; }
|
|
bool IsCustomProperty() const { return mIsCustomProperty; }
|
|
|
|
private:
|
|
nsIAtom* mAtom;
|
|
bool mIsCustomProperty;
|
|
};
|
|
|
|
void
|
|
ServoDeclarationBlock::GetPropertyValue(const nsAString& aProperty,
|
|
nsAString& aValue) const
|
|
{
|
|
}
|
|
|
|
void
|
|
ServoDeclarationBlock::GetPropertyValueByID(nsCSSPropertyID aPropID,
|
|
nsAString& aValue) const
|
|
{
|
|
}
|
|
|
|
bool
|
|
ServoDeclarationBlock::GetPropertyIsImportant(const nsAString& aProperty) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void
|
|
ServoDeclarationBlock::RemoveProperty(const nsAString& aProperty)
|
|
{
|
|
}
|
|
|
|
void
|
|
ServoDeclarationBlock::RemovePropertyByID(nsCSSPropertyID aPropID)
|
|
{
|
|
}
|
|
|
|
} // namespace mozilla
|