mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 600574 part 1: Move nsStyleBackground::Layer::RenderingMightDependOnFrameSize to .cpp file. r=bz a=blocking-betaN+
This commit is contained in:
parent
589dc3b20b
commit
2371b62ffb
@ -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 &&
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user