mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783379: Remove unnecessary (wrong) optimization of image decoding notifications. r=roc
--HG-- extra : rebase_source : d485d0f5bbe35dc969712ca50654c8671b033c80
This commit is contained in:
parent
74efe81fba
commit
e428d9fe59
@ -2110,8 +2110,6 @@ NotifyDidPaintSubdocumentCallback(nsIDocument* aDocument, void* aData)
|
||||
void
|
||||
nsPresContext::NotifyDidPaintForSubtree()
|
||||
{
|
||||
Document()->StyleImageLoader()->NotifyPaint();
|
||||
|
||||
if (!mFireAfterPaintEvents)
|
||||
return;
|
||||
mFireAfterPaintEvents = false;
|
||||
|
@ -312,7 +312,6 @@ ImageLoader::DoRedraw(FrameSet* aFrameSet)
|
||||
{
|
||||
NS_ASSERTION(aFrameSet, "Must have a frame set");
|
||||
NS_ASSERTION(mDocument, "Should have returned earlier!");
|
||||
NS_ASSERTION(mHavePainted, "Should have returned earlier!");
|
||||
|
||||
FrameSet::size_type length = aFrameSet->Length();
|
||||
for (FrameSet::size_type i = 0; i < length; i++) {
|
||||
@ -387,7 +386,7 @@ ImageLoader::OnImageIsAnimated(imgIRequest* aRequest)
|
||||
NS_IMETHODIMP
|
||||
ImageLoader::OnStopFrame(imgIRequest *aRequest, PRUint32 aFrame)
|
||||
{
|
||||
if (!mDocument || !mHavePainted || mInClone) {
|
||||
if (!mDocument || mInClone) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -408,7 +407,7 @@ ImageLoader::FrameChanged(imgIRequest *aRequest,
|
||||
imgIContainer *aContainer,
|
||||
const nsIntRect *aDirtyRect)
|
||||
{
|
||||
if (!mDocument || !mHavePainted || mInClone) {
|
||||
if (!mDocument || mInClone) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,6 @@ class ImageLoader : public nsStubImageDecoderObserver,
|
||||
public:
|
||||
ImageLoader(nsIDocument* aDocument)
|
||||
: mDocument(aDocument),
|
||||
mHavePainted(false),
|
||||
mInClone(false)
|
||||
{
|
||||
MOZ_ASSERT(mDocument);
|
||||
@ -54,11 +53,6 @@ public:
|
||||
imgIContainer *aContainer,
|
||||
const nsIntRect *aDirtyRect);
|
||||
|
||||
inline void NotifyPaint()
|
||||
{
|
||||
mHavePainted = true;
|
||||
}
|
||||
|
||||
void DropDocumentReference();
|
||||
|
||||
void MaybeRegisterCSSImage(nsCSSValue::Image* aImage);
|
||||
@ -120,9 +114,6 @@ private:
|
||||
// with our document from those Images.
|
||||
ImageHashSet mImages;
|
||||
|
||||
// Have we painted yet? If not, no need to deliver notifications.
|
||||
bool mHavePainted;
|
||||
|
||||
// Are we cloning? If so, ignore any notifications we get.
|
||||
bool mInClone;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user