зеркало из https://github.com/mozilla/pjs.git
When doing a placeholder, paint it and the alt text in the foreground layer,
not the background one. Bug 156987, r+sr=roc+moz, a=sspitzer
This commit is contained in:
Родитель
bf7177a438
Коммит
2260b6b2a3
|
@ -1247,8 +1247,8 @@ nsImageFrame::Paint(nsIPresContext* aPresContext,
|
||||||
|
|
||||||
// First paint background and borders, which should be in the
|
// First paint background and borders, which should be in the
|
||||||
// FOREGROUND or BACKGROUND paint layer if the element is
|
// FOREGROUND or BACKGROUND paint layer if the element is
|
||||||
// inline-level or block-level, respectively. (See CSS2 9.5, which
|
// inline-level or block-level, respectively (bug 36710). (See
|
||||||
// is the rationale for paint layers.)
|
// CSS2 9.5, which is the rationale for paint layers.)
|
||||||
const nsStyleDisplay *display;
|
const nsStyleDisplay *display;
|
||||||
::GetStyleData(mStyleContext, &display);
|
::GetStyleData(mStyleContext, &display);
|
||||||
nsFramePaintLayer backgroundLayer = display->IsBlockLevel()
|
nsFramePaintLayer backgroundLayer = display->IsBlockLevel()
|
||||||
|
@ -1285,7 +1285,7 @@ nsImageFrame::Paint(nsIPresContext* aPresContext,
|
||||||
imageLoader->GetImageBlocked(&imageBlocked);
|
imageLoader->GetImageBlocked(&imageBlocked);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NS_FRAME_PAINT_LAYER_BACKGROUND == aWhichLayer &&
|
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer &&
|
||||||
(!imageBlocked || mIconLoad->mPrefAllImagesBlocked)) {
|
(!imageBlocked || mIconLoad->mPrefAllImagesBlocked)) {
|
||||||
DisplayAltFeedback(aPresContext, aRenderingContext,
|
DisplayAltFeedback(aPresContext, aRenderingContext,
|
||||||
(loadStatus & imgIRequest::STATUS_ERROR)
|
(loadStatus & imgIRequest::STATUS_ERROR)
|
||||||
|
|
|
@ -1247,8 +1247,8 @@ nsImageFrame::Paint(nsIPresContext* aPresContext,
|
||||||
|
|
||||||
// First paint background and borders, which should be in the
|
// First paint background and borders, which should be in the
|
||||||
// FOREGROUND or BACKGROUND paint layer if the element is
|
// FOREGROUND or BACKGROUND paint layer if the element is
|
||||||
// inline-level or block-level, respectively. (See CSS2 9.5, which
|
// inline-level or block-level, respectively (bug 36710). (See
|
||||||
// is the rationale for paint layers.)
|
// CSS2 9.5, which is the rationale for paint layers.)
|
||||||
const nsStyleDisplay *display;
|
const nsStyleDisplay *display;
|
||||||
::GetStyleData(mStyleContext, &display);
|
::GetStyleData(mStyleContext, &display);
|
||||||
nsFramePaintLayer backgroundLayer = display->IsBlockLevel()
|
nsFramePaintLayer backgroundLayer = display->IsBlockLevel()
|
||||||
|
@ -1285,7 +1285,7 @@ nsImageFrame::Paint(nsIPresContext* aPresContext,
|
||||||
imageLoader->GetImageBlocked(&imageBlocked);
|
imageLoader->GetImageBlocked(&imageBlocked);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NS_FRAME_PAINT_LAYER_BACKGROUND == aWhichLayer &&
|
if (NS_FRAME_PAINT_LAYER_FOREGROUND == aWhichLayer &&
|
||||||
(!imageBlocked || mIconLoad->mPrefAllImagesBlocked)) {
|
(!imageBlocked || mIconLoad->mPrefAllImagesBlocked)) {
|
||||||
DisplayAltFeedback(aPresContext, aRenderingContext,
|
DisplayAltFeedback(aPresContext, aRenderingContext,
|
||||||
(loadStatus & imgIRequest::STATUS_ERROR)
|
(loadStatus & imgIRequest::STATUS_ERROR)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче