Bug 1114853 - Part 3: Reset mSelectionVisibleInScrollFrames when visibility set to false. r=roc

This commit is contained in:
Morris Tseng 2014-12-24 01:07:00 +01:00
parent e31d727e5a
commit 68d1a81af7

View File

@ -294,6 +294,10 @@ SelectionCarets::SetVisibility(bool aVisible)
return; return;
} }
if (!aVisible) {
mSelectionVisibleInScrollFrames = false;
}
mVisible = aVisible; mVisible = aVisible;
SELECTIONCARETS_LOG("Set visibility %s", (mVisible ? "shown" : "hidden")); SELECTIONCARETS_LOG("Set visibility %s", (mVisible ? "shown" : "hidden"));