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

Unified Diff: Source/core/layout/LayoutObject.h

Issue 1008043002: [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/LayoutObject.h
diff --git a/Source/core/layout/LayoutObject.h b/Source/core/layout/LayoutObject.h
index e6029b3265135bba2d5c9e39a73e6364e12cb132..d9bd423613b67c0ae8704baf77bd564ec780ff16 100644
--- a/Source/core/layout/LayoutObject.h
+++ b/Source/core/layout/LayoutObject.h
@@ -237,22 +237,6 @@ public:
renderer->assertRendererLaidOut();
}
- void assertRendererClearedPaintInvalidationState() const
- {
-#ifndef NDEBUG
- if (paintInvalidationStateIsDirty()) {
- showLayoutTreeForThis();
- ASSERT_NOT_REACHED();
- }
-#endif
- }
-
- void assertSubtreeClearedPaintInvalidationState() const
- {
- for (const LayoutObject* renderer = this; renderer; renderer = renderer->nextInPreOrder())
- renderer->assertRendererClearedPaintInvalidationState();
- }
-
Xianzhu 2015/03/17 23:34:01 I think we can keep these for a while for non-SP.
chrishtr 2015/03/17 23:55:56 Good point. I can re-add.
chrishtr 2015/03/19 22:01:27 Done.
#endif
// FIXME: This could be used when changing the size of a renderer without children to skip some invalidations.

Powered by Google App Engine
This is Rietveld 408576698