Bug 1193075 - make { scrollWithPage: false } not scroll with page. r=jesup

--HG--
extra : transplant_source : %3FE%94%C1%9C%A1%AE%FFJ%81J4%B6%16%BFodY%1F%C8
This commit is contained in:
Jan-Ivar Bruaroey 2015-10-29 02:48:19 -04:00
Родитель f17cf50dc6
Коммит 094dfdd361
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -270,7 +270,8 @@ MediaEngineTabVideoSource::Draw() {
nscolor bgColor = NS_RGB(255, 255, 255);
uint32_t renderDocFlags = mScrollWithPage? 0 :
nsIPresShell::RENDER_IGNORE_VIEWPORT_SCROLLING;
(nsIPresShell::RENDER_IGNORE_VIEWPORT_SCROLLING |
nsIPresShell::RENDER_DOCUMENT_RELATIVE);
nsRect r(nsPresContext::CSSPixelsToAppUnits((float)mViewportOffsetX),
nsPresContext::CSSPixelsToAppUnits((float)mViewportOffsetY),
nsPresContext::CSSPixelsToAppUnits((float)mViewportWidth),