Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1026823002: [S.P.] Don't draw frames of animated images that are offscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index 7f87c3f37ded9e2ceb5e6da05732c01b723063b2..58b372c77561b1e8f045bee28f3905eb48ce03d6 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -342,6 +342,13 @@ void LayoutView::invalidateTreeIfNeeded(const PaintInvalidationState& paintInval
LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState);
}
+void LayoutView::invalidatePaintForDelayedTargets()
+{
+ for (auto& target : m_pendingDelayedPaintInvalidations)
+ target->setShouldDoFullPaintInvalidation(PaintInvalidationDelayedFull);
+ m_pendingDelayedPaintInvalidations.clear();
+}
+
void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidationRect, PaintInvalidationReason invalidationReason) const
{
ASSERT(!paintInvalidationRect.isEmpty());

Powered by Google App Engine
This is Rietveld 408576698