Bug 600574 part 1: Move nsStyleBackground::Layer::RenderingMightDependOnFrameSize to .cpp file. r=bz a=blocking-betaN+

This commit is contained in:
Daniel Holbert 2010-10-06 15:18:52 -07:00
parent 589dc3b20b
commit 2371b62ffb
2 changed files with 11 additions and 6 deletions

View File

@ -1865,7 +1865,16 @@ nsStyleBackground::Layer::SetInitialValues()
mImage.SetNull();
}
PRBool nsStyleBackground::Layer::operator==(const Layer& aOther) const
PRBool
nsStyleBackground::Layer::RenderingMightDependOnFrameSize() const
{
return (!mImage.IsEmpty() &&
(mPosition.DependsOnFrameSize() ||
mSize.DependsOnFrameSize(mImage.GetType())));
}
PRBool
nsStyleBackground::Layer::operator==(const Layer& aOther) const
{
return mAttachment == aOther.mAttachment &&
mClip == aOther.mClip &&

View File

@ -482,11 +482,7 @@ struct nsStyleBackground {
// of the corresponding frame changes. This is true for any
// non-solid-color background whose position or size depends on
// the frame size.
PRBool RenderingMightDependOnFrameSize() const {
return (!mImage.IsEmpty() &&
(mPosition.DependsOnFrameSize() ||
mSize.DependsOnFrameSize(mImage.GetType())));
}
PRBool RenderingMightDependOnFrameSize() const;
// An equality operator that compares the images using URL-equality
// rather than pointer-equality.