Commit 42c6a18f authored by Kartikaya Gupta's avatar Kartikaya Gupta
Browse files

Bug 1107143 - Don't build event regions unless we're painting to the window. r=tnikkel

MozReview-Commit-ID: LRN8S7buXLL

--HG--
extra : rebase_source : 608e7f32c272f0154a509cab31be34c98ade5845
parent 9176ba07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1420,7 +1420,7 @@ nsDisplayListBuilder::GetDirtyRectForScrolledContents(const nsIFrame* aScrollabl
bool
nsDisplayListBuilder::IsBuildingLayerEventRegions()
{
  if (mMode == PAINTING) {
  if (IsPaintingToWindow()) {
    // Note: this function and LayerEventRegionsEnabled are the only places
    // that get to query LayoutEventRegionsEnabled 'directly' - other code
    // should call this function.