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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Fix build. Update after review. Created 4 years, 1 month 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: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index c34902ecec7e5da81b2824dc66d53d77890c1574..f603d96452c7cefd0063463fce7f267283797672 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3450,8 +3450,10 @@ void LayoutObject::setMayNeedPaintInvalidationAnimatedBackgroundImage() {
void LayoutObject::clearPaintInvalidationFlags() {
// paintInvalidationStateIsDirty should be kept in sync with the
// booleans that are cleared below.
+#ifndef NDEBUG
ASSERT(!shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState() ||
paintInvalidationStateIsDirty());
Alexander Alekseev 2016/11/18 22:32:15 paintInvalidationStateIsDirty() is defined only if
+#endif
clearShouldDoFullPaintInvalidation();
m_bitfields.setChildShouldCheckForPaintInvalidation(false);
m_bitfields.setMayNeedPaintInvalidation(false);

Powered by Google App Engine
This is Rietveld 408576698