imported patch addignoresuppressiontobuilder

This commit is contained in:
Timothy Nikkel 2010-08-26 22:01:43 -05:00
Родитель 5c5bab3e5b
Коммит 564d7fbeae
2 изменённых файлов: 11 добавлений и 1 удалений

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

@ -74,6 +74,7 @@ nsDisplayListBuilder::nsDisplayListBuilder(nsIFrame* aReferenceFrame,
mCurrentTableItem(nsnull),
mBuildCaret(aBuildCaret),
mEventDelivery(aIsForEvents),
mIgnoreSuppression(PR_FALSE),
mIsAtRootOfPseudoStackingContext(PR_FALSE),
mSelectedFramesOnly(PR_FALSE),
mAccurateVisibleRegions(PR_FALSE),

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

@ -213,7 +213,15 @@ public:
* Allows callers to selectively override the regular paint suppression checks,
* so that methods like GetFrameForPoint work when painting is suppressed.
*/
void IgnorePaintSuppression() { mIsBackgroundOnly = PR_FALSE; }
void IgnorePaintSuppression() {
mIsBackgroundOnly = PR_FALSE;
mIgnoreSuppression = PR_TRUE;
}
/**
* @return PR_TRUE if this builder is set to ignore painting suppression in
* all documents.
*/
PRBool IsIgnoringPaintSuppression() { return mIgnoreSuppression; }
/**
* Call this if we're doing normal painting to the window.
*/
@ -386,6 +394,7 @@ private:
PRPackedBool mBuildCaret;
PRPackedBool mEventDelivery;
PRPackedBool mIsBackgroundOnly;
PRPackedBool mIgnoreSuppression;
PRPackedBool mIsAtRootOfPseudoStackingContext;
PRPackedBool mSelectedFramesOnly;
PRPackedBool mAccurateVisibleRegions;