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

Unified Diff: Source/core/paint/LayoutObjectDrawingRecorder.h

Issue 1152703005: Don't check under invalidation for delayed invalidated object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/LayoutObjectDrawingRecorder.h
diff --git a/Source/core/paint/LayoutObjectDrawingRecorder.h b/Source/core/paint/LayoutObjectDrawingRecorder.h
index 97414c9e3f91d1ffc34a79b29ab92fef5dcd8bc0..85d61c1419a2a04e5dae63bf586aa5012820d397 100644
--- a/Source/core/paint/LayoutObjectDrawingRecorder.h
+++ b/Source/core/paint/LayoutObjectDrawingRecorder.h
@@ -5,6 +5,7 @@
#ifndef LayoutObjectDrawingRecorder_h
#define LayoutObjectDrawingRecorder_h
+#include "core/layout/LayoutObject.h"
#include "core/paint/PaintPhase.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/graphics/paint/DrawingRecorder.h"
@@ -12,13 +13,18 @@
namespace blink {
class GraphicsContext;
-class LayoutObject;
// Convenience constructors for creating DrawingRecorders.
class LayoutObjectDrawingRecorder final : public DrawingRecorder {
public:
LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, DisplayItem::Type displayItemType, const LayoutRect& clip)
- : DrawingRecorder(context, layoutObject, displayItemType, pixelSnappedIntRect(clip)) { }
+ : DrawingRecorder(context, layoutObject, displayItemType, pixelSnappedIntRect(clip))
+ {
+#if ENABLE(ASSERT)
+ if (layoutObject.fullPaintInvalidationReason() == PaintInvalidationDelayedFull)
+ setUnderInvalidationCheckingMode(DrawingDisplayItem::DontCheck);
+#endif
+ }
LayoutObjectDrawingRecorder(GraphicsContext& context, const LayoutObject& layoutObject, PaintPhase phase, const FloatRect& clip)
: DrawingRecorder(context, layoutObject, DisplayItem::paintPhaseToDrawingType(phase), clip) { }
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698