зеркало из https://github.com/mozilla/pjs.git
Make nsFrameList::RemoveFramesAfter(nsnull) remove the whole list. (Bug 563584, patch 11.5) r=roc
This commit is contained in:
Родитель
ef8c3efa12
Коммит
26d3ed4c0d
|
@ -155,6 +155,12 @@ nsFrameList::RemoveFrameIfPresent(nsIFrame* aFrame)
|
|||
nsFrameList
|
||||
nsFrameList::RemoveFramesAfter(nsIFrame* aAfterFrame)
|
||||
{
|
||||
if (!aAfterFrame) {
|
||||
nsFrameList result;
|
||||
result.InsertFrames(nsnull, nsnull, *this);
|
||||
return result;
|
||||
}
|
||||
|
||||
NS_PRECONDITION(NotEmpty(), "illegal operation on empty list");
|
||||
#ifdef DEBUG_FRAME_LIST
|
||||
NS_PRECONDITION(ContainsFrame(aAfterFrame), "wrong list");
|
||||
|
|
|
@ -152,8 +152,9 @@ public:
|
|||
PRBool RemoveFrameIfPresent(nsIFrame* aFrame);
|
||||
|
||||
/**
|
||||
* Take the frames after aAfterFrame out of the frame list.
|
||||
* @param aAfterFrame a frame in this list
|
||||
* Take the frames after aAfterFrame out of the frame list. If
|
||||
* aAfterFrame is null, removes the entire list.
|
||||
* @param aAfterFrame a frame in this list, or null
|
||||
* @return the removed frames, if any
|
||||
*/
|
||||
nsFrameList RemoveFramesAfter(nsIFrame* aAfterFrame);
|
||||
|
|
Загрузка…
Ссылка в новой задаче