2010-07-23 11:00:52 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2007-03-22 10:30:00 -07:00
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is nsCSSDataBlock.h.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is L. David Baron.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2003
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* L. David Baron <dbaron@dbaron.org> (original author)
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* compact representation of the property-value pairs within a CSS
|
|
|
|
* declaration, and the code for expanding and compacting it
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsCSSDataBlock_h__
|
|
|
|
#define nsCSSDataBlock_h__
|
|
|
|
|
2009-02-06 08:52:13 -08:00
|
|
|
#include "nsCSSProps.h"
|
2009-09-11 03:46:36 -07:00
|
|
|
#include "nsCSSPropertySet.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
struct nsRuleData;
|
|
|
|
class nsCSSExpandedDataBlock;
|
2010-06-28 15:49:35 -07:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace css {
|
|
|
|
class Declaration;
|
|
|
|
}
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
2009-07-09 14:50:39 -07:00
|
|
|
* An |nsCSSCompressedDataBlock| holds a usually-immutable chunk of
|
2007-03-22 10:30:00 -07:00
|
|
|
* property-value data for a CSS declaration block (which we misname a
|
2010-06-28 15:49:35 -07:00
|
|
|
* |css::Declaration|). Mutation is accomplished through
|
2009-07-09 14:50:39 -07:00
|
|
|
* |nsCSSExpandedDataBlock| or in some cases via direct slot access.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
class nsCSSCompressedDataBlock {
|
2010-07-23 11:00:52 -07:00
|
|
|
private:
|
2007-03-22 10:30:00 -07:00
|
|
|
friend class nsCSSExpandedDataBlock;
|
2010-07-23 11:00:52 -07:00
|
|
|
|
|
|
|
// Only this class (via |CreateEmptyBlock|) or nsCSSExpandedDataBlock
|
|
|
|
// (in |Compress|) can create compressed data blocks.
|
2012-03-19 01:39:15 -07:00
|
|
|
nsCSSCompressedDataBlock(PRUint32 aNumProps)
|
|
|
|
: mStyleBits(0), mNumProps(aNumProps)
|
|
|
|
{}
|
2010-07-23 11:00:52 -07:00
|
|
|
|
|
|
|
public:
|
|
|
|
~nsCSSCompressedDataBlock();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Do what |nsIStyleRule::MapRuleInfoInto| needs to do for a style
|
|
|
|
* rule using this block for storage.
|
|
|
|
*/
|
2010-05-19 19:28:00 -07:00
|
|
|
void MapRuleInfoInto(nsRuleData *aRuleData) const;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the location at which the *value* for the property is
|
|
|
|
* stored, or null if the block does not contain a value for the
|
2010-08-19 12:33:44 -07:00
|
|
|
* property.
|
2007-03-22 10:30:00 -07:00
|
|
|
*
|
|
|
|
* Inefficient (by design).
|
2009-07-09 14:50:39 -07:00
|
|
|
*
|
|
|
|
* Must not be called for shorthands.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2010-08-19 12:33:44 -07:00
|
|
|
const nsCSSValue* ValueFor(nsCSSProperty aProperty) const;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-07-23 11:00:52 -07:00
|
|
|
/**
|
2010-08-19 12:33:44 -07:00
|
|
|
* Attempt to replace the value for |aProperty| stored in this block
|
|
|
|
* with the matching value stored in |aFromBlock|.
|
2011-10-17 07:59:28 -07:00
|
|
|
* This method will fail (returning false) if |aProperty| is not
|
2010-08-19 12:33:44 -07:00
|
|
|
* already in this block. It will set |aChanged| to true if it
|
|
|
|
* actually made a change to the block, but regardless, if it
|
2011-10-17 07:59:28 -07:00
|
|
|
* returns true, the value in |aFromBlock| was erased.
|
2010-07-23 11:00:52 -07:00
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
bool TryReplaceValue(nsCSSProperty aProperty,
|
2010-08-19 12:33:44 -07:00
|
|
|
nsCSSExpandedDataBlock& aFromBlock,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool* aChanged);
|
2009-02-06 08:52:13 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/**
|
|
|
|
* Clone this block, or return null on out-of-memory.
|
|
|
|
*/
|
2010-07-23 11:00:52 -07:00
|
|
|
nsCSSCompressedDataBlock* Clone() const;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new nsCSSCompressedDataBlock holding no declarations.
|
|
|
|
*/
|
2010-07-23 11:00:52 -07:00
|
|
|
static nsCSSCompressedDataBlock* CreateEmptyBlock();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-01-02 18:19:14 -08:00
|
|
|
size_t SizeOfIncludingThis(nsMallocSizeOfFun aMallocSizeOf) const;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
private:
|
2012-03-19 01:39:15 -07:00
|
|
|
void* operator new(size_t aBaseSize, PRUint32 aNumProps) {
|
2011-08-25 23:05:55 -07:00
|
|
|
NS_ABORT_IF_FALSE(aBaseSize == sizeof(nsCSSCompressedDataBlock),
|
|
|
|
"unexpected size for nsCSSCompressedDataBlock");
|
2012-03-19 01:39:15 -07:00
|
|
|
return ::operator new(aBaseSize + DataSize(aNumProps));
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2012-03-19 01:39:15 -07:00
|
|
|
public:
|
|
|
|
// Ideally, |nsCSSProperty| would be |enum nsCSSProperty : PRInt16|. But
|
|
|
|
// not all of the compilers we use are modern enough to support small
|
|
|
|
// enums. So we manually squeeze nsCSSProperty into 16 bits ourselves.
|
|
|
|
// The static assertion below ensures it fits.
|
|
|
|
typedef PRInt16 CompressedCSSProperty;
|
|
|
|
static const size_t MaxCompressedCSSProperty = PR_INT16_MAX;
|
|
|
|
|
|
|
|
private:
|
|
|
|
static size_t DataSize(PRUint32 aNumProps) {
|
|
|
|
return size_t(aNumProps) *
|
|
|
|
(sizeof(nsCSSValue) + sizeof(CompressedCSSProperty));
|
|
|
|
}
|
2009-12-11 08:13:19 -08:00
|
|
|
|
2011-08-25 23:05:55 -07:00
|
|
|
PRInt32 mStyleBits; // the structs for which we have data, according to
|
|
|
|
// |nsCachedStyleData::GetBitForSID|.
|
2012-03-19 01:39:15 -07:00
|
|
|
PRUint32 mNumProps;
|
|
|
|
// nsCSSValue elements are stored after these fields, and
|
|
|
|
// nsCSSProperty elements are stored -- each one compressed as a
|
|
|
|
// CompressedCSSProperty -- after the nsCSSValue elements. Space for them
|
2011-08-25 23:05:55 -07:00
|
|
|
// is allocated in |operator new| above. The static assertions following
|
2012-03-19 01:39:15 -07:00
|
|
|
// this class make sure that the value and property elements are aligned
|
2011-08-25 23:05:55 -07:00
|
|
|
// appropriately.
|
2012-03-19 01:39:15 -07:00
|
|
|
|
|
|
|
nsCSSValue* Values() const {
|
|
|
|
return (nsCSSValue*)(this + 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
CompressedCSSProperty* CompressedProperties() const {
|
|
|
|
return (CompressedCSSProperty*)(Values() + mNumProps);
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCSSValue* ValueAtIndex(PRUint32 i) const {
|
|
|
|
NS_ABORT_IF_FALSE(i < mNumProps, "value index out of range");
|
|
|
|
return Values() + i;
|
|
|
|
}
|
|
|
|
|
|
|
|
nsCSSProperty PropertyAtIndex(PRUint32 i) const {
|
|
|
|
NS_ABORT_IF_FALSE(i < mNumProps, "property index out of range");
|
|
|
|
nsCSSProperty prop = (nsCSSProperty)CompressedProperties()[i];
|
|
|
|
NS_ABORT_IF_FALSE(!nsCSSProps::IsShorthand(prop), "out of range");
|
|
|
|
return prop;
|
|
|
|
}
|
|
|
|
|
|
|
|
void CopyValueToIndex(PRUint32 i, nsCSSValue* aValue) {
|
|
|
|
new (ValueAtIndex(i)) nsCSSValue(*aValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RawCopyValueToIndex(PRUint32 i, nsCSSValue* aValue) {
|
|
|
|
memcpy(ValueAtIndex(i), aValue, sizeof(nsCSSValue));
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetPropertyAtIndex(PRUint32 i, nsCSSProperty aProperty) {
|
|
|
|
NS_ABORT_IF_FALSE(i < mNumProps, "set property index out of range");
|
|
|
|
CompressedProperties()[i] = (CompressedCSSProperty)aProperty;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SetNumPropsToZero() {
|
|
|
|
mNumProps = 0;
|
2011-08-25 23:05:55 -07:00
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2012-03-19 01:39:15 -07:00
|
|
|
// Make sure the values and properties are aligned appropriately. (These
|
|
|
|
// assertions are stronger than necessary to keep them simple.)
|
2012-02-23 08:19:00 -08:00
|
|
|
MOZ_STATIC_ASSERT(sizeof(nsCSSCompressedDataBlock) == 8,
|
|
|
|
"nsCSSCompressedDataBlock's size has changed");
|
2012-03-19 01:39:15 -07:00
|
|
|
MOZ_STATIC_ASSERT(NS_ALIGNMENT_OF(nsCSSValue) == 4 || NS_ALIGNMENT_OF(nsCSSValue) == 8,
|
|
|
|
"nsCSSValue doesn't align with nsCSSCompressedDataBlock");
|
|
|
|
MOZ_STATIC_ASSERT(NS_ALIGNMENT_OF(nsCSSCompressedDataBlock::CompressedCSSProperty) == 2,
|
|
|
|
"CompressedCSSProperty doesn't align with nsCSSValue");
|
|
|
|
|
|
|
|
// Make sure that sizeof(CompressedCSSProperty) is big enough.
|
|
|
|
MOZ_STATIC_ASSERT(eCSSProperty_COUNT_no_shorthands <=
|
|
|
|
nsCSSCompressedDataBlock::MaxCompressedCSSProperty,
|
|
|
|
"nsCSSProperty doesn't fit in StoredSizeOfCSSProperty");
|
2011-08-25 23:05:55 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
class nsCSSExpandedDataBlock {
|
2010-08-19 12:33:44 -07:00
|
|
|
friend class nsCSSCompressedDataBlock;
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
public:
|
|
|
|
nsCSSExpandedDataBlock();
|
|
|
|
~nsCSSExpandedDataBlock();
|
2010-08-19 12:33:44 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
/* Property storage may not be accessed directly; use AddLonghandProperty
|
|
|
|
* and friends.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2011-03-28 16:07:26 -07:00
|
|
|
nsCSSValue mValues[eCSSProperty_COUNT_no_shorthands];
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-08-19 12:33:44 -07:00
|
|
|
public:
|
2007-03-22 10:30:00 -07:00
|
|
|
/**
|
2010-07-23 11:00:52 -07:00
|
|
|
* Transfer all of the state from a pair of compressed data blocks
|
|
|
|
* to this expanded block. This expanded block must be clear
|
2007-03-22 10:30:00 -07:00
|
|
|
* beforehand.
|
|
|
|
*
|
2010-07-23 11:00:52 -07:00
|
|
|
* This method DELETES both of the compressed data blocks it is
|
|
|
|
* passed. (This is necessary because ownership of sub-objects
|
|
|
|
* is transferred to the expanded block.)
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2010-07-23 11:00:52 -07:00
|
|
|
void Expand(nsCSSCompressedDataBlock *aNormalBlock,
|
|
|
|
nsCSSCompressedDataBlock *aImportantBlock);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/**
|
2010-08-19 12:33:44 -07:00
|
|
|
* Allocate new compressed blocks and transfer all of the state
|
|
|
|
* from this expanded block to the new blocks, clearing this
|
|
|
|
* expanded block. A normal block will always be allocated, but
|
|
|
|
* an important block will only be allocated if there are
|
|
|
|
* !important properties in the expanded block; otherwise
|
|
|
|
* |*aImportantBlock| will be set to null.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
void Compress(nsCSSCompressedDataBlock **aNormalBlock,
|
|
|
|
nsCSSCompressedDataBlock **aImportantBlock);
|
|
|
|
|
2010-08-19 12:33:44 -07:00
|
|
|
/**
|
|
|
|
* Copy a value into this expanded block. This does NOT destroy
|
|
|
|
* the source value object. |aProperty| cannot be a shorthand.
|
|
|
|
*/
|
|
|
|
void AddLonghandProperty(nsCSSProperty aProperty, const nsCSSValue& aValue);
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/**
|
2010-07-23 11:00:52 -07:00
|
|
|
* Clear the state of this expanded block.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
void Clear();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clear the data for the given property (including the set and
|
2010-07-23 11:00:42 -07:00
|
|
|
* important bits). Can be used with shorthand properties.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
|
|
|
void ClearProperty(nsCSSProperty aPropID);
|
|
|
|
|
2010-07-23 11:00:42 -07:00
|
|
|
/**
|
|
|
|
* Same as ClearProperty, but faster and cannot be used with shorthands.
|
|
|
|
*/
|
|
|
|
void ClearLonghandProperty(nsCSSProperty aPropID);
|
|
|
|
|
2010-07-23 11:00:44 -07:00
|
|
|
/**
|
|
|
|
* Transfer the state for |aPropID| (which may be a shorthand)
|
|
|
|
* from |aFromBlock| to this block. The property being transferred
|
|
|
|
* is !important if |aIsImportant| is true, and should replace an
|
|
|
|
* existing !important property regardless of its own importance
|
|
|
|
* if |aOverrideImportant| is true.
|
|
|
|
*
|
2010-08-19 12:33:44 -07:00
|
|
|
* Returns true if something changed, false otherwise. Calls
|
|
|
|
* |ValueAppended| on |aDeclaration| if the property was not
|
|
|
|
* previously set, or in any case if |aMustCallValueAppended| is true.
|
2010-07-23 11:00:44 -07:00
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
bool TransferFromBlock(nsCSSExpandedDataBlock& aFromBlock,
|
2010-08-19 12:33:44 -07:00
|
|
|
nsCSSProperty aPropID,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool aIsImportant,
|
|
|
|
bool aOverrideImportant,
|
|
|
|
bool aMustCallValueAppended,
|
2010-08-19 12:33:44 -07:00
|
|
|
mozilla::css::Declaration* aDeclaration);
|
2010-07-23 11:00:44 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
void AssertInitialState() {
|
|
|
|
#ifdef DEBUG
|
|
|
|
DoAssertInitialState();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
/**
|
2012-03-19 01:39:15 -07:00
|
|
|
* Compute the number of properties that will be present in the
|
|
|
|
* result of |Compress|.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2012-03-19 01:39:15 -07:00
|
|
|
void ComputeNumProps(PRUint32* aNumPropsNormal,
|
|
|
|
PRUint32* aNumPropsImportant);
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
void DoExpand(nsCSSCompressedDataBlock *aBlock, bool aImportant);
|
2010-07-23 11:00:44 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Worker for TransferFromBlock; cannot be used with shorthands.
|
|
|
|
*/
|
2011-09-28 23:19:26 -07:00
|
|
|
bool DoTransferFromBlock(nsCSSExpandedDataBlock& aFromBlock,
|
2010-08-19 12:33:44 -07:00
|
|
|
nsCSSProperty aPropID,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool aIsImportant,
|
|
|
|
bool aOverrideImportant,
|
|
|
|
bool aMustCallValueAppended,
|
2010-08-19 12:33:44 -07:00
|
|
|
mozilla::css::Declaration* aDeclaration);
|
2010-07-23 11:00:44 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#ifdef DEBUG
|
|
|
|
void DoAssertInitialState();
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* mPropertiesSet stores a bit for every property that is present,
|
|
|
|
* to optimize compression of blocks with small numbers of
|
|
|
|
* properties (the norm) and to allow quickly checking whether a
|
|
|
|
* property is set in this block.
|
|
|
|
*/
|
2009-09-11 03:46:36 -07:00
|
|
|
nsCSSPropertySet mPropertiesSet;
|
2007-03-22 10:30:00 -07:00
|
|
|
/*
|
|
|
|
* mPropertiesImportant indicates which properties are '!important'.
|
|
|
|
*/
|
2009-09-11 03:46:36 -07:00
|
|
|
nsCSSPropertySet mPropertiesImportant;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Return the storage location within |this| of the value of the
|
2010-08-19 12:33:44 -07:00
|
|
|
* property |aProperty|.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2010-08-19 12:33:44 -07:00
|
|
|
nsCSSValue* PropertyAt(nsCSSProperty aProperty) {
|
2011-03-17 21:58:26 -07:00
|
|
|
NS_ABORT_IF_FALSE(0 <= aProperty &&
|
|
|
|
aProperty < eCSSProperty_COUNT_no_shorthands,
|
|
|
|
"property out of range");
|
2011-03-28 16:07:26 -07:00
|
|
|
return &mValues[aProperty];
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetPropertyBit(nsCSSProperty aProperty) {
|
2009-09-11 03:46:36 -07:00
|
|
|
mPropertiesSet.AddProperty(aProperty);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClearPropertyBit(nsCSSProperty aProperty) {
|
2009-09-11 03:46:36 -07:00
|
|
|
mPropertiesSet.RemoveProperty(aProperty);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool HasPropertyBit(nsCSSProperty aProperty) {
|
2009-09-11 03:46:36 -07:00
|
|
|
return mPropertiesSet.HasProperty(aProperty);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void SetImportantBit(nsCSSProperty aProperty) {
|
2009-09-11 03:46:36 -07:00
|
|
|
mPropertiesImportant.AddProperty(aProperty);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClearImportantBit(nsCSSProperty aProperty) {
|
2009-09-11 03:46:36 -07:00
|
|
|
mPropertiesImportant.RemoveProperty(aProperty);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool HasImportantBit(nsCSSProperty aProperty) {
|
2009-09-11 03:46:36 -07:00
|
|
|
return mPropertiesImportant.HasProperty(aProperty);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void ClearSets() {
|
2009-09-11 03:46:36 -07:00
|
|
|
mPropertiesSet.Empty();
|
|
|
|
mPropertiesImportant.Empty();
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* !defined(nsCSSDataBlock_h__) */
|