Bug 930056 - Force invalidate frame when displayitem is remote type. r=mattwoodrow

This commit is contained in:
Morris Tseng 2013-12-16 08:37:34 -05:00
Родитель 223ff1be02
Коммит 1725da86f8
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -4892,7 +4892,13 @@ nsIFrame::InvalidateLayer(uint32_t aDisplayItemKey,
// Plugins can transition from not rendering anything to rendering,
// and still only call this. So always invalidate, with specifying
// the display item type just in case.
if (aDisplayItemKey == nsDisplayItem::TYPE_PLUGIN) {
//
// In the bug 930056, dialer app startup but not shown on the
// screen because sometimes we don't have any retainned data
// for remote type displayitem and thus Repaint event is not
// triggered. So, always invalidate here as well.
if (aDisplayItemKey == nsDisplayItem::TYPE_PLUGIN ||
aDisplayItemKey == nsDisplayItem::TYPE_REMOTE) {
InvalidateFrame();
} else {
InvalidateFrame(aDisplayItemKey);