mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +00:00
Update our attr cache if our styles change. Bug 311557, r+sr=roc
This commit is contained in:
parent
4081eca2b6
commit
bba9f84e11
@ -201,6 +201,14 @@ nsBoxFrame::SetInitialChildList(nsIAtom* aListName,
|
||||
return r;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBoxFrame::DidSetStyleContext()
|
||||
{
|
||||
// The values that CacheAttributes() computes depend on our style,
|
||||
// so we need to recompute them here...
|
||||
CacheAttributes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize us. This is a good time to get the alignment of the box
|
||||
*/
|
||||
|
@ -153,6 +153,8 @@ public:
|
||||
NS_IMETHOD SetInitialChildList(nsIAtom* aListName,
|
||||
nsIFrame* aChildList);
|
||||
|
||||
NS_IMETHOD DidSetStyleContext();
|
||||
|
||||
virtual nsIAtom* GetType() const;
|
||||
#ifdef DEBUG
|
||||
NS_IMETHOD GetFrameName(nsAString& aResult) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user