зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1152080 - Plugin configuration clip rects should be treated as visible rects. r=roc
--HG-- extra : histedit_source : bb4b49c29e5b66fa06771e6e1ba26e4496eb59ad
This commit is contained in:
Родитель
aefa45f713
Коммит
9073e3bf03
|
@ -217,14 +217,14 @@ static void CalculatePluginClip(const gfx::IntRect& aBounds,
|
|||
bool& aPluginIsVisible)
|
||||
{
|
||||
aPluginIsVisible = true;
|
||||
// aBounds (content origin)
|
||||
nsIntRegion contentVisibleRegion(aBounds);
|
||||
// aPluginClipRects (plugin widget origin)
|
||||
nsIntRegion contentVisibleRegion;
|
||||
// aPluginClipRects (plugin widget origin) - contains *visible* rects
|
||||
for (uint32_t idx = 0; idx < aPluginClipRects.Length(); idx++) {
|
||||
gfx::IntRect rect = aPluginClipRects[idx];
|
||||
// shift to content origin
|
||||
rect.MoveBy(aBounds.x, aBounds.y);
|
||||
contentVisibleRegion.AndWith(rect);
|
||||
// accumulate visible rects
|
||||
contentVisibleRegion.OrWith(rect);
|
||||
}
|
||||
// apply layers clip (window origin)
|
||||
nsIntRegion region = aParentLayerVisibleRegion;
|
||||
|
|
Загрузка…
Ссылка в новой задаче