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

Unified Diff: third_party/WebKit/Source/core/layout/ClipRectsCache.h

Issue 2371523002: Apply SVG root viewport clips in PaintLayerClipper. (Closed)
Patch Set: none Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/PaintLayerClipper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ClipRectsCache.h
diff --git a/third_party/WebKit/Source/core/layout/ClipRectsCache.h b/third_party/WebKit/Source/core/layout/ClipRectsCache.h
index f678226b12da8b33e28069f9cbb5312fa03d4598..549a3ee4bfb81f87c042ddee9c6ff051a02ef4b1 100644
--- a/third_party/WebKit/Source/core/layout/ClipRectsCache.h
+++ b/third_party/WebKit/Source/core/layout/ClipRectsCache.h
@@ -7,7 +7,7 @@
#include "core/layout/ClipRects.h"
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
#include "core/layout/ScrollEnums.h" // For OverlayScrollbarClipBehavior.
#endif
@@ -37,25 +37,25 @@ public:
struct Entry {
Entry()
: root(nullptr)
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
, overlayScrollbarClipBehavior(IgnoreOverlayScrollbarSize)
#endif
{
}
const PaintLayer* root;
RefPtr<ClipRects> clipRects;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
OverlayScrollbarClipBehavior overlayScrollbarClipBehavior;
#endif
};
Entry& get(ClipRectsCacheSlot slot)
{
- ASSERT(slot < NumberOfClipRectsCacheSlots);
+ DCHECK(slot < NumberOfClipRectsCacheSlots);
return m_entries[slot];
}
void clear(ClipRectsCacheSlot slot)
{
- ASSERT(slot < NumberOfClipRectsCacheSlots);
+ DCHECK(slot < NumberOfClipRectsCacheSlots);
m_entries[slot] = Entry();
}
private:
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/paint/PaintLayerClipper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698