| Index: third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
|
| index b566d57efae8cf1c6442700c188c39af9662c424..662efaffc3d9a5eab5c0fff71c0dda89cacfed12 100644
|
| --- a/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp
|
| @@ -281,7 +281,12 @@ static void invalidatePaintRectangleOnWindow(
|
| DCHECK(paintInvalidationContainer.isLayoutView() &&
|
| paintInvalidationContainer.layer()->compositingState() ==
|
| NotComposited);
|
| - if (!frameView || paintInvalidationContainer.document().printing())
|
| +
|
| + if (!frameView)
|
| + return;
|
| +
|
| + if (paintInvalidationContainer.document().printing() &&
|
| + !RuntimeEnabledFeatures::printBrowserEnabled())
|
| return;
|
|
|
| DCHECK(frameView->frame().ownerLayoutItem().isNull());
|
| @@ -390,7 +395,8 @@ LayoutRect ObjectPaintInvalidator::invalidatePaintRectangle(
|
| if (dirtyRect.isEmpty())
|
| return LayoutRect();
|
|
|
| - if (m_object.view()->document().printing())
|
| + if (m_object.view()->document().printing() &&
|
| + !RuntimeEnabledFeatures::printBrowserEnabled())
|
| return LayoutRect(); // Don't invalidate paints if we're printing.
|
|
|
| const LayoutBoxModelObject& paintInvalidationContainer =
|
|
|