1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 #include "platform/graphics/PaintInvalidationReason.h"
8 #include "wtf/Assertions.h"
12 const char* paintInvalidationReasonToString(PaintInvalidationReason reason
)
15 case PaintInvalidationNone
:
17 case PaintInvalidationIncremental
:
19 case PaintInvalidationRectangle
:
20 return "invalidate paint rectangle";
21 case PaintInvalidationFull
:
23 case PaintInvalidationStyleChange
:
24 return "style change";
25 case PaintInvalidationForcedByLayout
:
26 return "forced by layout";
27 case PaintInvalidationCompositingUpdate
:
28 return "compositing update";
29 case PaintInvalidationBorderBoxChange
:
30 return "border box change";
31 case PaintInvalidationContentBoxChange
:
32 return "content box change";
33 case PaintInvalidationLayoutOverflowBoxChange
:
34 return "layout overflow box change";
35 case PaintInvalidationBoundsChange
:
36 return "bounds change";
37 case PaintInvalidationLocationChange
:
38 return "location change";
39 case PaintInvalidationBackgroundObscurationChange
:
40 return "background obscuration change";
41 case PaintInvalidationBecameVisible
:
42 return "became visible";
43 case PaintInvalidationBecameInvisible
:
44 return "became invisible";
45 case PaintInvalidationScroll
:
47 case PaintInvalidationSelection
:
49 case PaintInvalidationOutline
:
51 case PaintInvalidationLayer
:
53 case PaintInvalidationLayoutObjectInsertion
:
54 return "layoutObject insertion";
55 case PaintInvalidationLayoutObjectRemoval
:
56 return "layoutObject removal";
57 case PaintInvalidationSVGResourceChange
:
58 return "SVG resource change";
59 case PaintInvalidationDelayedFull
:
60 return "delayed full";