Bug 579663. Part 5. Make display zoom items create a container layer. r=roc

This commit is contained in:
Timothy Nikkel 2010-08-08 13:49:06 -05:00
Родитель 6e958ad35e
Коммит ca42ad869b
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1379,7 +1379,7 @@ nsDisplayWrapList* nsDisplayClip::WrapWithClone(nsDisplayListBuilder* aBuilder,
nsDisplayZoom::nsDisplayZoom(nsIFrame* aFrame, nsDisplayList* aList,
PRInt32 aAPD, PRInt32 aParentAPD)
: nsDisplayWrapList(aFrame, aList), mAPD(aAPD), mParentAPD(aParentAPD) {
: nsDisplayOwnLayer(aFrame, aList), mAPD(aAPD), mParentAPD(aParentAPD) {
MOZ_COUNT_CTOR(nsDisplayZoom);
}

Просмотреть файл

@ -1607,9 +1607,9 @@ private:
/**
* nsDisplayZoom is used for subdocuments that have a different full zoom than
* their parent documents.
* their parent documents. This item creates a container layer.
*/
class nsDisplayZoom : public nsDisplayWrapList {
class nsDisplayZoom : public nsDisplayOwnLayer {
public:
/**
* @param aFrame is the root frame of the subdocument.