Bug 474954. No frames need to implement nsISVGValue anymore. r+sr=roc

--HG--
extra : rebase_source : edd574369880b1745f0d5c33277fbcd5e5318dd3
This commit is contained in:
Craig Topper 2009-01-30 20:17:29 +13:00
parent 8ae00250b4
commit 7901923474
4 changed files with 3 additions and 79 deletions

View File

@ -41,7 +41,6 @@
#define __NS_ISVGVALUE_H__
#include "nsISupports.h"
#include "nsQueryFrame.h"
#include "nsString.h"
class nsISVGValueObserver;
@ -73,7 +72,6 @@ public:
};
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISVGVALUE_IID)
NS_DECLARE_FRAME_ACCESSOR(nsISVGValue)
NS_IMETHOD SetValueString(const nsAString& aValue)=0;
NS_IMETHOD GetValueString(nsAString& aValue)=0;

View File

@ -82,10 +82,10 @@ NS_IMPL_ADDREF_INHERITED(nsSVGPatternElement,nsSVGPatternElementBase)
NS_IMPL_RELEASE_INHERITED(nsSVGPatternElement,nsSVGPatternElementBase)
NS_INTERFACE_TABLE_HEAD(nsSVGPatternElement)
NS_NODE_INTERFACE_TABLE8(nsSVGPatternElement, nsIDOMNode, nsIDOMElement,
NS_NODE_INTERFACE_TABLE7(nsSVGPatternElement, nsIDOMNode, nsIDOMElement,
nsIDOMSVGElement, nsIDOMSVGFitToViewBox,
nsIDOMSVGURIReference, nsIDOMSVGPatternElement,
nsIDOMSVGUnitTypes, nsIMutationObserver)
nsIDOMSVGUnitTypes)
NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(SVGPatternElement)
NS_INTERFACE_MAP_END_INHERITING(nsSVGPatternElementBase)
@ -95,7 +95,6 @@ NS_INTERFACE_MAP_END_INHERITING(nsSVGPatternElementBase)
nsSVGPatternElement::nsSVGPatternElement(nsINodeInfo* aNodeInfo)
: nsSVGPatternElementBase(aNodeInfo)
{
AddMutationObserver(this);
}
nsresult
@ -267,64 +266,3 @@ nsSVGPatternElement::GetStringInfo()
NS_ARRAY_LENGTH(sStringInfo));
}
//----------------------------------------------------------------------
// nsIMutationObserver methods
void
nsSVGPatternElement::PushUpdate()
{
nsIFrame *frame = GetPrimaryFrame();
if (frame) {
nsISVGValue *value = do_QueryFrame(frame);
if (value) {
value->BeginBatchUpdate();
value->EndBatchUpdate();
}
}
}
void
nsSVGPatternElement::CharacterDataChanged(nsIDocument *aDocument,
nsIContent *aContent,
CharacterDataChangeInfo *aInfo)
{
PushUpdate();
}
void
nsSVGPatternElement::AttributeChanged(nsIDocument *aDocument,
nsIContent *aContent,
PRInt32 aNameSpaceID,
nsIAtom *aAttribute,
PRInt32 aModType,
PRUint32 aStateMask)
{
PushUpdate();
}
void
nsSVGPatternElement::ContentAppended(nsIDocument *aDocument,
nsIContent *aContainer,
PRInt32 aNewIndexInContainer)
{
PushUpdate();
}
void
nsSVGPatternElement::ContentInserted(nsIDocument *aDocument,
nsIContent *aContainer,
nsIContent *aChild,
PRInt32 aIndexInContainer)
{
PushUpdate();
}
void
nsSVGPatternElement::ContentRemoved(nsIDocument *aDocument,
nsIContent *aContainer,
nsIContent *aChild,
PRInt32 aIndexInContainer)
{
PushUpdate();
}

View File

@ -45,7 +45,6 @@
#include "nsIDOMSVGPatternElement.h"
#include "nsIDOMSVGUnitTypes.h"
#include "nsSVGLength2.h"
#include "nsStubMutationObserver.h"
#include "nsSVGEnum.h"
#include "nsSVGString.h"
#include "nsSVGPreserveAspectRatio.h"
@ -58,8 +57,7 @@ class nsSVGPatternElement : public nsSVGPatternElementBase,
public nsIDOMSVGURIReference,
public nsIDOMSVGFitToViewBox,
public nsIDOMSVGPatternElement,
public nsIDOMSVGUnitTypes,
public nsStubMutationObserver
public nsIDOMSVGUnitTypes
{
friend class nsSVGPatternFrame;
@ -82,13 +80,6 @@ public:
// FitToViewbox
NS_DECL_NSIDOMSVGFITTOVIEWBOX
// Mutation Observer
NS_DECL_NSIMUTATIONOBSERVER_CHARACTERDATACHANGED
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTAPPENDED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTINSERTED
NS_DECL_NSIMUTATIONOBSERVER_CONTENTREMOVED
NS_FORWARD_NSIDOMNODE(nsSVGElement::)
NS_FORWARD_NSIDOMELEMENT(nsSVGElement::)
NS_FORWARD_NSIDOMSVGELEMENT(nsSVGElement::)
@ -100,8 +91,6 @@ public:
protected:
void PushUpdate();
virtual LengthAttributesInfo GetLengthInfo();
virtual EnumAttributesInfo GetEnumInfo();
virtual nsSVGPreserveAspectRatio *GetPreserveAspectRatio();

View File

@ -122,7 +122,6 @@ public:
nsISVGGlyphFragmentNode_id,
nsISVGSVGFrame_id,
nsISVGTextContentMetrics_id,
nsISVGValue_id,
nsIScrollableFrame_id,
nsIScrollableViewProvider_id,
nsIScrollbarFrame_id,