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

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

Issue 2301103004: Remove DCHEcK(!m_clipped) (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
index 74d7258327c690f981bb7fe7921d1f4ff4df1a8a..1c81f8959e6703cbd783fde44d81d34c46bed33e 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp
@@ -318,9 +318,7 @@ void PaintInvalidationState::updateForNormalChildren()
// Do not clip or scroll for the paint invalidation container, because the semantics of visual rects do not include clipping or
// scrolling on that object.
- if (box == m_paintInvalidationContainer) {
- DCHECK(!m_clipped); // The box establishes paint invalidation container, so no m_clipped inherited.
- } else {
+ if (box != m_paintInvalidationContainer) {
// This won't work fully correctly for fixed-position elements, who should receive CSS clip but for whom the current object
// is not in the containing block chain.
addClipRectRelativeToPaintOffset(box.clippingRect());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698