Bug 1532199 - Don't flush pending styles when taking a snapshot for thumnail. r=snorp
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 06 Mar 2019 15:27:50 +0000
changeset 520585 79cc37f5c16dbbd88a92d3c240c4a17d593cee39
parent 520584 61f7f4614016337030ac0f1047f0df641aaa37bd
child 520586 49ae69e7af10c707071280555aee53262f0f45d5
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1532199
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1532199 - Don't flush pending styles when taking a snapshot for thumnail. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D21886
widget/android/fennec/ThumbnailHelper.h
--- a/widget/android/fennec/ThumbnailHelper.h
+++ b/widget/android/fennec/ThumbnailHelper.h
@@ -156,17 +156,18 @@ class ThumbnailHelper final
         aZoomFactor * float(aThumbHeight) / aPageRect.height));
 
     const nsRect drawRect(nsPresContext::CSSPixelsToAppUnits(aPageRect.x),
                           nsPresContext::CSSPixelsToAppUnits(aPageRect.y),
                           nsPresContext::CSSPixelsToAppUnits(aPageRect.width),
                           nsPresContext::CSSPixelsToAppUnits(aPageRect.height));
     const uint32_t renderDocFlags =
         nsIPresShell::RENDER_IGNORE_VIEWPORT_SCROLLING |
-        nsIPresShell::RENDER_DOCUMENT_RELATIVE;
+        nsIPresShell::RENDER_DOCUMENT_RELATIVE |
+        nsIPresShell::RENDER_DRAWWINDOW_NOT_FLUSHING;
     const nscolor bgColor = NS_RGB(255, 255, 255);
 
     if (NS_FAILED(presShell->RenderDocument(drawRect, renderDocFlags, bgColor,
                                             context))) {
       return nullptr;
     }
 
     if (is24bit) {